The Payment object represents the life cycle of payment from the time it was requested to the completion of it. It is used for accepting one-time payments from customers.
Payment Attributes
Attributes | Type | Description |
---|---|---|
id | string | Unique identifier for the object. |
status | enum | The status of the payment. See Payment Statuses |
amount | string | The payment amount to be received. |
createdAt | timestamp | Time at which the object was created. |
description | string | An arbitrary string attached to the object. Often useful for displaying to users. |
expiredAt | timestamp | Time at which the Payment object should no longer be able to successfully receive any payments. |
referenceId | string | The referenceId that was used to request for the Payment. Typically an "order id", "invoice id" or "cart id". |
fees | string | The amount of fees charged to your platform to process this payment. |
paymentMethod | object | The Payment Method to be used to capture the payment. Refer to Payment Method to understand the Payment Method object. |
Payment Object
{
"data": {
"id": "contract_7abf6bb130d44c02862982ff6022875d",
"type": "payment",
"attributes": {
"status": "paid",
"amount": "110000.0",
"createdAt": "2020-08-14T14:35:24+07:00",
"description": null,
"expiredAt": null,
"referenceId": "external_id_b470bc6356",
"fees": "3630.0",
"paymentMethod": {
"type": "virtual_bank_account",
"referenceId": "va_reference_id",
"instructions": {
"bankShortCode": "BNI",
"accountNo": "8848095778242337",
"displayName": "Nama Tampilan"
}
}
}
}
}