Support

Home Forums Event Espresso Premium Issue with PayPal Commerce Payment Method in Event Espresso (Version 5.0.29.p)

Issue with PayPal Commerce Payment Method in Event Espresso (Version 5.0.29.p)

Posted: November 20, 2024 at 1:22 am

Viewing 11 reply threads


Mark

November 20, 2024 at 1:22 am

Hello, Event Espresso Support Team,

I am reaching out regarding an issue I am experiencing with the PayPal Commerce Payment method configured on my Event Espresso installation (version 5.0.29.p).

After successfully configuring the payment method, I am encountering an error when trying to process transactions or register for events. Specifically, the error message reads: “Error response received: payment couldn’t be captured.” I have attached a screenshot of the error for your reference.

To troubleshoot, I disconnected my PayPal account and then reconnected it on my site (https://firstaidregina.ca), but the issue persists.

Could you please assist me in resolving this problem? I would appreciate any guidance or steps to take so I can successfully use the PayPal Commerce Payment method on my site.

Thank you in advance for your support!


Mark

November 20, 2024 at 1:26 am

Here is the error screenshot: https://prnt.sc/MV-AInq7hi3C


Tony

  • Support Staff

November 20, 2024 at 2:34 am

Hi there,

You can get that error for multiple reasons, but, there should be some logs explaining thise more.

Go to Event Espresso -> Payment methods -> Logs.

In that table you’ll find multiple log entries for each transaction/payment made, find the logs for a transaction you had the above error, there should be multiple entreis like this:

https://monosnap.com/file/JPixIULG3yEzwEnbpAAnGNOKyIFSb1

Thats just a single payment attempt on one of my test sites.

Click on the Log ID number on the left (ctrl+click or right click and open in a new tab) to open each individual log entr (starting with the lowest ID first).

Look through those logs for any error thrown and post what is shows here.

Or if you prefer I take a look at the logs for you just send temp login details over using this form:

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


Mark

November 20, 2024 at 3:52 am

I have send you the login details.


Mark

November 20, 2024 at 4:16 am

Here is the transaction ID: 36849


Tony

  • Support Staff

November 20, 2024 at 4:17 am

The error you are getting is:


field	/purchase_units/@reference_id=='default'/amount/value
value	0.99
location	body
issue	INVALID_STRING_LENGTH
description	The value of a field is either too short or too long.

That happens when serialize_precision is set to 100 within your PHP settings.

Within your hosts control panel you’ll often have the ability to change PHP options, check if you can set serialize_precision there and I recommend setting it to be -1.

If there isn’t an option then contact your host and have them set this value for you on the server.

The problem is with serialize_precision set to 100 (your currently value) a ‘float’ value, 0.99 for example will actually be represented as something like 0.9898636623727463, that value is then sent when PayPal Commerce request the price and as PayPal Commerce only support 2 decimal places it throws the above error.


Tony

  • Support Staff

November 20, 2024 at 4:19 am

Here is the transaction ID: 36849

Huh? The highest EE transaction is in the 2xxxx range, where is that transaction ID from?


Mark

November 21, 2024 at 1:26 am

that was 36849 the log id for the transaction I tried and it didn’t completed


Mark

November 21, 2024 at 1:28 am

Also, we tried your provided solution but it didn’t work and gets the same error or register for events. Specifically, the error message reads: “Error response received: payment couldn’t be captured.”


Tony

  • Support Staff

November 21, 2024 at 3:34 am

Ok, so now you’re getting a different error returned from PayPal.


name	UNPROCESSABLE_ENTITY
details	
issue	CARD_TYPE_NOT_SUPPORTED
description	Processing of this card type is not supported. Use another type of card.
message	The requested action could not be performed, semantically incorrect, or failed business validation.
debug_id	0551800a05634
links	
href	https://developer.paypal.com/api/rest/reference/orders/v2/errors/#CARD_TYPE_NOT_SUPPORTED
rel	information_link
method	GET

That error is directly from PayPal themselves rather than EE, it’s stating the card used to make the payment isn’t supported.

I assume that’s from you running a test payment? Have you tried another card?


Mark

November 28, 2024 at 11:22 pm

Thank you for your recommendation; it fixed the error, and payments are now being processed successfully.


Tony

  • Support Staff

November 29, 2024 at 2:52 am

Awesome, I’m glad that worked.

Any further issues just let me know.

Viewing 11 reply threads

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

Event Espresso