ParcelKit
Docs/Running the courier network/Payments and providers

Payments and providers

Every outside service is configured in the console under Providers: keys are typed there, stored encrypted with your install's APP_SECRET_KEY, and never needed in a file on the server. Each one is optional, and the system works without it — that is a promise the code keeps by falling back, never by crashing.

Service Without it
SMS (Twilio, MSG91) Login codes are written to the server log; customer texts are not sent.
WhatsApp Business (Meta Cloud API) Customer messages go by SMS; merchants' forwarded orders are not received.
Maps (Google) Maps and address search use OpenStreetMap.
Storage (S3, R2) Photos and documents are kept on the server's disk.
A payment rail The door takes cash and the card terminal.

Payment rails at the door

Each card under Providers says how far its integration has been proven:

  • Verified — driven through the provider's live or test API.
  • Unverified adapter — written to the provider's published contract and tested against a local stand-in of that API, but no payment has been made through a real account from this codebase. Your first test-mode payment is the real verification. Run it before you rely on the rail.
Rail Country Status How the door uses it
Razorpay India Verified (cards and payments); the UPI QR codes ParcelKit shows at the door are newer and were driven only against a stand-in QR the customer's UPI app scans
Paystack Nigeria, Ghana, South Africa, Kenya Verified Link shown as a QR
Flutterwave Nigeria and wider Africa Verified Link shown as a QR
Xendit Indonesia, Philippines, Malaysia, Thailand, Vietnam Verified Link shown as a QR (QRIS, e-wallets)
Stripe most markets Verified Card payments
Stripe Checkout United States and others Unverified adapter Link (Apple Pay, Google Pay)
Asaas Brazil Unverified adapter Pix QR
M-Pesa (Daraja) Kenya Unverified adapter PIN prompt on the customer's phone
Tap Gulf Unverified adapter Link (mada, KNET, NAPS, OmanNet)
Mercado Pago Latin America Unverified adapter Link
GCash (PayMongo) Philippines Unverified adapter Link
bKash Bangladesh Unverified adapter Link; the payment is executed on bKash's callback
PayPal, Venmo United States Unverified adapter Link
Moyasar Saudi Arabia Unverified adapter Cards and mada
Card terminal everywhere — (no integration) The rider types the approval code; the office confirms it against the terminal's settlement

OXXO and SPEI (Mexico) are never offered at a door: their money takes hours or days to arrive, and a rider cannot wait for it.

Callbacks

Gateways confirm payments by calling the API back. On a server, set PUBLIC_BASE_URL to the API's public HTTPS address (see Deployment), then in each provider's own dashboard add the webhook address:

https://api.yourcourier.com/api/payments/webhook/<provider>

where <provider> is the rail's name in lower case — razorpay, paystack, flutterwave, xendit, stripe, asaas, mpesa, tap, mercadopago, gcash, paypal, venmo, stripe_checkout, moyasar. Copy the signing secret the dashboard gives you into the matching webhook field on the rail's card: a callback whose signature does not match is ignored. bKash returns the customer to …/api/payments/return/bkash itself, so it needs no webhook.

WhatsApp: in Meta's app dashboard, the callback URL is https://api.yourcourier.com/api/webhooks/whatsapp, with the verify token you typed on the WhatsApp card.

source: docs/payments-and-providers.md (ships identically in the product zip)