|
Welcome,
Guest
|
|
|
Hi guys, am trying to get the payment status asnd transaction method but am not able to access these parameters via the response I get from pesapal.
here's my code $inv=clean($_REQUEST['pesapal_merchant_reference']); $trackinid=clean($_REQUEST['pesapal_transaction_tracking_id']); $method=clean($_REQUEST['pesapal_transaction_payment_method']); $status=clean($_REQUEST['pesapal_transaction_status']); I really need the payment method to generate reports |
|
Last Edit: 13 years, 4 months ago by bkbrainstorm. Reason: Add info
|
|
To get the transaction method and payment status you will have to use the QueryPaymentDetails(www.pesapal.com/API/QueryPaymentDetails) API call to make the request. You will need to pass along your pesapal_merchant_reference id (the Reference you sent to PesaPal when posting the transaction) and your pesapal_transaction_tracking_id(the id returned to you by PesaPal, as a query parameter, when redirecting to your website) for each transaction you want to check the status. More details about how to use the several API calls provided by Pesapal can be found at developer.pesapal.com/how-to-integrate/api-reference
I hope this helps. |
|
|
|
is QueryPaymentDetails same as querypaymentstatus in their implementation?
|
|
|
|
Yes it is, the only difference is the data in the response you get. QueryPaymentDetails gives you more details as compared to querypaymentstatus
|
|
|
|