Dark Mode

Payment Object


Payment Life Cycle

StatusDescription
processingA payment is created in processing state when a payment request receives a success response from downstream
completedWhen the status of the payment is changed to completed, the in processing payment is verified as complete by Durianpay. After the capture, the amount is settled to your account as per the settlement schedule of the bank
cancelledCustomer has cancelled this transaction
expiredThe payment ID is no longer payable as the transaction has exceeded the specified expiry time and remains unpaid by the customer
failedAny unsuccessful transaction is marked as failed and the customer will have to retry the payment

Payment Entity

FieldDescription
idstring The unique identifier of Payment
amountstring The amount for which the Payment was created
currencystring The currency associated with the Payment's amount
statusstring The status of Payment
typestring Type of payment. Possible values card, VA, wallet
created_atinteger Indicates the Unix timestamp when this Payment was created
metadatajson object Key-Value pair that can be used to store additional information about the entity. e.g. note: Force is with this payment
failure_reasonjson object The failure_reason fields including code, message. integer code is the failure status code and string message is the failure description

Payment Failure Codes

codedescription
20010error due to end user action
20011merchant is either blocked or invalid
20012payment expired
20013error from provider
20014payment cancelled by merchant