Verify checkout transaction
Verify the status of your customer checkout transaction.
URI
GET
https://api.tryduplo.com/v1/checkout/verify-transaction/:checkout_reference?business_id={YOUR_VALUE}
Parameters
Header
Authorization
string
set value to Bearer SECRET_KEY
Query Param
business_id
string
required
Merchant Business ID
Path Param
checkout_reference
string
required
Checkout reference
The customer will only be allowed to pay the exact amount, any other amount will be rejected.
Sample request
curl --location --request GET 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G?business_id={YOUR_VALUE}' \
--header 'dpmlekdno: swwje4t343643'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G',
headers: {
'dpmlekdno': 'kuuwwmwje4t3643'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'dpmlekdno: swyriewje84nxtmq94'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Duplo Response
{
"data": {
"checkout_transaction_details": {
"source_details": {
"bank_name": "Fidelity",
"account_name": "Manni Ben",
"account_number": "7218000007"
},
"receiver_details": {
"bank_name": "Wema Bank",
"account_name": "Daniel Doe",
"account_number": "8890000062"
},
"_id": "635c9ff39f6f800dc44299",
"currency": "NGN",
"created_at": "2022-09-15T07:45:18.953Z",
"updated_at": "2022-09-15T07:45:18.953Z",
"new_balance": "14750",
"account_number": "8890000062",
"session_id": "878837230723606234664390001888004118416997121",
"provider_ref_id": "19996142384749099704008266091707899121010",
"type": "credit",
"channel": "nip",
"description": "PURCHASE DEPOSIT FOR XOA",
"business_id": "8ed1cc-1e1c-4ad1-9ed8-e870d6543349",
"account": "632251552d96e7000d597681",
"account_ref": "act_aO7yrjAIHnIy",
"wallet_ref": "wal_eV9nNyLc54oO",
"status": "successful",
"transaction_ref": "tran_IwUsE63IwOIT",
"fee_amount": "0",
"settled_amount": "1200",
"amount": "1200",
"date": "2022-09-15T07:45:18.953Z",
"category": "pay-with-transfer",
"multiple_source_details": [],
"__v": 0
}
},
"errors": {},
"message": "Request successful"
}
Last updated
Was this helpful?