Skip to Content Skip to Menu

[SOLVED] Transaction result:FAIL Error: 4020

12 years 7 months ago - 12 years 7 months ago #197719 by MasterNABO
Joomla! 1.5.26
CB 1.8
CBSubs 1.3.0 RC2

Having switched PDT (Payment Data Transfer) On for my PayPal gateway I got an error when processing a test subscription (A previous payment, with PDT off, worked fine):
"Sorry your payment has not been processed. Transaction result:FAIL Error: 4020. Please try again and notify system administrator.
No suitable basket found."

However the payment and auto-recurring subscription was processed.

I am at a loss to know how to proceed. Can I email you the notifications / IPN details so that you can advise me what to do?
Last edit: 12 years 7 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
12 years 7 months ago #197756 by krileon
Replied by krileon on topic Re: Transaction result:FAIL Error: 4020
Please check History Log to see what error occurred as it should provide you with the full error message.


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.

12 years 7 months ago - 12 years 7 months ago #197783 by MasterNABO
Replied by MasterNABO on topic Re: Transaction result:FAIL Error: 4020
In CBSubs' PayPal Gateway, I changed “PayPal Business (email or secure merchant ID)” & “PayPal Main receiver account (email) (if Business is different from your main account)” from web@nabo.org.uk to be the primary rather than the second PayPal default.
That dealt with the relevant errors shown on PayPal's IPN History.

However, when I repeated the test, both IPN messages reported Transaction Made. I had the same error message on my website on completion:
"Sorry your payment has not been processed. Transaction result:FAIL Error: 4020. Please try again and notify system administrator.
No suitable basket found."
On the CBSubs Notification Report, I had the following Notification Type: PDT notification not authenticating at payment gateway.
The Raw Result began FAIL and ended $_POST=array (
);
$transaction_info='FAIL
Error: 4020';
$PDT_RESULT=array (
0 => 'Error: 4020',
);

I don't want to post the full CBSubs Notification because I am unsure what would be insecure

Edited to add: Everything seems to have worked fine otherwise at CBSubs end: subscriptions, baskets, payments
Last edit: 12 years 7 months ago by MasterNABO. Reason: add detail

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48548
  • Thanks: 8290
  • Karma: 1445
12 years 7 months ago #197784 by krileon
Replied by krileon on topic Re: Transaction result:FAIL Error: 4020
Believe that means the identity token isn't correct. Please ensure you're completely configured the PayPal gateway correctly. As for configuration I recommend the below to avoid issues.

PayPal Business (email or secure merchant ID): Merchant ID
PayPal Main receiver account (email) (if Business is different from your main account): Email address marked as "Primary" in your PayPal account
Your PayPal Identity Token: Token provided by PayPal

Tends to work better in my tests when using the merchant id instead of using email address.


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.

12 years 7 months ago - 12 years 7 months ago #197786 by MasterNABO
Replied by MasterNABO on topic Re: Transaction result:FAIL Error: 4020
Repeated test with Merchant Id replacing email. Checked PayPal Identity Token correct.
>>>>Edited to say PayPal Identity Token INCORRECT after further checking!!!

Same error message on return to our website from Paypal:
Sorry your payment has not been processed. Transaction result:FAIL Error: 4020. Please try again and notify system administrator.
No suitable basket found.

All seems to be correct in CBSubs, as last time: Subscriptions, Baskets, Payments

3 Notifications(as last time):
16/04/12 19:51:30 IPN: Verified for single payment (seems OK)
16/04/12 19:51:25 IPN: Verified for recurring payment(seems OK)
16/04/12 19:51:14 PDT notification not authenticating at payment gateway FAIL

Notification details:

Notification Id: 10
IP Address: ***redacted***
Notification type: PDT notification not authenticating at payment gateway
Log date: 16/04/12 19:51:14
Username: Jones91000
Full name: Nathan Graham Jones
User Id: 1000

Other sections blank except for
Test Payment Notification: 0
Payment Basket: 0

Raw Result:
FAIL
Raw data: $_GET=array (
'plugin' => 'cbpaidsubscriptions',
'cbpgacctno' => '1',
'cbppdtback' => '***redacted***',
'cbpbasket' => '5',
'result' => 'success',
'cbpid' => '***redacted***',
'tx' => '***redacted***',
'st' => 'Completed',
'amt' => '15.00',
'cc' => 'GBP',
'cm' => '5',
'item_number' => '',
'sig' => '***redacted***',
'Itemid' => '239',
'option' => 'com_comprofiler',
'task' => 'pluginclass',
);
$_POST=array (
);
$transaction_info='FAIL
Error: 4020';
$PDT_RESULT=array (
0 => 'Error: 4020',
);


Where do I go from here, please, Kyle?
Last edit: 12 years 7 months ago by MasterNABO.

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

12 years 7 months ago - 12 years 7 months ago #198015 by MasterNABO
Replied by MasterNABO on topic Re: Transaction result:FAIL Error: 4020
I re-checked the identity token and noted that the second character was a lower case w instead of an upper case W - how that could have happened given I used cut and paste, I don't know. But it did!
Having re-pasted the PayPal Identity Token, the transaction went through AND returned me to the correct page.
Thank you for your help.
Last edit: 12 years 7 months ago by MasterNABO. Reason: SOLVED

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

Moderators: beatnantkrileon
Powered by Kunena Forum