Skip to content

Check Payment Status API

money2609 edited this page May 23, 2018 · 2 revisions

Live Environment url: https://pgupi.mypoolin.com/check_wallet_status_for_merchant
Test Environment url: https://testpgupi.mypoolin.com/check_wallet_status_for_merchant

Request Type - POST Parameters -

  1. merchant_txn_id (Merchant transaction Id)
  2. merchant_name (your username on Wibmopay)
  3. checksum

You can find below the steps to be followed for generating the checksum when making the POST request. Also, pseudo code is written below to give you an idea.

1. Initialize an array and put in elements as 
     arr = [merchant_txn_id,secret]

2. Concatenate elements in array with pipe(|)  
     for (data in arr){  
     checksum_str  += str(data) + '|'  
     }
    
     checksum_str = checksum_str[:-1]  


3. Generate hash512  
     return hashlib.sha512(checksum_str).hexdigest().upper()

CURL Request for Check status

curl -X POST \
  https://testpgupi.mypoolin.com/check_wallet_status_for_merchant \
  -F merchant_txn_id=<merchant_txn_id> \
  -F merchant_name=<username> \
  -F checksum=<checksum>

Clone this wiki locally