Confirm a payment intent that has not been confirmed yet.
curl --request POST \
--url https://api.dots.dev/api/v2/payment-intents/{payment_intent_id}/confirm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"currency": "usd",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "initialized",
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"client_secret": "<string>"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The ID if the Payment Intent to confirm.
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.dots.dev/api/v2/payment-intents/{payment_intent_id}/confirm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"currency": "usd",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "initialized",
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"client_secret": "<string>"
}
Confirm a payment intent that has not been confirmed yet.
curl --request POST \
--url https://api.dots.dev/api/v2/payment-intents/{payment_intent_id}/confirm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"currency": "usd",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "initialized",
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"client_secret": "<string>"
}
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
The ID if the Payment Intent to confirm.
OK
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.dots.dev/api/v2/payment-intents/{payment_intent_id}/confirm \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"payment_method_id": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 1,
"currency": "usd",
"user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "initialized",
"transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_method_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"client_secret": "<string>"
}