API Reference

The Payment entity represents a specific attempt to complete the financial transaction, connected to a particular payment method (credit card, bank transfer, etc.).

Payment Lifecycle

StatusDescription
ProcessingA payment is created in processing state when a payment request receives a success response from downstream
CompletedThe completed status indicates that the customer has successfully paid for the transaction. The funds will be settled to the merchant's account according to the agreed settlement schedule of the selected payment method
FailedThe Failed status means the payment could not be created due to an issue on Durianpay's or its provider's side. You can safely retry the payment with the same method for the same order
ExpiredThe Expired status indicates that the payment was not completed by the customer before the payment expiry date. As a result, the transaction is no longer valid
CancelledThe Cancelled status indicates that the merchant has deliberately canceled the transaction by calling Durianpay's Cancel Payment API. No payment will be processed, and the transaction is considered void