Verify checkout transaction
Verify the status of your customer checkout transaction.
GET
https://api.tryduplo.com/v1/checkout/verify-transaction/:checkout_reference?business_id={YOUR_VALUE}
Authorization
string | set value to Bearer SECRET_KEY |
business_id
string required | Merchant Business ID |
checkout_reference
string required | Checkout reference |
The customer will only be allowed to pay the exact amount, any other amount will be rejected.
cURL
Node
PHP
curl --location --request GET 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G?business_id={YOUR_VALUE}' \
--header 'dpmlekdno: swwje4t343643'
1
var axios = require('axios');
2
3
var config = {
4
method: 'get',
5
url: 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G',
6
headers: {
7
'dpmlekdno': 'kuuwwmwje4t3643'
8
}
9
};
10
11
axios(config)
12
.then(function (response) {
13
console.log(JSON.stringify(response.data));
14
})
15
.catch(function (error) {
16
console.log(error);
17
});
1
<?php
2
3
$curl = curl_init();
4
5
curl_setopt_array($curl, array(
6
CURLOPT_URL => 'https://api.tryduplo.com/v1/checkout/verify-transaction/che_igdOMXRCwW1G',
7
CURLOPT_RETURNTRANSFER => true,
8
CURLOPT_ENCODING => '',
9
CURLOPT_MAXREDIRS => 10,
10
CURLOPT_TIMEOUT => 0,
11
CURLOPT_FOLLOWLOCATION => true,
12
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
13
CURLOPT_CUSTOMREQUEST => 'GET',
14
CURLOPT_HTTPHEADER => array(
15
'dpmlekdno: swyriewje84nxtmq94'
16
),
17
));
18
19
$response = curl_exec($curl);
20
21
curl_close($curl);
22
echo $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 modified 12d ago