Purchase Data Object
For every purchase, certain properties are usually available as part of the data object.
for example, the transaction_status property is what determines whether the value was given or not. A description of each of the data property is described in the table below.
SUCCESSFUL TRANSACTION transaction_status - "SUCCESS" is what determines a successful transaction.
FAILED TRANSACTION transaction_status - "FAILED" means an outright failure as the processor was unable to successfully process the request and you can refund your customers.
The Data property
client_reference
string
This is your own unique request identifier
debited
boolean
This determines if you were debited for the request or not
transaction_status
string
This is what determines the final status of the real transaction. Can be "SUCCESS", "PENDING" or "FAILED"
payment_status
string
To determine if you have paid for the service or not.
currency
string
This is the currency in which you were debited for the request.
amount
numeric
The cost of your request.
action
string
This describes your request for action. Can be "VALIDATE", "PURCHASE", "GET_STATUS", "BALANCE", "FETCH_PRODUCTS"
provider
string
This is a short code to describe the transaction processor.
value_number
string
This is the account that receives the value of purchase.
narration
string
Transaction description
category
string
describes the category and subcategory.
adapter_reference
string
This is our own reference use to push your request to providers.
provider_reference
string
This is the reference we got from the service provider to identify your request.
created_at
string
This is the time we received your request.
service_data
object (optional)
This is a dynamic object containing additional properties depending on your request.
provider_response
object (optional)
This contains the raw response we got from the service provider, should you want more data.
Last updated