checkout element on a page and forwards the tokenized payload to your server. Checkout is the fastest integration path: one mount renders shopper contact, a payment method selector, and a single submit lifecycle.
Prerequisites
- An Overflow account with a publishable key (
live_pub_…ortest_pub_…) and a secret key from your Overflow dashboard. - A page where you can add a
<script>tag, or a project that can install an npm package. - A server endpoint that can accept the tokenized payload and call the Overflow API to authorize the charge.
1. Load the SDK
Pick one of the two install paths. Both are backed by the same CDN artifact.2. Add a host element
Add an empty container where Checkout will mount.3. Create Checkout
Usetest_pub_… while you build, then swap to live_pub_… for production.
4. Gate the Pay button
Listen foronChange and enable your button when the form is complete.
5. Handle the tokenized payload
onSubmit fires once validation passes. Forward the payload to your server. Never call the Overflow authorize endpoint from the browser: your secret key stays server-side.
value (plus any additional order data) to the Overflow authorize endpoint with your secret key. See the authorize a payment API reference for the request shape.
What you built
- A themed, validated payment form that supports card and bank.
- A submit lifecycle that hands you a tokenized payload.
- Error handling for validation failures and authorize failures.
Next steps
Accept a payment
Full end-to-end guide with server code.
Add wallets
Add Apple Pay and Google Pay to Checkout.
Theming
Match Checkout to your brand.
Concepts
Elements, options, events, theming.