curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-intent/confirm/{paymentIntentId} \
--header 'Content-Type: application/json' \
--data '
{
"payment_method": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"receipt_email": "[email protected]",
"setup_future_usage": "off_session"
}
'{
"id": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
"amount_received": 0,
"application": "<string>",
"application_fee_amount": 123,
"canceled_at": "<string>",
"cancellation_reason": "<string>",
"capture_method": "manual",
"client_secret": "pi_1GsyhzFbKq2Pvw1bwAI3ZluI_secret_GKG6hcap7VCggeoqJICAqSsRW",
"confirmation_method": "automatic",
"created": 1591913835,
"currency": "usd",
"customer": "<string>",
"description": "<string>",
"invoice": "<string>",
"last_payment_error": "<string>",
"livemode": true,
"metadata": {},
"next_action": "<string>",
"on_behalf_of": "<string>",
"payment_method": "<string>",
"payment_method_options": {
"card": {
"installments": "<string>",
"network": "<string>",
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"receipt_email": "<string>",
"review": "<string>",
"setup_future_usage": "on_session",
"shipping": "<string>",
"source": "<string>",
"statement_descriptor": "<string>",
"statement_descriptor_suffix": "<string>",
"status": "requires_payment_method",
"transfer_data": "<string>",
"transfer_group": "<string>",
"billing_details": {
"address": {
"line1": "3520 Millenio",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9",
"line2": "Crowley Drive"
},
"name": "John Smith",
"email": "[email protected]",
"phone": "123-456-7890"
},
"charges": {
"object": "list",
"data": [
{
"id": "ch_1GszZAFbKq2PvwXbWRHwiXg0",
"object": "charge",
"amount": 1500,
"amount_refunded": 0,
"application": "<string>",
"application_fee": "<string>",
"application_fee_amount": "<string>",
"balance_transaction": "<string>",
"calculated_statement_descriptor": "Stripe",
"captured": false,
"created": 1591917132,
"currency": "usd",
"customer": "<string>",
"description": "<string>",
"destination": "<string>",
"dispute": false,
"disputed": "<string>",
"failure_code": "<string>",
"failure_message": "<string>",
"fraud_details": {},
"invoice": "<string>",
"livemode": false,
"metadata": "<string>",
"on_behalf_of": "<string>",
"order": "<string>",
"outcome": {
"network_status": "approved_by_network",
"reason": "<string>",
"risk_level": "normal",
"risk_score": 7,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"payment_method": "pm_1GszYCFbKq2PvwXb2CDbdZOP",
"payment_method_details": {
"card": {
"brand": "visa",
"checks": {
"address_line1_check": "<string>",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "US",
"exp_month": 3,
"exp_year": 2023,
"fingerprint": "KYFNiC9k7gBUEnMg",
"funding": "credit",
"installments": "<string>",
"last4": "4242",
"network": "visa",
"three_d_secure": "<string>",
"wallet": "<string>"
},
"type": "card"
},
"receipt_email": "<string>",
"receipt_number": "<string>",
"receipt_url": "https://pay.stripe.com/receipts/acct_1GrptTFbKq2PvwXb/ch_1GszZAFbKq2PvwXbWRHwiXg0/rcpt_HRtLuMrk7E5VQ1rLWNVzKrXHFZHHczr",
"refunded": false,
"refunds": {
"object": "list",
"data": "<array>",
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1GszZAFbKq2PvwXbWRHwiXg0/refunds"
},
"review": "<string>",
"shipping": "<string>",
"source": "<string>",
"source_transfer": "<string>",
"statement_descriptor": "<string>",
"statement_descriptor_suffix": "<string>",
"status": "succeeded",
"transfer_data": "<string>",
"transfer_group": "<string>"
}
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_1GsyhzFbKq2PvwXbwAI3ZluI"
}
}Confirm Stripe payment intent
curl --request POST \
--url https://prod01-apigw.{customer_name}.fabric.zone/ext-stripe/payment-intent/confirm/{paymentIntentId} \
--header 'Content-Type: application/json' \
--data '
{
"payment_method": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"receipt_email": "[email protected]",
"setup_future_usage": "off_session"
}
'{
"id": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"object": "payment_intent",
"amount": 1000,
"amount_capturable": 0,
"amount_received": 0,
"application": "<string>",
"application_fee_amount": 123,
"canceled_at": "<string>",
"cancellation_reason": "<string>",
"capture_method": "manual",
"client_secret": "pi_1GsyhzFbKq2Pvw1bwAI3ZluI_secret_GKG6hcap7VCggeoqJICAqSsRW",
"confirmation_method": "automatic",
"created": 1591913835,
"currency": "usd",
"customer": "<string>",
"description": "<string>",
"invoice": "<string>",
"last_payment_error": "<string>",
"livemode": true,
"metadata": {},
"next_action": "<string>",
"on_behalf_of": "<string>",
"payment_method": "<string>",
"payment_method_options": {
"card": {
"installments": "<string>",
"network": "<string>",
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"receipt_email": "<string>",
"review": "<string>",
"setup_future_usage": "on_session",
"shipping": "<string>",
"source": "<string>",
"statement_descriptor": "<string>",
"statement_descriptor_suffix": "<string>",
"status": "requires_payment_method",
"transfer_data": "<string>",
"transfer_group": "<string>",
"billing_details": {
"address": {
"line1": "3520 Millenio",
"city": "Vancouver",
"state": "BC",
"country": "CA",
"postal_code": "V5R 6G9",
"line2": "Crowley Drive"
},
"name": "John Smith",
"email": "[email protected]",
"phone": "123-456-7890"
},
"charges": {
"object": "list",
"data": [
{
"id": "ch_1GszZAFbKq2PvwXbWRHwiXg0",
"object": "charge",
"amount": 1500,
"amount_refunded": 0,
"application": "<string>",
"application_fee": "<string>",
"application_fee_amount": "<string>",
"balance_transaction": "<string>",
"calculated_statement_descriptor": "Stripe",
"captured": false,
"created": 1591917132,
"currency": "usd",
"customer": "<string>",
"description": "<string>",
"destination": "<string>",
"dispute": false,
"disputed": "<string>",
"failure_code": "<string>",
"failure_message": "<string>",
"fraud_details": {},
"invoice": "<string>",
"livemode": false,
"metadata": "<string>",
"on_behalf_of": "<string>",
"order": "<string>",
"outcome": {
"network_status": "approved_by_network",
"reason": "<string>",
"risk_level": "normal",
"risk_score": 7,
"seller_message": "Payment complete.",
"type": "authorized"
},
"paid": true,
"payment_intent": "pi_1GsyhzFbKq2PvwXbwAI3ZluI",
"payment_method": "pm_1GszYCFbKq2PvwXb2CDbdZOP",
"payment_method_details": {
"card": {
"brand": "visa",
"checks": {
"address_line1_check": "<string>",
"address_postal_code_check": "pass",
"cvc_check": "pass"
},
"country": "US",
"exp_month": 3,
"exp_year": 2023,
"fingerprint": "KYFNiC9k7gBUEnMg",
"funding": "credit",
"installments": "<string>",
"last4": "4242",
"network": "visa",
"three_d_secure": "<string>",
"wallet": "<string>"
},
"type": "card"
},
"receipt_email": "<string>",
"receipt_number": "<string>",
"receipt_url": "https://pay.stripe.com/receipts/acct_1GrptTFbKq2PvwXb/ch_1GszZAFbKq2PvwXbWRHwiXg0/rcpt_HRtLuMrk7E5VQ1rLWNVzKrXHFZHHczr",
"refunded": false,
"refunds": {
"object": "list",
"data": "<array>",
"has_more": false,
"total_count": 0,
"url": "/v1/charges/ch_1GszZAFbKq2PvwXbWRHwiXg0/refunds"
},
"review": "<string>",
"shipping": "<string>",
"source": "<string>",
"source_transfer": "<string>",
"statement_descriptor": "<string>",
"statement_descriptor_suffix": "<string>",
"status": "succeeded",
"transfer_data": "<string>",
"transfer_group": "<string>"
}
],
"has_more": false,
"total_count": 0,
"url": "/v1/charges?payment_intent=pi_1GsyhzFbKq2PvwXbwAI3ZluI"
}
}"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"
Payment intent Id.
"pi_1GsyhzFbKq2PvwXbwAI3ZluI"
on_session, off_session "off_session"
Confirm stripe payment intent
"pi_1GsyhzFbKq2PvwXbwAI3ZluI"
"payment_intent"
1000
0
0
"manual"
"pi_1GsyhzFbKq2Pvw1bwAI3ZluI_secret_GKG6hcap7VCggeoqJICAqSsRW"
"automatic"
1591913835
"usd"
["card"]"on_session"
"requires_payment_method"
Show child attributes
Show child attributes
"3520 Millenio"
"Vancouver"
"BC"
"CA"
"V5R 6G9"
"Crowley Drive"
"John Smith"
"123-456-7890"
Show child attributes
"list"
Show child attributes
"ch_1GszZAFbKq2PvwXbWRHwiXg0"
"charge"
1500
0
"Stripe"
false
1591917132
"usd"
false
false
Show child attributes
"approved_by_network"
"normal"
7
"Payment complete."
"authorized"
true
"pi_1GsyhzFbKq2PvwXbwAI3ZluI"
"pm_1GszYCFbKq2PvwXb2CDbdZOP"
Show child attributes
Show child attributes
"visa"
"US"
3
2023
"KYFNiC9k7gBUEnMg"
"credit"
"4242"
"visa"
"card"
"https://pay.stripe.com/receipts/acct_1GrptTFbKq2PvwXb/ch_1GszZAFbKq2PvwXbWRHwiXg0/rcpt_HRtLuMrk7E5VQ1rLWNVzKrXHFZHHczr"
false
"succeeded"
false
0
"/v1/charges?payment_intent=pi_1GsyhzFbKq2PvwXbwAI3ZluI"
Was this page helpful?