Skip to Content Skip to Menu

move from Paypal IPN/PDT to REST API

1 month 2 weeks ago #344267 by Thelowlandpiper
Replied by Thelowlandpiper on topic move from Paypal IPN/PDT to REST API
The payment came out of the subscribers Paypal account and into our account with the same time stamp as the PDT error. Does the log message help?

Paypal: Error: Received FAIL result message from Paypal: Sorry your payment has not been processed. Transaction result:FAIL
Error: 4020. Please try again and notify system administrator.

Call trace:
called in class cbpaidHistory::logError() on line 571 in file cbpaidPayHandler.php
called in class cbpaidPayHandler::_setLogErrorMSG() on line 1632 in file cbpaidsubscriptions.paypal.php
called in class cbpaidpaypal::handlePaypalPDT() on line 339 in file cbpaidsubscriptions.paypal.php
called in class cbpaidpaypal::handleReturn() on line 136 in file cbpaidHostedPagePayHandler.php
called in class cbpaidHostedPagePayHandler::resultNotification() on line 774 in file cbpaidControllerCBTab.php
called in class cbpaidControllerCBTab::getTabComponent() on line 1155 in file cbpaidsubscriptions.php
called in class getcbpaidsubscriptionsTab::getTabComponent() on line 92 in file cbpaidControllerCBComponent.php
called in class CBplug_cbpaidsubscriptions::getCBpluginComponent() on line 879 in file cbPluginHandler.php
called in class cbPluginHandler::call() on line 1611 in file cbTabs.php
called in class cbTabs::_callTabPlugin() on line 1725 in file cbTabs.php
called in class cbTabs::tabClassPluginTabs() on line 732 in file comprofiler.php
called in function tabClass() on line 284 in file comprofiler.php

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50659
  • Thanks: 8682
  • Karma: 1474
1 month 2 weeks ago - 1 month 2 weeks ago #344270 by krileon
Replied by krileon on topic move from Paypal IPN/PDT to REST API
Strange. PayPal itself is sending an error code with the PDT. Please PM backend super user login credentials and provide the username of the user this is happening to and will take a look at the logs to see what's going on as something is causing PayPal to redirect them back with a failed response. As for the payment still happening I'm betting it's a retry attempt that's finally paying, but the IPN from that should pay the basket fine.

Are you absolutely sure your Identity Token is correct? That's the only reason I can think of for that check to fail.


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.
Last edit: 1 month 2 weeks ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50659
  • Thanks: 8682
  • Karma: 1474
1 month 2 weeks ago #344271 by krileon
Replied by krileon on topic move from Paypal IPN/PDT to REST API
Have reviewed your install. All PDT are failing due to them not authenticating during the /cgi-bin/webscr API call when checking _notify-synch. This is almost exclusively due to the "Your PayPal Identity Token" parameter being incorrect.

Within your PayPal account navigate to Settings (gear icon) > Seller tools > Website preferences. The below URL should take you there directly.

www.paypal.com/unifiedsettings/webPreferences

Once there please configure the following.

Auto return for website payments: On
Payment data transfer: On
Encrypted website payments: Off

Now copy your "Identity Token" to CBSubs in your PayPal gateway to the "Your PayPal Identity Token" parameter. Please be sure you've carefully copied it exactly as shown. This must be done for the account that's handling the payments. The same account that you've supplied Merchant ID from.


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.

1 month 2 weeks ago #344272 by Thelowlandpiper
Replied by Thelowlandpiper on topic move from Paypal IPN/PDT to REST API
Thanks for having a look. 

Those settings are all as they should be. I copied the identity token from both places and compared them, 100% identical, no trailing spaces or anything amiss that I can see. I've copied over the token again just in case.

Stephen

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

1 month 2 weeks ago #344273 by Thelowlandpiper
Replied by Thelowlandpiper on topic move from Paypal IPN/PDT to REST API
Tried to send a private message but the screen just flashes and won't accept text; am I doing something wrong?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 50659
  • Thanks: 8682
  • Karma: 1474
1 month 2 weeks ago #344274 by krileon
Replied by krileon on topic move from Paypal IPN/PDT to REST API
Very strange. That's the only reason for that error to happen as it's a response from PayPal's own API. I'm not sure what more to suggest at this time. I'll dig further into this and see if maybe there's something wrong with the API during the deprecation.

I've also bumped up the PayPal REST payment gateway to be my next task so I'll be starting that this or next week. Hopefully it won't take too long to get implemented. I'll be leaving the current PayPal gateway untouched for backwards compatibility and this will be an entirely separate gateway included with CBSubs.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum