PayMongo's Checkout API allows you to create a powerful checkout experience without having to build your own. You can now streamline your payments integration using our pre-built user-friendly hosted checkout page. We have simplified the checkout process for customers while ensuring a secure digital payment experience.
This is an API payment integration that provides merchants with a checkout page for accepting one-time payments. Developer experience is needed.
Once a Checkout Session is created and your customer is redirected to the checkout page, they will see the payment selection page. Depending on your implementation, you can opt to only display specific payment methods. You can also control whether you want the order information to be displayed as a breakdown or a summary.
After the customer selects their payment method and clicks continue, they will be shown the customer information page where they will need to enter their contact details. After clicking "Pay Now", they will be redirected to the provider/bank page where they will need to authorize the payment.
For card payments, there will be extra fields for the billing information. The billing information can be pre-filled when creating the Checkout Session if the information is already available.
Once the payment is successful, they will be redirected back from the provider/bank page to the success page. The reference number, paid amount, and transaction date will be displayed for the customer's reference. You also have the option to redirect the customer back to your website or app.
If you've enabled the
send_email_receipt field, your customer would receive an email receipt after a successful transaction.
The next section will go into detail on how to implement the Checkout API to your website or app. We have also included a summary of the API reference guide below if you want to jump straight to the API references.
A Checkout Session resource represents a one-time use checkout to receive payments. The following API calls would return a Checkout Session object.
The Create a Checkout Session endpoint allows you to create a checkout session.
The Retrieve a Checkout endpoint returns a Checkout Session object given the Checkout Session's ID (example:
The Expire a Checkout Session endpoint expires a Checkout Session object given the Checkout Session's ID (example:
cs_zmkoMv8GQBSdaPZfJrmFnifG). Expiring a Checkout Session would make it so that the Checkout Session would not be usable and would not accept payments.
In addition to this, we also added another webhook event:
checkout_session.payment.paid to keep track of paid Checkout Sessions. For more information about webhooks feel free to checkout our webhooks guide
Updated 9 months ago