US: cards, Apple Pay, Google Pay, PayPal and Venmo — and no cash
Built: 2026-11-04. Written for US operators and whoever maintains the code.
US riders expect to pay with a card, the phone's own wallet, PayPal or Venmo, and never with cash. A US market now comes set up that way:
payment.gateways = ['stripe', 'wallets', 'paypal', 'venmo', 'manual']
payment.cashRides = false
Change both under Admin → Markets → Payments.
The rails
| Market key | What the rider sees | How it runs | Keys (Admin → Providers) |
|---|---|---|---|
stripe |
Cards | Stripe Payment Element in the app | Stripe |
wallets |
Apple Pay on iPhone, Google Pay on Android | Stripe Checkout, opened in the in-app browser. Apple Pay and Google Pay cannot run inside an app's web view, but the system browser sheet runs both. | Stripe (same account) |
paypal |
PayPal | PayPal Orders v2 checkout in the browser, captured once the rider approves | PayPal & Venmo: client id, secret, environment (sandbox or live), webhook id |
venmo |
Venmo | The same PayPal order with Venmo as the payment source. US dollars only. | PayPal (same account) |
All four are wallet top-ups. The rider tops up the wallet, and rides are then paid from that balance. Cards also pay rides directly through the card hold.
To set each one up:
- Apple Pay: verify your domain in the Stripe dashboard (Settings → Payment methods → Apple Pay).
- Google Pay: turn it on in the same place.
- Venmo: enable it on your PayPal business app.
How a PayPal or Venmo top-up completes
- We create the order. The rider follows PayPal's approval link and approves the payment.
- At that point the money is not captured yet. When the app next checks,
or a verified
CHECKOUT.ORDER.APPROVEDwebhook arrives, the order is captured. The capture is keyed on the order, so a second check never captures twice. - The wallet is credited only on a COMPLETED capture, and only once. A voided or declined order fails.
Webhooks are verified by PayPal's verify-webhook-signature, using your
webhook id. A PayPal event that fails verification is refused. Without a
webhook id, an event is confirmed with PayPal before any money is credited.
How an Apple Pay or Google Pay top-up completes
The top-up is a Stripe Checkout Session. It is credited in one of two ways:
- by Stripe's signed
checkout.session.completedwebhook, sent to/payments/webhook/stripe_checkoutwith the same webhook secret; - or when the app checks, if the session shows
paid.
An expired session expires the top-up.
No cash
When payment.cashRides is false:
- the apps are not offered Cash at all, either as a ride payment or as a top-up;
- booking a ride with
paymentMethod: cashis refused withcash_unavailable.
A region can still switch cash off on its own in a market that otherwise takes
it. That rule already existed (region rules, cash).
Gift cards
Wallet vouchers (Admin → Wallet vouchers) are gift cards. You print or sell codes in batches, and a rider types one in the wallet to credit the balance. This works in every market.
Code
backend/src/payments/providers/paypal-payment.provider.ts(PayPal and Venmo).backend/src/payments/providers/stripe-checkout.provider.ts(Apple Pay and Google Pay).topup-rail.resolver.ts: thewallets,paypalandvenmokeys.- Cash:
markets/country-presets.ts: the US gateways andcashRides;rides.service: refuses a cash booking;settings.service: removes cash from the offered methods.
- Rider app:
src/lib/payments.ts: the labels and the order the rails are shown in;app/(app)/pay-async.tsx: opens the checkout in the in-app browser.
- Admin: the PayPal credentials group and the rail catalog.
- Local testing:
STRIPE_API_BASEandPAYPAL_API_BASEpoint the providers at local mocks.