ORD-20731 for 8 400 DZD. The customer pays in cash at a Broco cash point. The merchant is connected as conn_mrc_4f7Kp2.
1
Create the cash payment
When the customer selects Pay in cash at a Broco point, your server creates the cash payment.
Request
Response
2
Show the payment instructions
Display the
payment_reference, the QR code, the amount and expires_at on the order confirmation, and send them by email or SMS. Link to instructions_url for the list of cash points. Keep the order on hold: it ships only after payment.3
The customer pays at a cash point
The cash agent scans the QR code or enters the reference. Broco shows the agent the merchant, the order reference, the amount and the deadline. The agent counts the cash and validates the amount received. The customer receives a receipt.
4
Receive the result on your server
Broco sends Fee values are examples.
cash_payment.succeeded. Check that data.id is the cash payment you created, then check data.merchant_connection, data.order_reference, data.amount and data.currency. Then mark the order as paid and ship it.Event (excerpt)
5
Reconcile
Use
order_reference and receipt_number to match the payment with the order and with the merchant’s Broco history.Next step
Cash payment lifecycle
Handle unpaid, expired and canceled requests, and edge cases at the cash point.