Learn how to use checkout to easily collect payments from your customers
Monieswitch Checkout is a JavaScript library designed to help developers create secure and user-friendly payment flows for web applications.
It offers two primary checkout methods to accommodate different payment scenarios and security requirements.
Let’s walk through the steps to integrate the Monieswitch Checkout library into your web application in two simple steps.
Integration to your app: Include the Checkout library via CDN in your HTML file.
Utilized our CDN-hosted Library: Use the Checkout library in your JavaScript code to create a payment form and handle payment processing.
The Result and HTML (generated from jsfiddle) tab explains how to incorporate the Checkout library via CDN and use it in your project.
1
Integration to your app
To use the Checkout in your web application, you need to include the library’s JavaScript file from the CDN. This is done by adding a script tag to your HTML file.
The continueCheckout() method represents a more secure and flexible approach to payment processing, providing enhanced control and validation through server-side initialization.
It’s involve first initializing the payment on the server-side to get the checkout and then passing the checkout code to the client-side for payment processing.
Let’s walk through the steps to integrate the Monieswitch continueCheckout library into your web application in two simple steps.
Integration to your app: Include the Checkout library via CDN in your HTML file.
Utilized our CDN-hosted Library: Use the ContinueCheckout library in your JavaScript code to create a payment form and handle payment processing.
The Result and HTML (generated from jsfiddle) tab explains how to incorporate the ContinueCheckout library and use it in your project.
1
Integration to your app
To use the ContinueCheckout in your web application after server initialization, you need to include the library’s JavaScript file from the CDN. This is done by adding a script tag to your HTML file.
When a payment is successfully processed, Monieswitch Checkout sends a webhook event to the webhook URL you’ve configured in your account settings.
It is strongly advised to utilize these webhooks to verify the payment status before fulfilling orders or providing services to your customers.
Learn more about Webhooks and how to set them up.