Payment Object
Types with ? at the end are nullable.
Field | Type | Description | Standard |
---|---|---|---|
id | string | Payment’s unique ID. | UUIDv4 |
status | string | Payment status. (default: initiated) | |
amount | integer | A positive integer in the smallest currency unit, e.g. cents. Here some example currencies and how to convert the amount:
Other currencies like the Kuwaiti Dinar are sub divided into 1000 units:
Some currencies are not divided, for example:
The minimum amount is 100 currency unit. | |
fee | integer | The transaction fee in the smallest currency unit. | |
currency | string | Three-letter currency code from ISO 4217. Defaults to SAR. | ISO 4217 |
refunded | integer | Refunded amount in the smallest currency unit. | |
refunded_at | string? | Timestamp of when the payment was refunded. | |
captured | integer | Captured amount in the smallest currency unit. | |
captured_at | string? | Timestamp of when the payment was refunded captured. | |
voided_at | string? | Timestamp of when the payment was refunded voided. | |
description | string? | Human readable text describing the payment. This is not displayed to the payer. | |
invoice_id | string? | ID of the invoice this payment was initiated for. | |
ip | string | The payer IP address. | IPv4 |
callback_url | string? | Redirection URL that is used by Moyasar to redirect the payer to the merchant page. | |
created_at | string | Timestamp of the payment creation. | |
updated_at | string | Timestamp of when the payment was last updated. | |
metadata | object? | Shows the key-value data object that was sent during the payment creation. | String => String |
source | object | Payment source object | |