Support

Home Forums Event Espresso Premium Paypal Commerce – Could Not Be Determined

Paypal Commerce – Could Not Be Determined

Posted: September 24, 2024 at 12:03 pm

Viewing 15 reply threads


clubgetaway

September 24, 2024 at 12:03 pm

We are getting an error and the paypal buttons are not working – We get this error in the log when we hit the paypal buttons on our site.

ID 400
Payment Method
PayPal Commerce
Transaction
Could not be determined
Content
Unexpected response. Unable to find the order.
https://api-m.paypal.com/v2/checkout/orders/


Garth

  • Support Staff

September 24, 2024 at 1:30 pm

Hi there,

I did notice your site is just one version behind the latest, and there were some updates to PayPal Commerce in 5.0.27, so I would recommend updating.

However, I just tested a registration and when clicking on the PayPal buttons, I was directed to PayPal.com to make a payment. I did not try to make a payment, but I was directed to PayPal.

Do you have more information about how to reproduce this issue or more information from log files?


clubgetaway

September 24, 2024 at 1:44 pm

I think the problem was being caused by me testing it while I was logged into the WP admin. I looged out and it worked as it should. Thanks for checking and confirming it works.


Tony

  • Support Staff

September 24, 2024 at 2:02 pm

Hmm, bit of odd one there, logging in/out of the admin shouldn’t have any effect.

But as it’s working currently we can’t test to see what is happening. If it comes up again I’ll take another look at your payment step.


clubgetaway

September 26, 2024 at 8:52 am

This reply has been marked as private.


Tony

  • Support Staff

September 26, 2024 at 2:23 pm

Hi there,

So the problem is the request to create an order ID is failing with just:

‘Request is not well-formed, syntactically incorrect, or violates schema.’

Can I take a look at the payment method logs to see if anything shows up there?

If so I’ll need temp access which you can send over using this form:

https://eventespresso.com/send-login-details/


clubgetaway

September 26, 2024 at 2:31 pm

I filled out the form – please let me know if there are any issues getting in.


Tony

  • Support Staff

September 26, 2024 at 4:38 pm

Ok, so I’ve seen this before and the value for serialize_precision within PHP is the issue.

Some hosts have an option within your control panel to set PHP settings and if so they’ll usually have an option to set the above.

I recommend setting it to be -1 (it is currently set to 100)

If you don’t have an option within your control panel I would create a ticket with your host to have them set this for you.

What is happening is ‘float’ values (for example $100.25) are being passed over to PayPal with far too many decimals ($100.24564657546778543) and PayPal then can’t handle it.

Changing the above setting fixes it.


clubgetaway

September 26, 2024 at 5:39 pm

We use siteground and it allowed me to change that setting and it seems to have worked. Thanks for your help in identifying the issue.


Tony

  • Support Staff

September 27, 2024 at 1:04 am

You’re most welcome, I’m glad it worked.

If I may, I noticed you have PayPal enabled for the Express checkout buttons and then Stripe for the (I presume) ‘onsite’ card fields… are you aware PayPal Commerce can do both of those in a single payment method?

If you are and you’re purposefully using Stripe for Card payments that’s absolutely fine, I’m just checking incase you wanted to reduce to a single payment method.


clubgetaway

September 27, 2024 at 6:08 am

This reply has been marked as private.


Tony

  • Support Staff

September 27, 2024 at 7:22 am

This reply has been marked as private.


clubgetaway

September 30, 2024 at 7:55 am

Good morning – Looks like we may still be having issues with this. Anyone we put through for Paypal Pay Later is getting denied. Then in the logs it says the payment method is “unknown”. Are you able to take a look and see if there is any issue on our end that is preventing this from working properly?


Tony

  • Support Staff

September 30, 2024 at 9:25 am

Then in the logs it says the payment method is “unknown”.

The Payment method showing ‘unknown’ isn’t an issue, it just means that when the log was created EE can’t identify which payment method called the log.

Looks like we may still be having issues with this. Anyone we put through for Paypal Pay Later is getting denied.

Do you know the steps taken and what was shown on the popup?

When you say they are getting denied, do you have the exact error message?

For those PayPal buttons, EE doesn’t have control over what happens on the popup (that’s PayPal’s servers) so this is likely an issue related to the PayPal account (either yours or the purchasers) but if you have the specific error thrown I can check.


clubgetaway

September 30, 2024 at 3:57 pm

OK – thanks – do you know of any other payment gateways that all for payment plans? Or any other solutions?


Tony

  • Support Staff

October 1, 2024 at 7:00 am

We have an integration with Stripe Checkout (offsite payment method) about to be released which will then allow to use their additional payment methods such as Klarna.

I can send you a copy of that if you’d like to test it?

However, do you know what the error messages are with PayPal Commerce? You may not need to change away from that payment method to get this fixed.

Viewing 15 reply threads

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso