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.
Clave in embedded checkouts
Inside an iframe the browser treats our cookies as third-party, so Clave does not always recognise a customer by their browser. There Clave recognises them by the email or phone they are already typing, 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. See Accept Clave.
Local development
The checkout’s card fields are served by our processor, which only accepts a parent page on an https:// origin or on http://localhost (any port). If you open your site from http://127.0.0.1, a LAN address or a host like myapp.local, the checkout loads but the card form fails with a 422 on capture_context whose body names the rejected origin.
To test locally, open your site at http://localhost:PORT or expose it over HTTPS with a tunnel such as ngrok.
Installation
NPM (Recommended)
CDN
Pin the version in the CDN URL, so a new release never changes your checkout without you knowing.
Usage
The checkout mounts in the element with id recurrente-checkout-container. If it doesn’t exist, the library creates it at the end of the page.
Parameters
Full flow
- Create a checkout through the Recurrente API (
POST /api/checkouts) - Pass its
checkout_urltoRecurrenteCheckout.load - Handle the callbacks for success, failure, or pending payment
- Confirm the payment on your server with the webhook or
GET /api/checkouts/{id}before fulfilling
Already have your own payment form and only want to add Clave? Use the Clave button.

