Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

PesaPal sends a bunch of notifications
(1 viewing) (1) Guest
Welcome to the Pesapal integration forum!

This forum discusses everything about Pesapal integration on your web site. Having any problems? This is the right place to post a question and we are sure you will get an answer
  • Page:
  • 1

TOPIC: PesaPal sends a bunch of notifications

PesaPal sends a bunch of notifications 10 years, 4 months ago #1426

  • evg
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
We get 4 notifications for every transaction from the PesaPal server.
They are identical and seem to be sent the same moment of time.
Our response to notifications is as described in the guide. We just send back what we get from PesaPal.

I tested using VISA 4111 1111 1111 1111.

[30-Jun-2015 02:07:13 America/Los_Angeles] 23.100.8.245 "GET /ipn.php?pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=3a32919a-a79f-4a22-9e38-374aba402f50&pesapal_merchant_reference=3850856"
[30-Jun-2015 02:07:13 America/Los_Angeles] 23.100.8.245 "GET /ipn.php?pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=3a32919a-a79f-4a22-9e38-374aba402f50&pesapal_merchant_reference=3850856"
[30-Jun-2015 02:07:13 America/Los_Angeles] 23.100.8.245 "GET /ipn.php?pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=3a32919a-a79f-4a22-9e38-374aba402f50&pesapal_merchant_reference=3850856"
[30-Jun-2015 02:07:14 America/Los_Angeles] 23.100.8.245 "GET /ipn.php?pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=3a32919a-a79f-4a22-9e38-374aba402f50&pesapal_merchant_reference=3850856"


Thanks.

Re: PesaPal sends a bunch of notifications 10 years, 4 months ago #1427

Hello evg,

Make sure that your code tells IPN that the notification has been successfully received.

Below is a sample code.

 
$resp = "pesapal_notification_type=$pesapalNotification".
"&pesapal_transaction_tracking_id=$pesapalTrackingId".
"&pesapal_merchant_reference=$pesapalMerchantReference";
 
ob_start();
echo $resp;
ob_flush();
exit; //this is mandatory. If you dont exit, Pesapal will not get your response.
 

Re: PesaPal sends a bunch of notifications 10 years, 4 months ago #1428

  • evg
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thank you for your reply.

Here's what your server sees:

curl -v "store-dev-evg.foxycart.com/ipn.php?pesap...erence=3850854"

> GET /ipn.php?pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=c218de68-bd4d-45a1-8a8e-e2415aa027f5&pesapal_merchant_reference=3850852 HTTP/1.1
> User-Agent: curl/7.35.0
> Host: store-dev-evg.foxycart.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Tue, 30 Jun 2015 09:57:28 GMT
< Connection: close
< Content-Type: text/html
< Content-Length: 136
<
pesapal_notification_type=CHANGE&pesapal_transaction_tracking_id=c218de68-bd4d-45a1-8a8e-e2415aa027f5&pesapal_merchant_reference=3850852
  • Page:
  • 1