|
Welcome,
Guest
|
|
|
$callback_url =fn_url("payment_notification.CHANGE?payment=pesapal&order_id=$order_id", AREA, 'current');
pesapal payment only return pesapal_transaction_tracking_id and pesapal_merchant_reference . I want the know the payment status whether the payment was complited or cancelled or pending ... |
|
|
|
Hi Soniya,
Yes you can query a payment status from Pesapal using the pesapal tracking ID and merchant reference returned to you. If you downloaded the Pesapal API files, within there is a file called checkStatus with a class containing methods that can query a payment status. If you don't have the API files please download them from here: developer.pesapal.com/how-to-integrate/samples-downloads Please let me know if you are successful. |
|
|
|
Yes i missed the $statusrequestAPI . Now its working for me.
|
|
|
|
Hey there
There is no file like checkStatus in the Pesapal Api folder provided |
|
I'm an enthusiast in PHP & MYSQL Website and web application Development in Kenya.Visit my website here questdesigners.com
|
|
The checkStatus functionality has been included in the file pesapal-ipn-listener.php
Read the code carefully and you will see a CURL request doing the checkstatus. |
|
|
|
Thanks
What i need to do is update the database once the status is COMPLETED, I'm trying to output $status in the url that is listening to the notification. I also want to output this message as shown in the image below I want the exact code that i can insert to my page and return the status this is what I'm trying to do Your help would be appreciated. |
|
I'm an enthusiast in PHP & MYSQL Website and web application Development in Kenya.Visit my website here questdesigners.com
|
|