Stripe
Stripe checkout integration
// POST (application/json) - https://payments.cloudprotected.net/v1/payments/create
{
"gateway": "stripe",
"successUrl": "https://shop.example.com/success",
"failedUrl": "https://shop.example.com/failed",
"webhookUrl": "https://shop.example.com/process",
"identifier": "payment12345",
"package": {
"name": "Test Package",
"price": 10.99,
"currency": "EUR"
},
"subscription": {
"enabled": false
},
"user": {
"identifier": "1234",
"email": "pay@example.com"
},
"credential": {
"public": "pk_your_public_key",
"secret": "sk_your_secret_key"
}
}
// Creation success
{
"success": true,
"data": {
"url": "https://pay.stripe.com"
},
"errors": null
}
// Validation error
{
"success": false,
"data": null,
"errors": [
"The user.identifier field is required."
]
}
Last updated
Was this helpful?