Jump to content
cinolas

PayPal App 5.018 Express Checkout now gives generic "Things don't appear to be working at the moment. Please try again later." error

Recommended Posts

My PayPal App is no longer working. I only use Express Checkout, and I removed the button on the cart page so it has to go through the checkout process to the payment method. Everything seems fine on my site but after the log-in page on PayPal it loads a generic error page that reads: "Things don't appear to be working at the moment. Please try again later." The Return to Merchant button sends the user back to their shopping cart. There's nothing in my logs, and I'm not sure I even have access to a log at PayPal.

Any idea?

1050852197_ScreenShot2020-03-18at11_19_47AM.thumb.png.702b68ac503def6dd6a208b7214eae90.png

 

Share this post


Link to post
Share on other sites

I contacted PayPal support about this and they said:

Quote

I checked your SetExpressCheckout details call and was able to see this error is occurring because the character count you are returning in the callback of shippingoptionname exceeds 256 characters. The example you provided had 423. 

See example:

"Flat Rate (arrives same date as Expedited)" "Small package: NO TRACKING\, NOT INSURED Mailbox delivery.: 0.0105kg\, 1mm\," "Canada Post Service Expedited Parcel\, 2020-03-24" "Canada Post Service Priority\, 2020-03-23" "Canada Post Service Regular Parcel\, 2020-03-26" "Canada Post Service Xpresspost\, 2020-03-24" "Store Pickup Store Pickup in Vancouver\, BC\, Canada ***Choose me for GIFT CERTIFICATES only email delivery" 

You'll need to reduce the character count in the callback in order to resole the issue. 

Is there something on the back end I can do to reduce the number of characters? or do I need to reduce the actual names of each shipping service offered?

Share this post


Link to post
Share on other sites

PayPal support is correct. This happens if the shipping methods text > 256 characters.

I edited my shipping method names and texts and it now works fine.

Still, I'd prefer to be verbose if I need to. Is there some way of preventing this bug so I can preserve my original shipping method names and texts?

Share this post


Link to post
Share on other sites

Can't you just change the text that you send to PayPal?  That would be a coding change, but that's the only way that you can change just what PayPal gets. 

Note that the "bug" is that PayPal doesn't accept values more than 256 characters (a character is a letter or other mark).  So to fix that, you'd have to fix PayPal.  It's a limitation in PayPal, not in osCommerce. 


Always back up before making changes.

Share this post


Link to post
Share on other sites
5 minutes ago, ecartz said:

Can't you just change the text that you send to PayPal?  That would be a coding change, but that's the only way that you can change just what PayPal gets. 

Note that the "bug" is that PayPal doesn't accept values more than 256 characters (a character is a letter or other mark).  So to fix that, you'd have to fix PayPal.  It's a limitation in PayPal, not in osCommerce. 

I'm not even sure why this text is being sent to PayPal, the payment page on PayPal shows the chosen shipping method only, not all available. I'm weary of changing code in the PayPal App module since I understand so very little of it. Could you recommend a change?

I fully understand that the bug is actually at PayPal. But us store owners who need to accept PayPal payments are at their mercy. The "bug" on the PayPal App would be the unhandled exception: ie catching the problem on osCommerce, before it gets to PayPal (if that's even possible). Or perhaps at least emergency-truncating the text at 256 chars so it doesn't cause the payment process to fail for the end user.

This problem could creep up on many stores without them even having to change anything, if the courier company changes their service names and adds too many characters for example. PayPal didn't sound like they were planning on expanding their character limit...

Cheers!

Share this post


Link to post
Share on other sites
1 hour ago, cinolas said:

I'm not even sure why this text is being sent to PayPal, the payment page on PayPal shows the chosen shipping method only, not all available.

The shipping methods are sent when the Instant Update option is enabled. You can try disabling that instead of changing the text, as long as you don't mind not having the choices show up at paypal.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×