woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

Hosted Fields payment is already in progress. (987) #1011

Open clickk opened 1 year ago

clickk commented 1 year ago

Describe the Bug

To Reproduce

  1. Go to /CHECKOUT
  2. Click on Place Order
  3. The browser scrolls and adds a WooCom Error with "Hosted Fields payment is already in progress.'
  4. the browser processes the order + redirects to the checkout/order-received page

Expected Behavior

No WooCom Error with "Hosted Fields payment is already in progress.' to show

Actual Behavior

Environment

System status ``` ```
LuckyOneBijoux commented 10 months ago

Hello LuckyOneBijoux, what version of WooCommerce PayPal Payments plugin are you using?

2.4.1

Tonuz commented 10 months ago

Hello,

same error here, with 2.4.0 and 2.4.1

titibleh commented 10 months ago

Hello, some people have solved the issue by adding the code of @LuckyOneBijoux? Tried on my side with the v2.4.1 and it's seems still the issue.

add_filter('woocommerce_paypal_payments_early_wc_checkout_validation_enabled', function () { $json = json_decode( file_get_contents( 'php://input' ), true ); $payment_method = $json['payment_method'] ?? ''; return $payment_method !== 'ppcp-credit-card-gateway'; });

ianskully commented 10 months ago

I’m using the angelleye app and it’s working much better. No more hosted error messagesSent from my iPhoneOn Nov 23, 2023, at 11:13 AM, titibleh @.***> wrote: Hello, some people have solved the issue by adding the code of @LuckyOneBijoux? Tried on my side with the v2.4.1 and it's seems still the issue.

add_filter('woocommerce_paypal_payments_early_wc_checkout_validation_enabled', function () { $json = json_decode( file_get_contents( 'php://input' ), true ); $payment_method = $json['payment_method'] ?? ''; return $payment_method !== 'ppcp-credit-card-gateway'; });

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Jack155Q4 commented 10 months ago

Thanks to this thread we are using AngelEye too. Much better. Really recommend it. You can see why they have 4.8/5.

On Thu, 23 Nov 2023, 17:06 ianskully, @.***> wrote:

I’m using the angelleye app and it’s working much better. No more hosted error messagesSent from my iPhoneOn Nov 23, 2023, at 11:13 AM, titibleh @.***> wrote: Hello, some people have solved the issue by adding the code of @LuckyOneBijoux? Tried on my side with the v2.4.1 and it's seems still the issue.

add_filter('woocommerce_paypal_payments_early_wc_checkout_validation_enabled', function () { $json = json_decode( file_get_contents( 'php://input' ), true ); $payment_method = $json['payment_method'] ?? ''; return $payment_method !== 'ppcp-credit-card-gateway'; });

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/woocommerce/woocommerce-paypal-payments/issues/1011#issuecomment-1824737893, or unsubscribe https://github.com/notifications/unsubscribe-auth/A53UU4JXF2G5OMHGIUCF44LYF57A5AVCNFSM6AAAAAASHIJQ2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRUG4ZTOOBZGM . You are receiving this because you are subscribed to this thread.Message ID: @.*** .com>

CubeRanch commented 9 months ago

Still experiencing this bug. Plugin v2.4.1. WordPress v6.4.1. This bug just had its one year anniversary. That's just crazy. I wish I had seen this before moving from the Angell EYE plugin. BTW, the Angell EYE plugin is NOT free. My reading of their documentation says they collect a small commission on every transaction.

InpsydeNiklas commented 9 months ago

Hi everyone,

I wanted to provide an update regarding the message you've been encountering when submitting advanced card payments after an AJAX reload. Here's a quick summary:

The message you're seeing is actually due to a bug on PayPal's side, and not directly with the PayPal Payments plugin.

But we're glad to let you know that the upcoming plugin update (PayPal Payments 2.4.2) will include a feature preview (see the guide here) with a solution for this message.

Just a heads-up, the preview in the upcoming update is still in the testing phase. It can be used in staging environments, but it's not quite ready for use in live stores yet as it hasn't been fully implemented (e.g. no Vaulting support yet). But the development team is working hard to make this fix available to you in the update after this upcoming one.

We understand this has been a frustrating issue, and we appreciate your patience while we've been working with PayPal on a solution.

gotourdev commented 7 months ago

Good evening, Can you tell me if this error has been resolved in the recent version 2.5.1 ? Thanks

Mister-Neil commented 7 months ago

Hello GoTourDev, I just emailed the developers of the PayPal plugin about version 2.5.1, asking if the hosted fields issue is resolved in the latest plugin. Once they reply, I will post their answer here.

HHC2024 commented 7 months ago

After the recent update on January 22, we now have the dreaded "host payment field error" again. We had originally fixed this error last year, however, after the recent upgrade(s) it is back. Every customer who wants to pay by credit card receives this message, after a long wait, and some end up trying to complete their order twice (resulting in needing to refund the customer - incurring PayPal fees). The main concern though, is the long wait time for the customer at the check out page, and the user experience. I'd also love to know if there is a fix yet. And or, why after an update, I would have this issue again.

Thanks.