Stripe
Last updated
Last updated
The Stripe service allows you to accept payments in your app using the .
Publishable Key: This is meant for use within the pages of your app.
Secret Key: Used in your app's Zingy Cloud backend.
Now, there are two distinct sets of these keys:
Live mode: Used in the live version of the app.
NOTE: All profile settings are encrypted and stored in Zingy's cloud infrastructure.
If not provided the default value of usd will be used.
When invoking this operation, an object with the following properties is required:
amount
Specify the amount to charge.
customProps
Upon success, the operation provides an object with the following properties:
client_secret
publishable_key
For any custom implementation, where you present Stripe's payment payment collection form yourself, once the user finalizes the payment, Zingy's cloud backend can retrieve the confirmation details and record the transaction in the Connection Data for the service.
The Confirm Payment Intent command informs Zingy's cloud backend that the payment procedure has concluded, prompting the backend to register the payment details.
When invoking this operation, an object with the following properties is required:
payment_intent
The payment identifier provided by Stripe's client side API.
payment_intent_client_secret
sgInstName
notfnEmail
Optional. The email address where an automatic payment notification email is sent. Valid only if sgInstName is provided and sendNotfn is set to true.
emailCust
Optional. If the value is true, an automatic email receipt will be sent to the customer based on information retrieved from Stripe's payment confirmation. Valid only if sgInstName is provided.
sendNotfn
Optional. If the value is true, and a valid notfnEmail is provided, a notification will be sent.
The Confirm Payment Intent command does not provide any output beyond the Success/Fail status.
To access the Stripe client initialized with credentials saved on this Stripe service connection, see the following example:
You may also initialize a seperate Stripe client, by specifying account credentials directly:
come in pairs:
: Used to test your app's integration with Stripe. The will use the test mode when using this service.
NOTE: Use the to accept payments in test mode.
Enter the test mode here.
Enter the test mode here.
Enter the live mode here.
Enter the live mode here.
Enter the associated with your account. Please note that this must be a .
The widget element provides a quick and easy way to add payment functionality to any page or form. This element makes use of the Stripe service.
The block is available in both and . Using this block you can add logic to trigger the operations/commands supported by the Stripe service.
In Stripe, a represents an attempt to collect payment from a customer. Normally the process of creating a payment intent is automatically done if you use the widget element with a specified .
For custom implementations using and , you can use the Create Payment Intent command to create the payment intent.
Optional. For advanced users, this specifies an object with properties based on parameters used by .
Is a for each Payment Intent you create.
The publishable to use.
Once a payment intent is created, the Stripe's payment payment collection form can be presented to the user. The widget element automatically does this.
The client_secret provided by the command.
Optional. Name of the connection to use for automatically sending the user a payment receipt email.
In your app's Cloud Flow Web Hooks and Background Tasks, the block can be used to access and implement advanced functionality related to the Stripe payment service.
After the stripe
object is initialized, you can use it to call into the Stripe library. Refer to for more information.