Initialize Payment for Checkout (Stripe)
PATCH/api/checkout/:id/payment
Initialize payment for a checkout using the Stripe payment method.
Request
Path Parameters
id stringrequired
The ID of the checkout for which payment is being initialized
Query Parameters
success_url stringrequired
The URL to redirect to if payment is successful
cancel_url stringrequired
The URL to redirect to if payment is canceled or fails
email stringrequired
Email of the client
return_url stringrequired
The return URL
payment_method stringrequired
Payment method
first_name stringrequired
First name
last_name stringrequired
Last name
phone_code stringrequired
Phone code
phone stringrequired
Phone number
company stringrequired
Company name
address1 stringrequired
Address line 1
address2 stringrequired
Address line 2
city stringrequired
City
country stringrequired
Country
country_code stringrequired
Country code
zip stringrequired
ZIP code
Responses
- 200
Successful initialization of payment
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"checkout_url": "https://buy.stripe.com/3csfZKgUC8foeyc001?prefilled_email=test@reachu.io",
"order_id": 1347
}
{
"checkout_url": "https://buy.stripe.com/3csfZKgUC8foeyc001?prefilled_email=test@reachu.io",
"order_id": 1347
}
Loading...