The payments resource lets authenticated users submit a payment for a placed order and retrieve the resulting payment record. All payment endpoints require Firebase authentication.Documentation 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.
POST /payments — createPayment({...})
Submits a payment for an existing order. The payment is processed immediately in simulation mode.
Request parameters
ID of the order to pay for. The order must already exist.
Payment method. One of
CASH_ON_PICKUP, CREDIT_CARD, DEBIT_CARD, or PSE.Last 4 digits of the card number, used only in simulation mode. Cards ending in
0000 are declined; all other values are approved. Required when method is CREDIT_CARD or DEBIT_CARD.Response fields
Result of the payment attempt. Typical values:
APPROVED, DECLINED, PENDING.Example
GET /payments/order/:orderId — fetchPaymentByOrder(orderId)
Returns the payment record associated with a given order.
Request parameters
ID of the order whose payment record you want to retrieve.
Response fields
Returns the payment object for the order, with the same shape as the response fromcreatePayment(), plus metadata such as createdAt and orderId.