Posted: September 24, 2024 at 12:03 pm
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 |
|
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? |
|
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. |
|
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. |
|
This reply has been marked as private. | |
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: |
|
I filled out the form – please let me know if there are any issues getting in. |
|
Ok, so I’ve seen this before and the value for 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. |
|
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. |
|
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. |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
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? |
|
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.
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. |
|
OK – thanks – do you know of any other payment gateways that all for payment plans? Or any other solutions? |
|
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. |
|
The support post ‘Paypal Commerce – Could Not Be Determined’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.