Skip to content

Add payments to your app with one API

Sell license keys, API credit packs, and app unlocks with one API call per checkout, and act on a signed webhook when each customer pays by card or crypto.

Start accepting payments

Ask AI about 402pay

Talk to our payments team

Monthly processing volume

What you're interested in

Payment types to enable

Accept over 30 payment types

Ways customers can pay: Visa, Mastercard, American Express, Apple Pay, Google Pay, USD Coin, Tether, Bitcoin, Ethereum, Solana, Litecoin, Tron, PayPal USD, PayPal, Cash App, Chime, Zelle

  • Missed events sent again

    A deploy that drops a webhook doesn't drop the order: failed deliveries are retried, and any event can be resent from the dashboard.

  • Checkout already translated

    The hosted page appears in each customer's language, so you reach new markets without building or translating a payment form.

  • Revenue in your own wallet

    Launch-day license sales go to keys you hold, so a big release isn't met with a reserve.

  1. Create, redirect, get notified

    Create a checkout with the amount and your order reference, send the customer to its URL, and wait for the event that says it's paid.

    Get started
    Create a checkoutPOST /api/v1/payments
    AAcme EditorFree plan

    Upgrade to Pro

    One license, yours to keep.

    • Unlimited projects
    • Export to every format
    • Every update this year
    $49.00One-time license
    Buy license
  2. Verify before you activate

    Each payment.succeeded event carries a signature your server checks before the license key or credits go out.

    Get started
    POSTexample.com/webhooks/402pay
    webhook-idevt_3a9c51e2-8d4f-4b07-a6e1-9f2c7b5d0e48
    webhook-timestamp1792617240
    webhook-signaturev1,K5oZfzN95Z9UVu1EsfQmXbH2c8Rr4tYw0aLpJdE3s6g=
    {  "type": "payment.succeeded",  "subject": { "id": "pmt_7c2e9a41-3f6b-4d18-9e05-b81f4c6d2a73"}
    Received
    AAcme EditorLicenses
    JOjo@example.comPro licenseNot active
  3. Any stack, or a link

    Call the API from any stack that speaks HTTPS, or sell from a payment link while your integration is still on a branch.

    Get started
    Node.jsPythonPHPRubyPayment linkLink
    const res = await fetch(`${api}/payments`, {  method: "POST",  headers: {    Authorization: `Bearer ${key}`,    "Content-Type": "application/json",  },  body: JSON.stringify({    amount: "49.00",    description: "Pro license",  }),});const { url } = await res.json();
    201urlcheckout.402pay.co/checkout/r4vq8nzt2l

How a payment works for software developers

Card payments
  1. Backend creates a checkout

    One API call with the price and your order ID returns a hosted checkout for that cart.

  2. Customer is redirected

    They pay on the hosted page by card or in crypto, and can be returned to your app afterward.

  3. Signed event, verified

    Your endpoint receives the signed payment.succeeded event, retried if delivery fails, and checks its signature and reference.

  4. License activated

    Your backend issues the key, adds the API credits, or unlocks the paid tier on the account.

Payments for software developers

Why do independent software sellers get payment holds?

A new account that suddenly sells hundreds of licenses after a launch post, to buyers in many countries, with nothing shipped, looks risky to a review team. A key bought with a stolen card may be disputed long after it was used, and the seller carries the loss. The usual answer is a rolling reserve or a payout hold just as launch revenue arrives. Here every license sale is paid to your own keys, so there's no payout to pause.

How do I add card and crypto payments to an app with an API?

Create a checkout through the API per order, redirect the customer to it, and listen for the signed payment.succeeded webhook. The hosted page handles Visa, Mastercard, American Express, Apple Pay, Google Pay, and crypto, and card details go to a card provider, never your servers or ours. Verify the signature, then activate the license, credits, or API access. An API payment can be cancelled before money arrives if the order changes.

What does a developer handle when selling software and API access?

Your license terms, key enforcement, tax, and refund policy are yours to run. Because each purchase stands alone, track credits, seats, or expiry dates in your own database. Refunding a license is a transfer from your wallet, approved with your encryption password. Since cardholders keep the right to dispute, log activations against each order reference. Restricted API keys give a storefront only the access it needs.

Frequently asked questions

  • Each checkout is a single payment, so sell annual licenses, credit packs, or prepaid usage, and create a fresh checkout when a customer needs more.
  • Send test events to your endpoint from the dashboard to check your signature handling, then run one small real payment end to end before launch.
  • No. Visa, Mastercard, American Express, Apple Pay, and Google Pay all work through card providers, and each card payment reaches you as crypto.
  • Yes, until money arrives: cancel an API payment when a cart changes or a customer abandons an upgrade.

If you're looking for card-to-crypto payments, there is no alternative.

Ask AI about 402pay