Stripe Payment Intents
Stripe payment intents integration only supports the purchase
payment method.
Pay by token or source
POST
https://api.moltin.com/v2/orders/:orderId/payments
Path Parameters
Name | Type | Description |
---|---|---|
orderId | string | The UUID of the order you want to pay for |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
options.idempotency_key | string | Send a Stripe Idempotency Key |
options.receipt_email | string | Provide an email for Stripe receipts. |
payment | string | The Stripe token or source |
options.customer | string | The Stripe customer ID (required if sending source) |
method | string |
|
gateway | string | You will use |
If you are passing a source
instead of a token
, you must also include the Stripe customer ID in the request
It's recommended that you use the token/source with Stripe payments. See Stripe Elements for generating a token on the client-side.
Pay by Stripe Connect
POST
https://api.moltin.com/v2/orders/:orderId/payments
Moltin also supports Stripe Connect. Simply pass a destination via the options object.
Path Parameters
Name | Type | Description |
---|---|---|
orderId | string | The UUID of the order you want to pay for |
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token used to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
options.destination | string | The Stripe Connect Account ID |
options.receipt_email | string | Provide an email for Stripe receipts. |
payment | string | The Stripe token or source |
method | string |
|
gateway | string | You will use |
Last updated