Payment in Panahashi is handled after an order is created. For cash orders, the backend creates the order and returns a QR code immediately — no extra payment step is needed. For card and PSE payments, the user is directed toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndrewwCO/Panahashi/llms.txt
Use this file to discover all available pages before exploring further.
PaymentScreen to complete the transaction before the confirmation screen appears.
Supported payment methods
| Method | Code |
|---|---|
| Cash on pickup | CASH_ON_PICKUP |
| Credit card | CREDIT_CARD |
| Debit card | DEBIT_CARD |
| PSE (bank transfer) | PSE |
Payment flow
Select method in cart
The user selects a payment method in
CartScreen before placing the order. Cash on pickup skips PaymentScreen entirely and navigates directly to OrderConfirmationScreen.Enter payment details
For
CREDIT_CARD and DEBIT_CARD, PaymentScreen presents a card form with fields for card number (16 digits), cardholder name, expiry date (MM/YY), and CVV. A card preview updates as the user types.For PSE, no form is shown — the screen confirms that the bank transfer will be auto-approved in demo mode.Submit payment
Tapping the pay button calls
createPayment():| Field | Type | Description |
|---|---|---|
orderId | string | ID of the order created in the previous step |
method | string | Payment method code (e.g. CREDIT_CARD) |
simulatedCardLast4 | string | Last 4 digits of the card number (card payments only) |
Simulated card decline
Panahashi runs in demo mode — no real payment processor is used. The backend simulates approval and decline based on the last 4 digits of the card number passed insimulatedCardLast4.
This logic is documented in services/api.js:
Checking payment status
To retrieve the payment record for a given order — useful inOrderDetailScreen to show payment method and approval status — use:
GET /payments/order/:orderId and returns the payment object including status (PENDING, APPROVED, REJECTED, or REFUNDED) and the payment method used.