Checkout and mobile

Web (Checkout JS)

Open the hosted checkout as a popup or an overlay on your site. Available in Checkout.

Available in Checkout

checkout.js is live at https://checkout.inversepay.app/v1/checkout.js. How to load it, its options and its callbacks are in Checkout → Popup and overlay.

What it does

  • Opens the hosted checkout in a popup window, or an overlay over your page, from one script tag and one call.
  • Tells your page how it ended, so you can update your interface. That signal is never proof of payment: confirm on your server before you fulfil.

What you need

  • A checkout session created on your server with your secret key, as in Checkout. Only its id goes to the browser.
  • A publishable key (pk_test_… or pk_live_…) from the dashboard. Never a secret key.
  • Your site's origin in the session's embed_origins, or on its success_url or cancel_url.

Questions?

Tell us at developers@inversepay.app.

On this page