how to test with paypal sandbox

  • Posts: 4
  • Thank you received: 0
13 years 8 months ago #11650

i am using a business and a buyer account for paypal sandbox. i am using 216.113.191.*,
173.0.82.*, 66.135.197.*,216.113.169.* as the ip addresses (i think a couple of the ip addresses are old but i dont think that will matter if i have the new ones), and www.sandbox.paypal.com/cgi-bin/websc for the url instead of the real paypal one. when logged into the paypal sandbox accounts, it looks like the money gets transferred between the accounts. my problem is that i receive emails saying
" Hello,
A Paypal notification was refused because the connection to the confirmation server failed."
Does this mean one of the ip addresses is incorrect? did i miss a configuration? or is my hosting company blocking messages? any thoughts on how to get this to work would be appreciated.
Thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11654

The IPs in the paypal plugin are retrieved automatically by HikaShop the first time you configure the plugin. You should not need to update them unless there is a problem later on (if paypal add new servers for example).

When HikaShop receives a payment notification from paypal, it needs to validate the notification by sending a confirmation request to paypal's servers in order to make sure that the notification was sent by paypal (that's the standard way of handling payment notifications with paypal). Some hosting companies block outgoing connections from their hosting servers, so it could indeed be the problem. In that case, the only solution is to contact your hosting company.
An alternative is to disable the payment notifications in the paypal plugin settings and manually validate the orders on your end via the hikashop back end.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
13 years 8 months ago #11658

Hmmm... i thought since i was using the paypal sandbox, i'd have to use there ip addresses, since they are different than the real paypal ip addresses. maybe i should go with the simple solution you provided of disabling the payment notifications, though it would be cool to get email conformations. i'll check with my hosting provider and see if they are blocking the messages. Thanks for the info.

Please Log in or Create an account to join the conversation.

  • Posts: 4
  • Thank you received: 0
13 years 8 months ago #11659

Hmmm... i thought since i was using the paypal sandbox, i'd have to use there ip addresses, since they are different than the real paypal ip addresses. maybe i should go with the simple solution you provided of disabling the payment notifications, though it would be cool to get email conformations. i'll check with my hosting provider and see if they are blocking the messages. Thanks for the info.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 8 months ago #11660

The plugin retrieves the IPs of the servers for www.paypal.com , notify.paypal.com and ipn.sandbox.paypal.com so you should be ok.

The email message is different if the problem comes from the IP. You would get the error "IP not valid". Your error message only happens when the connection can't be established.

Please Log in or Create an account to join the conversation.

Time to create page: 0.038 seconds
Powered by Kunena Forum