This integration is to use Limepay's backend API to create and send the order to the user. It then needs to poll to detect when a payment has completed. There is a timeout option to cancel the order if a predefined poll period has been reached.
- Initiating system would need to create an order in the Limepay API by making an API call from your backend server with your secret API key to CreateOrderInvoice . This will take the user mobile number and/or email address and will also take the order details (total amount & line items).
- Invoice and payment options will be sent to the user Mobile phone and/or email for verification.
- Initiating system will poll the Limepay order status API using GetOrder , waiting on payment confirmation or failure. It is recommended that the poll method have a reasonable timeout period at which point the point of sale system should terminate the polling request and cancel the order via a CancelOrder API call.