How to Integrate with Checkout
π’ Introductionβ
The online checkout flow allows customers to make payments securely and seamlessly. The process involves multiple steps from generating the checkout URL to confirming the payment.
Make sure you have a checkout route registered (How to register?)
π§ Overview of the Online Checkout Flowβ
π Integration Stepsβ
The integration flow follows these steps:
-
User requests an online payment
-
The system calls the registered route to generate the checkout URL
a. In this request, you will receive a
service_id
-
Use the
GET /services/:service_id
route to retrieve the service details -
Generate the checkout URL and send it to Cortecloud using the
POST /payment/checkout-url
routea. At this point, Cortecloud will receive the URL and display it to your customer
-
The customer accesses the checkout URL and completes the payment
-
Use the
POST /payment/finish-checkout
route to finalize the paymenta. If an error occurs during payment, use the
POST /payment/cancel-checkout
routeImportantThis step is required for Cortecloud to receive the payment or cancellation notification
-
Done! The service will be ready for production