Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

What if my server is down while IPN send notificat
(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: What if my server is down while IPN send notificat

What if my server is down while IPN send notificat 12 years, 6 months ago #547

Dear team,

For IPN , if my server is down at that time ? what would be ideal solution?

Re: What if my server is down while IPN send notificat 12 years, 6 months ago #548

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Hi rahul0611,

Our API allows you to send back a response that you were actually able to update your database using the code below:

if(DB_UPDATE_IS_SUCCESSFUL){
$resp="pesapal_notification_type=$pesapalNotification&pesapal_transaction_tracking_id=$pesapalTrackingId&pesapal_merchant_reference=$pesapal_merchant_reference";
ob_start();
echo $resp;
ob_flush();
exit;
}

If the server goes down before getting into <if> statement above, PesaPal will make an assumption that an update was not done and will call the IPN related to that specific transaction repeatedly till we get the response that you updated your database.
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: rahul0611

Re: What if my server is down while IPN send notificat 12 years, 6 months ago #550

Hi Lazro,
if i am not sending the response as "pesapal_notification_type=$pesapalNotification&pesapal_transaction_tracking_id=$pesapalTrackingId&pesapal_merchant_reference=$pesapal_merchant_reference" , how many times will pesapal try?

Thanks

Re: What if my server is down while IPN send notificat 12 years, 6 months ago #555

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Hi,

IPN is called frequently till a status is returned. The longer the confirmation takes, the lower the frequency gets. Meaning soon it will be almost "obsolete". It's not off but the period between two IPN calls is quite long.

In such a case you may re-run the IPN manually from your merchant account.
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.
  • Page:
  • 1