LogoLogo
  • GET STARTED
    • Integration Guide
    • Quick Start
  • Webhooks
    • Webhooks
      • Register a webhook
      • Webhook notification
      • Verify webhook
  • Payment APIs
    • Collect Payments
      • Virtual Accounts
        • Create a single-use virtual account
        • Create a multi-use virtual account
        • Update a virtual account
        • Delete a virtual account
        • List all virtual accounts
        • Get details of a virtual account
      • Digital Wallets
        • Create a wallet
        • List all wallets
        • Get details of a wallet
        • Transfer between wallets
        • Transfer to business
        • Sweep wallet balances
        • Get wallet balance
      • Customers
        • Create a customer
        • List all customers
        • Get customer details
      • Invoices
        • Create an invoice
        • Edit invoice
        • Resend invoice
        • List all invoices
        • Get invoice details
    • Make Payments
      • Request OTP to initiate payout
      • Get a list of registered banks
      • Get Wallet Balance
      • Verify account number
      • Initiate a payout
      • Get all transactions
      • Get details of a transaction
      • Recipients
        • Create a recipient
        • List all recipient
        • Get a recipient's details
        • Delete a recipient
        • Get recipients summary
    • Duplo Checkout
      • Checkout Redirect
        • Generate a checkout URL
      • Checkout SDK
      • Verify checkout transaction
    • Make Payments v2
      • Initiate a Payout v2
      • Resend OTP
      • Process Payout
      • Get details of a Transaction v2
Powered by GitBook
On this page
  • URI
  • Parameters
  • Sample request
  • Duplo Response

Was this helpful?

  1. Payment APIs
  2. Duplo Checkout

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"
}
PreviousCheckout SDKNextMake Payments v2

Last updated 1 year ago

Was this helpful?