Skip to main content

Get Payment Details

This endpoint retrieves complete details and metadata for a specific payment transaction. It provides information such as the transaction ID, status, amount, currency, customer details, and any custom metadata submitted during the payment process.

Endpoint

GET Payments/GetPaymentInfo/{{ accessCode }}

Request Params

Response Data

The following table describes the fields returned in the response:

FieldTypeDescription
emailstringCustomer's email address.
amountnumberInitial transaction amount.
transactionIdstringUnique identifier for the transaction.
linkstringCheckout link for completing the payment.
referencestringUnique reference for the payment (accessCode).
businessNamestringName of the merchant’s business.
isActivebooleanIndicates if the transaction is active.
cardPaymentbooleanIndicates if card payments are supported.
ussdPaymentbooleanIndicates if USSD payments are supported.
qrPaymentbooleanIndicates if QR code payments are supported.
walletPaymentbooleanIndicates if wallet payments are supported.
transferPaymentbooleanIndicates if bank transfer payments are supported.
logostring | nullLogo of the merchant (if available).
webHookUrlstring | nullWebhook URL for post-payment callbacks.
tokenstringEncoded token for the transaction.
currencystringCurrency code (e.g. NGN).
callbackUrlstringURL to redirect the user after transaction completion.
metadataobject | nullOptional metadata provided during initialization.
publicKeystringMerchant public key for sensitive data encryption.
merchantIdnumberUnique identifier for the merchant.
totalAmountnumberTotal payable amount including charges.
isChargeTransferedToCustomerbooleanIndicates if transaction charges are passed to the customer.
isPaymentPageCustomizationEnabledbooleanIndicates if the payment page was customized.
customizationobjectCustomization data (e.g. colors, footer text, logo, etc.).
merchantBusinessEmailstringMerchant’s business email address.
firstnamestring | nullCustomer’s first name (if available).
lastnamestring | nullCustomer’s last name (if available).
phonenumberstring | nullCustomer’s phone number (if available).
isLivebooleanIndicates if the transaction was created in live mode.
convinienceFeenumberThe convenience fee charged to the user.
totalAmount_CardnumberTotal amount when card payment is used.
totalAmount_TransfernumberTotal amount when transfer payment is used.
totalAmount_USSDnumberTotal amount when USSD payment is used.
Response (200)
{
"responseCode": "00",
"responseMessage": "Payment information fetched successfully",
"data": {
"email": "therealemino@gmail.com",
"firstname": null,
"lastname": null,
"phonenumber": null,
"amount": 2,
"transactionId": "ECHY_INI_007",
"link": "https://checkout.echezona.com/DNkz8kjh0QUpDHY",
"reference": "DNkz8kjh0QUpDHY",
"businessName": "Emino Sin Amor",
"isActive": true,
"cardPayment": true,
"ussdPayment": true,
"qrPayment": false,
"walletPayment": false,
"transferPayment": true,
"logo": null,
"webHookUrl": null,
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"currency": "NGN",
"callbackUrl": "https://inline.paybridge.africa/callback.html",
"metadata": null,
"publicKey": "-----BEGIN PUBLIC KEY----- ... -----END PUBLIC KEY-----",
"transactionHistoryId": 0,
"merchantId": 12,
"productId": null,
"productDescription": null,
"totalAmount": 7,
"isChargeTransferedToCustomer": false,
"isPaymentPageCustomizationEnabled": false,
"customization": {
"bodyColor": null,
"buttonColor": null,
"footerText": null,
"footerLink": null,
"footerLogo": null
},
"merchantBusinessEmail": "therealemino@gmail.com",
"isLive": true,
"convinienceFee": 5.00,
"totalAmount_Card": 7.00,
"totalAmount_Transfer": 7.00,
"totalAmount_USSD": 7.00
}
}