Embedded Checkouts
Recurrente Checkout is a JavaScript library that lets you embed a responsive, secure checkout directly on your website. It renders an iframe with your payment session and handles callbacks for key events like success, failure, or pending payments.
For the most up-to-date version of this guide and sample code, visit the repo: github.com/recurrente/recurrente-checkout
Video tutorial
See it in action: https://youtu.be/OUIYVcrnPr0
Prerequisites
To use this library, you need to create a checkout in Recurrente. See the checkout creation docs to get your checkout URL.
Cliq in embedded checkouts
Inside an iframe the browser treats our cookies as third-party, so Cliq does not recognise a customer by their browser. It recognises them by the email or phone they are already typing: if they have saved cards, Cliq sends a one-time code, and confirming it brings their saved methods into the checkout.
Nothing needs configuring for this to work, and your customer never has to change browser permissions.
Installation
NPM (Recommended)
CDN
Usage
Parameters
Full flow
- Create a checkout via the Recurrente API (
POST /api/checkouts) - Use the URL from the checkout (
checkout_url) to initializeRecurrenteCheckout - Mount the checkout in an HTML container on your page
- Handle callbacks for success, failure, or pending payments

