Payments SDK: Sell Subscriptions on Your Own Site

The web2wave Payments SDK puts a subscription checkout into any page you own: your site, your landing page, your web app. It is styled like your brand, runs on Primer's secure card fields, and connects to any payment provider behind it, with smart routing and fallbacks between them.
Everything that happens after the payment is already built: renewals, retries, upsells, LTV predictions, ad attribution, a customer portal and email sequences. You add one script, and your site takes subscriptions with the whole web2wave platform behind it.
Your checkout, your design
Colors, fonts, corners, field sizes and the style of the Apple Pay and Google Pay buttons are set in one place, and the form is plain HTML your CSS can reach. Customers pay by card, Apple Pay, Google Pay or PayPal, in their local currency.
Every payment provider, one checkout
Connect one provider or ten. Each payment goes where it is most likely to be approved, and if one provider says no, the next one gets a chance. Your code does not change.
Live in a day
No billing code, no payment provider integration, no analytics setup. Three steps and your site takes subscriptions.
W2WPay.init({ key: 'w2w_pk_…', user: { id: userId } }); const prices = await W2WPay.getPrices([12, 13]); // in the visitor's currency const checkout = await W2WPay.checkout({ price: prices[0].id }); checkout.mount('wallets', '#wallets'); // Apple Pay / Google Pay checkout.mount('card', '#card'); // card form in your design payButton.onclick = () => checkout.submit(); checkout.on('success', ({ subscription }) => unlock(subscription.access_levels));
Attribution and LTV from the first payment
Ad, campaign and UTM tags travel with the customer to the payment and every renewal, and the purchase goes back to your ad platforms from the server. Every cohort gets a revenue forecast as soon as the first payments arrive, so you scale the campaigns that pay back. See LTV Predictions.
{
"event": "Purchase",
"value": 59.99, "currency": "USD",
"utm_campaign": "Broad_US_v3",
"sent_to": ["Meta CAPI", "TikTok Events"]
}The whole platform behind one checkout
Every subscription sold through the SDK appears in web2wave with renewals, LTV forecasts, ad attribution and a customer portal ready from day one.
Connects to everything you run
Who it is for
| What you get | |
|---|---|
| Web apps and SaaS | Subscriptions in your product without building billing |
| Mobile apps | Sell on the web to skip app store fees, give access in the app |
| Landing and quiz builders | Webflow, Framer, Typeform or your own code: the checkout after any funnel |
| Agencies and growth teams | One billing, analytics and attribution setup for every client project |
FAQ
Do I need my own Primer or payment provider account?
No. Request activation and our team sets up Primer and the payment provider for your project. If you already have a Primer account, we connect it.
Do I have to use web2wave quizzes or paywalls?
No. The SDK works on any page of yours. If you want a ready paywall with A/B tests, embed one with a single call.
Can the checkout match my design?
Yes. Colors, fonts, corners, field sizes and the Apple Pay and Google Pay button style are set in one place, and the form is plain HTML your CSS can reach.
How do I give access after the payment?
Each price carries access levels such as “premium”. Your page gets them on success, and your server gets them from webhooks or one API call.
Is card data safe?
Card details are typed into Primer's secure fields, so they never touch your servers or ours.
Which payment providers can I use?
Stripe, Adyen, PayPal, Airwallex, Finby, Unlimit, Colibrix, Shift4 and 18+ more, through Primer or our direct integrations. Use one, or several at once with routing and fallbacks. The card form and wallet buttons run on Primer; providers connected directly work through the embedded paywall.
Can I keep my current provider and subscribers?
Yes. Keep your provider contract and connect it, and we migrate your existing subscriptions so customers do not have to enter their cards again.
Which payment methods are supported?
Cards, Apple Pay, Google Pay and PayPal, in the customer's local currency.

.webp)