Skip to Content Skip to Menu

[SOLVED] [#6300] PayPal PDT and IPN communication issues

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
8 years 1 month ago - 8 years 1 week ago #287144 by jimstrong
We are running CB 2.0.15 and CBSubs 4.1.0 on Joomla 3.6.22.

I posted a month or two ago about an error I started getting when trying to process CBSubs payments through our PayPal sandbox account (with the new security structures). At the time I was on CB 1.9.1 and CBSubs 3.0.0 but have since upgraded both CB and CBSubs.

Working with PayPal and our hosting service, I have been able to demonstrate (using PayPal’s paypal_pdt.php and paypal_ipn.php test scripts) that the server communicates well with the PayPal sandbox and is able to process both PDT and IPN messages.

However, when I process a payment via CBSubs to the PayPal sandbox account, although the payment itself is received by PayPal, when the customer is returned to the website, the error message “Sorry no response for your payment from payment server (error 0). Please check your email and status later.” is shown. Paid Subscriptions/Notifications shows “IPN payment gateway communication error” and Paid Subscriptions/History shows “Paypal: Error at notification received: could not reach Paypal gateway for notification check at www.sandbox.paypal.com . COMMUNICATION ERROR”.

The live PayPal servers are not due to be moved to the new security structures until June next year and currently work well - we are only seeing the issue with the sandbox servers running the new security structures.

Please let me know if I can provide more information from the logs to help work out what is happening.

Thanks

Jim
Last edit: 8 years 1 week ago by beat. Reason: Added [SOLVED] tag to subject

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287156 by krileon
Replied by krileon on topic PayPal PDT and IPN communication issues
That means the API call to PayPal to verify the IPN failed. Could be the API outbound connection couldn't be made or that the API credentials supplied in the gateway are wrong. The API credentials should be provided in your sandbox business account.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
8 years 1 month ago #287166 by jimstrong
Replied by jimstrong on topic PayPal PDT and IPN communication issues
Thanks Kyle. Just to be clear; in the Payment Gateway settings, are you referring to the PayPal Account and PDT Identity token (which are the same as we have always used), or to the optional PayPal API credentials? We have never used the latter and have always left those fields blank.

In our initial investigations (when we were still on 1.9.1. and 3.0.0), PayPal technical support ended up saying "I think there is an issue with the script being used. The server it is hosted on seems to be perfectly capable of communicating with the sandbox, so it comes down to analyzing the script itself." To set the record straight with them, is it correct to tell them that you have been able to successfully process CBsubs payments via PayPal's sandbox servers using their new security structures?

Thanks

Jim

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

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
8 years 1 month ago #287167 by jimstrong
Replied by jimstrong on topic PayPal PDT and IPN communication issues
By the way, I'm using the standard PayPal gateway.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
8 years 1 month ago #287215 by krileon
Replied by krileon on topic PayPal PDT and IPN communication issues
The communication error is a direct response of the API request to PayPal failing. Either because the API URL couldn't be reached or PayPal rejecting it. Others have reported issues with Sandbox environments only, which clearly don't appear to be a representation of their live environment. Some have reported their Sandbox accounts weren't internally approved yet so API requests were being rejected.

Within PayPal sandbox use a business test account as the seller. Supply the Merchant ID to "PayPal Business (email or secure merchant ID)" and the email address of that business test account to "PayPal Main receiver account (email) (if Business is different from your main account)". Next supply "Your PayPal Identity Token". Once done configure the API credentials under "PayPal API credentials (optional)" using that same business account then see if issue persists.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

  • jimstrong
  • jimstrong
  • OFFLINE
  • Posts: 63
  • Thanks: 6
  • Karma: 0
  • Add-ons
8 years 1 month ago #287220 by jimstrong
Replied by jimstrong on topic PayPal PDT and IPN communication issues
For sure, the current sandbox environment is quite different from live - PayPal having introduced their new secure environment (due for implementation on the live environment in June next year) for testing purposes. I was previously able to process payments on the old sandbox setup, but not the new one

Anyway, I've checked and re-checked my API credentials as set out in your second paragraph and still get the communication error even though the payment itself is processed successfully in PayPal. PayPal have previously advised that the server can communicate OK, so I am really stuck at the moment.

Have the Joomlapolis team been able to process payments on the new sandbox environment OK? I'm wondering if I might have some of my settings wrong (e.g. the PCI-DSS "Keep HTTP/HTTPS mode as is" or "Force HTTPS on CBSubs forms"). I've tried both settings, though, and have also tried the Joomla "Force HTTPS" setting but no luck.

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

Moderators: beatnantkrileon
Powered by Kunena Forum