POST
/v1/integrations/stripe/{familyId}/payment-sessions
curl \
--request POST 'https://localhost/v1/integrations/stripe/fml_123123123123/payment-sessions' \
--header "Content-Type: application/json" \
--data '{"amount":1999,"transactionId":"trn_xxxxxxxxxxxxxxx"}'
Request examples
{
"amount": 1999,
"transactionId": "trn_xxxxxxxxxxxxxxx"
}
Response examples (200)
{
"paymentIntent": {
"id": "pm_1234567890",
"clientSecret": "pm_1234567890_secret_xxxxxxxx",
"amount": 1999,
"status": "canceled",
"paymentMethod": {
"id": "pm_123456789",
"type": "acss_debit",
"isDefault": true,
"data": {
"brand": "amex",
"country": "US",
"expiryMonth": 12,
"expiryYear": 2023,
"cardNumber": "************4242",
"last4": "4242"
}
},
"charge": {
"id": "pm_1234567890",
"amount": 1999,
"amountCaptured": 1999,
"amountRefunded": 1999,
"currency": "usd",
"refunded": false,
"refunds": [
{
"id": "pm_1234567890",
"amount": 1999,
"currency": "usd",
"status": "pending",
"createdAt": "2023-12-05"
}
]
}
},
"customerSession": {
"customerId": "cus_1234567890",
"clientSecret": "cs_1234567890_secret_xxxxxxxx"
},
"ephemeralKey": {
"id": "ephkey_xxxxxxxx",
"secret": "ek_xxxxxxxx",
"associatedObjectId": "cus_xxxxxxxx",
"associatedObjectType": "customer"
}
}
Response examples (403)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}
Response examples (404)
{
"statusCode": 42.0,
"messages": [
"string"
],
"exception": {}
}