Paypal IPN item_name suddenly adding + signs resulting in mismatch

7 years 1 month ago - 6 years 2 weeks ago #292768 by boyjahq
From today 3 April 2017 I have started getting errors like this:
currency, item name or number or quantity mismatch: IPN item_name (1+ADULT-START+IMMEDIATELY+for+w43799) does not match basket item_name (1 ADULT-START IMMEDIATELY for w43799) nor their trimmed sizes for IPN (1+ADULT-START+IMMEDIATELY+for+w43799) and basket (1 ADULT-START IMMEDIATELY for w43799)

For some reason "+" signs are being added where there are spaces in the IPN item_name. It does not happen for all payments and it is happening across different subscription plans. Some of my plans are in Japanese, but the "+" sign only is added between English words. For example:

currency, item name or number or quantity mismatch: IPN item_name (1年更新 大人1人 :レベル ブロンズ+for+w39146) does not match basket item_name (1年更新 大人1人 :レベル ブロンズ for w39146) nor their trimmed sizes for IPN (1年更新 大人1人 :レベル ブロンズ+for+w39146) and basket (1年更新 大人1人 :レベル ブロンズ for w39146)

I have not made any changes to any aspect of our system for many weeks.

Any idea why this might be happening and how I can fix it?

Please Log in to join the conversation.

7 years 1 month ago #292770 by beat
This looks like a bug on Paypal side. Please contact their helpdesk to ask them why they suddenly replace spaces by +'s in their POST forms. It happened already in the pat, and they fixed it quickly.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: boyjahq

Please Log in to join the conversation.

7 years 1 month ago #292791 by beat
I have implemented a workaround for that Paypal bug (basically if the item_name check fails, re-try checking with an urldecoded version of it), tested it, and made a CBSubs new nightly build, available in our Downloads section.

I have also advised Payapl about their bug that probably affects many shopping carts.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info
The following user(s) said Thank You: boyjahq

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.240 seconds

Facebook Twitter LinkedIn