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.
| Identifier | Chain |
|---|---|
relay_1 | Ethereum |
relay_10 | Optimism |
relay_56 | BNB Smart Chain |
relay_137 | Polygon |
relay_480 | World Chain |
relay_999 | Hyperliquid |
relay_5042 | Arc |
relay_8453 | Base |
relay_42161 | Arbitrum |
relay_8253038 | Bitcoin |
relay_728126428 | Tron |
relay_792703809 | Solana |
Other rails
| Identifier | Rail |
|---|---|
near_intents_133701 | Zcash, through NEAR Intents |
apple_pay | Apple 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.