mobile-signalTap to Pay

Customer uses a phone passkey or a security key to pay.

Use transferTokens to collect payment.

Tap to Pay Flow
import { RevibaseProvider, transferTokens } from "@revibase/lite";

const provider = new RevibaseProvider();

async function handleCheckout(orderTotal: bigint, merchantWallet: string) {
  const { txSig, user } = await transferTokens(provider, {
    amount: orderTotal,
    destination: merchantWallet,
  });
  return txSig;
}

Use user.walletAddress if you want to associate the payment with a wallet.

Confirm the transaction landed using your RPC (fetch by signature).

Last updated