Skip to main content

Payment Platforms

Choose an order's payment methods with enabledRails at creation. It takes the fiat platform identifiers, the relay_<chainId> crypto identifiers, near_intents_133701 and apple_pay. The list must not be empty, and an unknown identifier fails validation.

import { createCheckout } from '@zkp2p/pay-sdk';

const checkout = await createCheckout(
{
requestedUsdcAmount: '50.00',
enabledRails: ['venmo', 'paypal'],
},
opts,
);

console.log(checkout.checkoutUrl);

Fiat platforms​

const PaymentPlatform = {
VENMO: 'venmo',
CASHAPP: 'cashapp',
X_MONEY: 'xmoney',
REVOLUT: 'revolut',
WISE: 'wise',
ZELLE: 'zelle',
PAYPAL: 'paypal',
MONZO: 'monzo',
N26: 'n26',
CHIME: 'chime',
} as const;

type PaymentPlatformType = (typeof PaymentPlatform)[keyof typeof PaymentPlatform];

Venmo and PayPal payments can be disputed after settlement; you receive these as chargeback events. See chargebacks for what that means for your account.

Crypto rails​

A customer who picks a relay_<chainId> rail pays from a wallet on that chain, and the transfer is converted to your payout destination, set by the order's destinationChainId and destinationToken.

IdentifierChain
relay_1Ethereum
relay_10Optimism
relay_56BNB Smart Chain
relay_137Polygon
relay_480World Chain
relay_999Hyperliquid
relay_5042Arc
relay_8453Base
relay_42161Arbitrum
relay_8253038Bitcoin
relay_728126428Tron
relay_792703809Solana

Other rails​

IdentifierRail
near_intents_133701Zcash, through NEAR Intents
apple_payApple Pay

With apple_pay, the customer neither pays on a fiat platform nor sends crypto from a wallet. The resulting payment is recorded under the Relay rail it settles on, not under apple_pay. Checkout hides Apple Pay when the charge would be above 2,500 USDC.

Fiat currencies​

The API recognizes these currency codes on fiat payments:

AED  ARS  AUD  CAD  CHF  CNY  CZK  DKK  EUR  GBP  HKD
HUF IDR ILS INR JPY KES MXN MYR NOK NZD PHP
PLN RON SAR SEK SGD THB TRY UGX USD VND ZAR

The customer picks a currency in checkout, and the platforms offered depend on that currency, the order amount, the platforms you enabled and live liquidity. A platform with no liquidity for the chosen currency shows as unavailable. Each payment records the rate it was quoted at in currencyPerUsdRate.