To get started with Modem Pay, follow these simple steps to set up and start collecting payments:
Here’s an example of how you’d implement HTML checkout:
Walkthrough
Setting Up the Form
When the user clicks Pay Now, the form submits the order details to Modem Pay’s endpoint (https://test.checkout.modempay.com/api/pay
), passing essential information like amount, customer details, and URLs for redirecting.
Payload Format After Submission
Once the form is submitted, the server receives the payment information in JSON format as shown below. Modem Pay processes this payload to initialize the payment.
After Payment – Redirect and Webhooks
return_url
specified in the form, or if canceled, to the cancel_url
.charge.succeeded
or charge.cancelled
so you can handle them as needed, such as updating the order status on your end.This setup provides both a quick and customizable payment solution for your business, with HTML Checkout for a rapid start and SDK Payment Intent for detailed control.
To get started with Modem Pay, follow these simple steps to set up and start collecting payments:
Here’s an example of how you’d implement HTML checkout:
Walkthrough
Setting Up the Form
When the user clicks Pay Now, the form submits the order details to Modem Pay’s endpoint (https://test.checkout.modempay.com/api/pay
), passing essential information like amount, customer details, and URLs for redirecting.
Payload Format After Submission
Once the form is submitted, the server receives the payment information in JSON format as shown below. Modem Pay processes this payload to initialize the payment.
After Payment – Redirect and Webhooks
return_url
specified in the form, or if canceled, to the cancel_url
.charge.succeeded
or charge.cancelled
so you can handle them as needed, such as updating the order status on your end.This setup provides both a quick and customizable payment solution for your business, with HTML Checkout for a rapid start and SDK Payment Intent for detailed control.