Skip to main content
Keep customers on your page. puffin.js opens the hosted checkout in a sandboxed iframe modal and reports status back via callbacks.

Install

No npm, no build step, ~2 KB, zero dependencies.

Open a payment intent

Create the intent server-side (hosted checkout), pass the id to the browser:
No backend at all:

API

Client callbacks are for UX only. Fulfil orders from the payment.confirmed webhook or a server-side GET of the intent.