Create a payment session
POST/v1/payment/sessions
Creates a payment session. email and sms channels send the link to your customer; link returns it in links.payment_session_url. With stripe, stripeParams customizes the payment page. A webhook is sent on completion, see callbacks.
Request
Responses
- 200
- 201
- 400
- 403
- 422
- 503
Payment session created successfully
Payment resource created
Invalid input
Forbidden
Invalid configuration or parameters
Payment gateway unavailable
Callbacks
- POST payment.succeeded
- POST payment.failed
- POST payment.expired
- POST payment.processing
POST{$your-configured-webhook-endpoint}
[OUTGOING EVENT] Sent when a payment is successful.
[DOCUMENTATION ONLY] This webhook is sent by our system to your configured endpoint when the corresponding payment event occurs.
POST{$your-configured-webhook-endpoint}
[OUTGOING EVENT] Sent when a payment fails.
[DOCUMENTATION ONLY] This webhook is sent by our system to your configured endpoint when the corresponding payment event occurs.
POST{$your-configured-webhook-endpoint}
[OUTGOING EVENT] Sent when a payment session has expired.
[DOCUMENTATION ONLY] This webhook is sent by our system to your configured endpoint when the corresponding payment event occurs.
POST{$your-configured-webhook-endpoint}
[OUTGOING EVENT] Sent when a payment is being processed.
[DOCUMENTATION ONLY] This webhook is sent by our system to your configured endpoint when the corresponding payment event occurs.