Developer SDK Specs

Integrate Peer Pay checkout into custom React, Vue, iOS, and Node.js applications.

src/peer-checkout.ts npm i @peer-pay/sdk
import { PeerPayCheckout } from '@peer-pay/sdk';

const peer = new PeerPayCheckout({
  apiKey: 'pk_live_peer_89a204f19b',
  network: 'robinhood-mainnet',
});

async function handleCheckout() {
  const session = await peer.createSession({
    amount: 1337.00,
    currency: 'USDC',
    recipientWallet: '0x71C7656EC7ab88b098defB751B7401B5f6d8976F',
    allowedApps: ['venmo', 'cashapp', 'revolut', 'robinhood']
  });

  peer.openModal(session.id);
}