<script> tag adds a smart card recommendation to your checkout that tells shoppers exactly which card earns them the most on this purchase.
SuperPay sits in the decision layer between the cart and the card. When shoppers see real reward amounts at checkout — "$12.90 cash back with Chase Sapphire" — they buy with more confidence, reach for higher-value carts, and come back more often.
SuperPay is the AI-powered payment intelligence layer for the modern wallet. On the consumer side we tell shoppers which card to use at every merchant, surface unused perks, and forecast their best path to maximum rewards. On the merchant side, our Checkout API adds a smart card-recommendation widget to your checkout — showing shoppers exactly which card maximizes their rewards on this purchase. No integration with your payment processor required.
<script> tag) that renders the card recommendation on your existing checkout.Shoppers with multiple credit cards face decision fatigue at checkout. Which card should I use? Am I missing rewards? That hesitation costs you conversions. SuperPay removes the question entirely.
Shopper hesitates, second-guesses their card choice, maybe abandons the cart to "think about it." You lose the sale — not because of price, but because of friction.
Shopper sees "Use your Chase Sapphire — earn $12.90 back on this purchase." They feel smart, buy with confidence, and come back knowing your checkout works for them.
| Stage | Who | What happens |
|---|---|---|
| Mint | Your server → SuperPay | Create a reward (server-only API key, idempotent). |
| Render | SuperPay widget on your checkout | Shopper sees "Earn $X back via SuperPay" on the cart. |
| Pay | Shopper | Completes purchase on your existing checkout (Shopify, Stripe, custom — we don't care). |
| Confirm | Your server → SuperPay | POST the order ID and amount to confirm the reward as earned. |
| Redeem | SuperPay → Shopper | Reward lands in the shopper's SuperPay wallet, applied to their next statement or eligible card. |
Visit /for-merchants, fill in your business name, contact email, and store origins (the domains where the widget will be embedded). You'll receive a verification email — click it and your sandbox key is provisioned immediately.
From your server, call POST /v1/rewards with the SuperPay sandbox secret key. Use idempotency keys to make this safe to retry.
curl -X POST https://superpayrewards.com/v1/rewards \
-H "Authorization: Bearer sk_sandbox_..." \
-H "Idempotency-Key: order_98123" \
-H "Content-Type: application/json" \
-d '{
"amountCents": 750,
"currency": "USD",
"expiresInSeconds": 1800,
"metadata": { "orderRef": "order_98123" }
}'
Response:
{
"rewardToken": "rwd_live_8e3...d2",
"amountCents": 750,
"expiresAt": "2026-05-03T22:14:00Z"
}
Drop the script tag near the bottom of your cart or checkout page and pass the reward token via data-reward.
<script
src="https://superpayrewards.com/v1/widget.js"
data-key="pk_sandbox_..."
data-reward="rwd_live_8e3...d2"
async></script>
When your order webhook fires, confirm the reward server-to-server. SuperPay only credits the shopper after this call.
POST /v1/rewards/rwd_live_8e3...d2/confirm
Authorization: Bearer sk_sandbox_...
{
"orderId": "order_98123",
"amountChargedCents": 12900
}
Email hello@superpayrewards.com with your sandbox merchant ID and the production domain(s). We'll issue a pk_live_ + sk_live_ pair and walk through your first 100 live transactions together.
The SuperPay widget renders as a non-intrusive badge or button on your checkout. It's framework-agnostic — works inside Shopify themes, custom React/Vue checkouts, BigCommerce, WooCommerce, and bare HTML.
| Attribute | Default | Purpose |
|---|---|---|
data-key | — | Your publishable merchant key (pk_*). |
data-reward | — | The reward token returned from /v1/rewards. |
data-variant | badge | badge · button · inline |
data-theme | auto | light · dark · auto |
data-anchor | #superpay | CSS selector for the mount point. |
superpayrewards.com, no inline scripts, no third-party trackers. Add the host to script-src and connect-src.import express from "express";
const app = express();
app.post("/cart/checkout", async (req, res) => {
const reward = await fetch("https://superpayrewards.com/v1/rewards", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SUPERPAY_SECRET}`,
"Content-Type": "application/json",
"Idempotency-Key": req.body.cartId,
},
body: JSON.stringify({
amountCents: Math.round(req.body.subtotal * 0.05),
currency: "USD",
expiresInSeconds: 1800,
metadata: { cartId: req.body.cartId },
}),
}).then(r => r.json());
res.render("checkout", { rewardToken: reward.rewardToken });
});
import os, requests
def create_reward(cart_id, subtotal_cents):
r = requests.post(
"https://superpayrewards.com/v1/rewards",
headers={
"Authorization": f"Bearer {os.environ['SUPERPAY_SECRET']}",
"Idempotency-Key": cart_id,
},
json={
"amountCents": subtotal_cents // 20, # 5% reward
"currency": "USD",
"expiresInSeconds": 1800,
"metadata": {"cartId": cart_id},
},
timeout=5,
)
r.raise_for_status()
return r.json()["rewardToken"]
<!-- in your cart.liquid or checkout.liquid -->
<div id="superpay"></div>
<script
src="https://superpayrewards.com/v1/widget.js"
data-key="{{ settings.superpay_publishable_key }}"
data-reward="{{ checkout.attributes.superpay_token }}"
data-variant="inline"
async></script>
The Card-Recommendation Widget is 100% free for merchants. No fees, no rev share, no contract minimums. SuperPay treats the widget as a value-add at checkout and a shopper-acquisition channel.
One script tag, one div. No SDK, no build step, no processor change. Works on Shopify, Magento, and custom carts.
No monthly fees, no per-call charges, no usage caps. Unlimited recommendation calls (60/min per key).
No contract, no rev share, no commitments. Use the widget as long as it's helping your checkout — cancel any time.
Questions about the API or want to discuss a custom integration? Email hello@superpayrewards.com.
Need our security policy or to start a vendor review? View our security policy or email security@superpayrewards.com.
No. SuperPay sits alongside it. Many partners use SuperPay rewards for top-of-funnel acquisition and reactivation, and reserve their loyalty program for deeper LTV mechanics.
By default, yes. You control eligibility per reward via the metadata.eligibility field — gate by SKU, customer segment, or order minimum.
Nothing. You're not billed for unredeemed rewards. Expired rewards are flagged in your dashboard so you can tune your default expiry window.
No. SuperPay credits the shopper's existing card via statement credit or wallet balance. There's no new card, no credit pull, no application.
Sandbox in 15 minutes. Production keys typically issued within 1 business day after a quick review of your domain and use case.
Yes — once you're live, ask about featured placement in the SuperPay consumer app, push notification slots, and category sponsorships.
Instantly, from your merchant dashboard or by emailing us. New keys are provisioned in seconds.
pk_live_ / sk_live_ keys issued and rotated into your env