- Payment Intents
- Create a Payment Intent
Payment Intents
Create a Payment Intent
Create a Payment Intent
/api/v2/payment-intents
curl --request POST \
--url https://api.senddotssandbox.com/api/v2/payment-intents \
--header 'Authorization: Basic AUTH_VALUE' \
--header 'Content-Type: application/json' \
--data '{
"amount": integer,
"currency": "string"
}'
Body
Amount in cents
Currency of the payment. Currently only usd
is supported.
usd
Set to true
to attempt to confirm this payment intent immediately. Defaults to false
.
ID of a Dots user
making this payment.
An arbitrary string attached to the object. Often useful for displaying to users.
ID of the payment method to attach to this payment intent.
Currently only card
is supported.
on_session
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Amount in cents to transfer to the application's wallet as a platform fee.
Response
Amount in cents
usd
initialized
, created
, requires_payment_method
, requires_confirmation
, requires_action
, processing
, succeeded
, requires_capture
, canceled
, failed
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Only availble on payment intent creation.
curl --request POST \
--url https://api.senddotssandbox.com/api/v2/payment-intents \
--header 'Authorization: Basic AUTH_VALUE' \
--header 'Content-Type: application/json' \
--data '{
"amount": integer,
"currency": "string"
}'