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 ``` ```
atifrashid commented 1 year ago

Heaving same issue for the last 2 weeks, downgraded to 1.9.5 but that did not work either. Please help.

lynnjat7 commented 1 year ago

Referenced here: https://wordpress.org/support/topic/checkout-issue-23/

Merchant here says that downgrading to 1.9.4 resolves this issue.

lynnjat7 commented 1 year ago

Reported here: 38526220-hc

InpsydeNiklas commented 1 year ago

This error can still occur but should at least not prevent the payment processing in the latest update 2.0.1.

In the previous version (2.0), the error could potentially be worked around with this filter:

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';
});

But even with this filter, the error could potentially display for a moment during payment processing (without preventing the payment).

clickk commented 1 year ago

Hi all, any update on this? Is there an ETA for a fix to be released in the next version?

AFlynnn commented 1 year ago

When is this getting fixed? It's been a known issue for some time now

Happbee commented 1 year ago

Still having this same issue but only on invoiced orders. Used add order on woo, send invoice/details to customer manually. Customers are getting the hosted field in progress message when they try to check out with credit cards through the advanced credit processing

sgoerger commented 1 year ago

Experiencing this again this weekend, it seems ... along with a rash of other failed payments along the OrderEndpoint.php:353 / 455 lines. I'm going to try downgrade to 1.9.4 again I think - think I did this a couple months ago on same site.

AFlynnn commented 1 year ago

Experiencing this again this weekend, it seems ... along with a rash of other failed payments along the OrderEndpoint.php:353 / 455 lines. I'm going to try downgrade to 1.9.4 again I think - think I did this a couple months ago on same site.

Yep...me too

raybark commented 1 year ago

Disabling “Advanced Card Processing”>Save>Enable it again>Save fixes it, at least temporarily.

Ray Barkalow

First Rays LLC

firstrays.com

215-919-8866

From: sgoerger @.> Sent: Sunday, March 19, 2023 7:15 PM To: woocommerce/woocommerce-paypal-payments @.> Cc: raybark @.>; Manual @.> Subject: Re: [woocommerce/woocommerce-paypal-payments] Hosted Fields payment is already in progress. (987) (Issue #1011)

Experiencing this again this weekend, it seems ... along with a rash of other failed payments along the OrderEndpoint.php:353 / 455 lines. I'm going to try downgrade to 1.9.4 again I think - think I did this a couple months ago on same site.

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

InpsydeNiklas commented 1 year ago

Hi everyone, PayPal is working on a fix for this error message. We regret it has taken some time, but we will update this issue when there are any new details.

eckstein commented 1 year ago

I'm just commenting here so I can keep updated on when this is fixed.

mattsussman commented 1 year ago

Any fix yet?

JethroHazelhurst commented 1 year ago

Hi there - any updates on this? Still facing this issue on our checkout using WooCommerce PayPal Payments 2.0.3.

raybark commented 1 year ago

Same here

Ray Barkalow

First Rays LLC

firstrays.com

215-919-8866

From: JethroHazelhurst @.> Sent: Thursday, April 6, 2023 10:52 AM To: woocommerce/woocommerce-paypal-payments @.> Cc: raybark @.>; Manual @.> Subject: Re: [woocommerce/woocommerce-paypal-payments] Hosted Fields payment is already in progress. (987) (Issue #1011)

Hi there - any updates on this? Still facing this issue on our checkout using WooCommerce PayPal Payments 2.0.3.

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

AFlynnn commented 1 year ago

Bizzare that this was flagged over 5 months ago and has not been fixed

eckstein commented 1 year ago

I switched to Angelleye's solution, which has worked flawlessly so far, for anybody tired of waiting.

lynnjat7 commented 1 year ago

I switched to Angelleye's solution, which has worked flawlessly so far, for anybody tired of waiting.

Please be aware that the latest version of Angelleye's PayPal plugin does not support Subscriptions.

nilotoys commented 1 year ago

I have the same issue going on with my website, https://www.nilotoys.com when people try to checkout. I've seen this happen with our Gamer Table, Kids Large Activity Table and some other items. Hoping this will be resolved ASAP.

AFlynnn commented 1 year ago

Is this something that's being actively worked on? What would be really cool is if you guys put in some hours here and fixed your plugin

ianskully commented 1 year ago

Same issue here. Should be fixed by now

IlPizza79 commented 1 year ago

Same issue, honestly I'm a bit surprised :-|

Davile73 commented 1 year ago

Always same issue with the 2.1.0 ! No evolution since the discovery of issue... unbelievable!

Does anyone know where to "modify" the text of this error, because I think sometimes it probably affraid the customers... I've a lot of abandonned payments...

Thanks!

ianskully commented 1 year ago

For me it causes duplicate orders.Sent from my iPhoneOn Jun 14, 2023, at 10:37 AM, Davile73 @.***> wrote: Always same issue with the 2.1.0 ! No evolution since the discovery of issue... unbelievable! Does anyone know where to "modify" the text of this error, because I think sometimes it probably affraid the customers... I've a lot of abandonned payments... Thanks!

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

joshmings commented 1 year ago

In dire need of a fix for this. Is there an ETA @Sirvijver? Using the below work-around from @raybark for now.

Disabling “Advanced Card Processing”>Save>Enable it again>Save fixes it, at least temporarily.

InpsydeNiklas commented 1 year ago

Greetings! We apologize for the delay concerning this PayPal issue and assure you it's being actively addressed. The solution, when available, will be integrated into the plugin promptly.

In the latest version, the Hosted Fields payment is already in progress. message, which is returned by PayPal's API and thus not editable via translation files, may momentarily appear after a card payment submission. Specifically, when card fields are re-rendered on the page following an AJAX reload before submission. The workaround mentioned above should not have any impact as this message is triggered by reloading the hosted fields before submission.

This typically occurs with Advanced Card Processing as the primary payment gateway on the Checkout page, less so when it's a secondary option or the default in a multi-step checkout. However, it can still be triggered with any AJAX refresh while the hosted fields are rendered on the page.

Importantly, this message is not indicative of any payment problems. It is displayed after payment submission, making it unlikely to cause the buyer to abandon the payment process, unless an unrelated error (such as an expired/blocked card) occurs.

We understand it can be confusing to see briefly see this message before a successful payment. In rare instances, a buyer experiencing payment issues might see this message before the actual error, but it's not directly linked to the failure (like a blocked card). Such errors can better be judged from the WooCommerce order notes.

To clarify eventual troubles with payments, we recommend contacting our support team. Thanks for your understanding. This issue will be updated when a proper solution is available.

AFlynnn commented 1 year ago

Agh the saga continues. Imagine being able to continuously deliver a broken product, despite customers alerting you to the issue. I'd be out of business...

kenniswong commented 1 year ago

My customer reported this same issue again. InpsydeNiklas's comment above was not helpful to me. He indicated that the message was not indicative of any payment problems. Well, it was a problem. My customer couldn't complete the purchase.

hot-ham-water commented 1 year ago

same problem here. can confirm that the payment does succeed, but the hosted fields message appears briefly and is very confusing to our customers.

raybark commented 1 year ago

I gave up and went with the Angell EYE plugin and have had no issues.

Ray Barkalow

First Rays LLC

firstrays.com

215-919-8866

From: hot-ham-water @.> Sent: Saturday, July 15, 2023 2:42 PM To: woocommerce/woocommerce-paypal-payments @.> Cc: raybark @.>; Mention @.> Subject: Re: [woocommerce/woocommerce-paypal-payments] Hosted Fields payment is already in progress. (987) (Issue #1011)

same problem here. can confirm that the payment does succeed, but the hosted fields message appears briefly and is very confusing to our customers.

— Reply to this email directly, view it on GitHub https://github.com/woocommerce/woocommerce-paypal-payments/issues/1011#issuecomment-1636853288 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A43QHKNSYYDIXGGTHJRBWPLXQLP5ZANCNFSM6AAAAAASHIJQ2U . You are receiving this because you were mentioned. https://github.com/notifications/beacon/A43QHKKZQ3NZWDLWMG4JYBLXQLP5ZA5CNFSM6AAAAAASHIJQ2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBSBTCQ.gif Message ID: @. @.> >

ianskully commented 1 year ago

Can you tell me more about your experience with angelEye?Sent from my iPhoneOn Jul 15, 2023, at 3:31 PM, raybark @.***> wrote: I gave up and went with the Angell EYE plugin and have had no issues.

Ray Barkalow

First Rays LLC

firstrays.com

215-919-8866

From: hot-ham-water @.***>

Sent: Saturday, July 15, 2023 2:42 PM

To: woocommerce/woocommerce-paypal-payments @.***>

Cc: raybark @.>; Mention @.>

Subject: Re: [woocommerce/woocommerce-paypal-payments] Hosted Fields payment is already in progress. (987) (Issue #1011)

same problem here. can confirm that the payment does succeed, but the hosted fields message appears briefly and is very confusing to our customers.

Reply to this email directly, view it on GitHub https://github.com/woocommerce/woocommerce-paypal-payments/issues/1011#issuecomment-1636853288 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A43QHKNSYYDIXGGTHJRBWPLXQLP5ZANCNFSM6AAAAAASHIJQ2U .

You are receiving this because you were mentioned. https://github.com/notifications/beacon/A43QHKKZQ3NZWDLWMG4JYBLXQLP5ZA5CNFSM6AAAAAASHIJQ2WWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBSBTCQ.gif Message ID: @. @.> >

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

Flynsarmy commented 1 year ago

gave up and went with the Angell EYE plugin and have had no issues.

@raybark Ahh, you've unintentionally added a lot of your personal information in your reply. You might want to delete the reply entirely as even if you edit it I'm not sure if the revision history is visible for all to see.

EDIT: Confirmed, revision history is visible.

AFlynnn commented 1 year ago

Fix this problem. It's an absolute joke that this is still dragging on. Put some hours in to fix your plugin! The laziness and lack of any kind of care to provide a complete and operating product is so sad

AndrewEastwood commented 1 year ago

same for me while using the https://www.paypal.com/sdk/js and submitting the invalid card. then there is no possibility to restart the HostedFileds session

github-fishtank commented 1 year ago

Same issue here! This needs to be fixed

Davile73 commented 1 year ago

A lot of update were did, but the issue Still the same... I desactivated advanced card payment, and now i use stripe for card payments. The abdandoned cart has reduce more than 70% since. I think lot of customers who saw the message in red were affraid and cancel the order.

AFlynnn commented 1 year ago

For anyone who has lost patience as I did. I've moved to Peach Pay. The plugin is flawless, and support is exceptional.

https://wordpress.org/plugins/peachpay-for-woocommerce/

ianskully commented 11 months ago

I switched to AngellEye and problem solved, fewer duplicate orders and authorize/capture working well automatically upon completing orders.I should have switched a long time ago!IanOn Sep 21, 2023, at 7:06 AM, AFlynnn @.***> wrote: For anyone who has lost patience as I did. I've moved to Peach Pay. The plugin is flawless, and support is exceptional. https://wordpress.org/plugins/peachpay-for-woocommerce/

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

BeathaLLC commented 11 months ago

I am also experiencing this issue on one website I manage. The website is hosted on GoDaddy, running PHP 7.4, WooCommerce 8.1.1, WooCommerce PayPal Payments 2.3.1, but the information given below occurred with version 2.3.0.

The website experiencing this issue began displaying the "Hosted fields payment is already in progress." error message as soon as I had setup Advanced Card Processing. Regarding @InpsydeNiklas's 6/27/2023 update,:

This typically occurs with Advanced Card Processing as the primary payment gateway on the Checkout page, less so when it's a secondary option or the default in a multi-step checkout. However, it can still be triggered with any AJAX refresh while the hosted fields are rendered on the page.

I do not believe Advanced Card Processing is the primary payment gateway on our website. Under WooCommerce > Settings > Payments we have both "PayPal" and "Advanced Card Processing" enabled, which I believe is required to use Advanced Card Processing. And when customers checkout, the PayPal/Venmo option is the default option, i.e., they must select "Debit or Credit Card" to not use PayPal or Venmo.

This issue does also block purchases from completing. The website I manage is for classes provided to a retirement community where I work in-person. Today I was able to witness a person's purchase being rejected firsthand, and repeatedly.

Device Used The purchase was attempted on a cellphone, definitely an Android, but the context of the situation didn't allow me to collect more pertinent troubleshooting information.

Troubleshooting Attempted We refreshed the webpage, closed the app, switched from cellular data to Wi-Fi, and tried probably about 10 times to no avail. I found that if the "Place Order" button was pressed at checkout multiple times, different error messages would appear. I didn't have an ability to capture them in the moment, but one made reference to a lack of a country code, and it's true that I have the country field disabled on our store. I eventually had to login to my clients PayPal account to send an invoice to the customer's email.

I attempted to reproduce this error message later on my own cellphone, which is a Samsung A50 running Android version 11. The website was accessed with the Edge Browser for Android. Upon hitting the "Place Order" button the first time, I received the standard, "Hosted fields payment is already in progress." error message, but I was not brought to the confirmation page, meaning that it appeared as if the order had not been completed. I pressed the "Place Order" button again and received, _"CANNOT_BE_ZERO_ORNEGATIVE Must be greater than zero. If the currency supports decimals, only two decimal place precision is supported." I checked the client's PayPal account and found that the order did process, despite my never having been brought to a confirmation screen.

After Updating to 2.3.1 I was brought to the confirmation screen after the update, but the "Hosted fields payment is already in progress." error message persisted on the checkout screen.

I understand the sentiment that if it's not blocking purchases from completing, (which isn't always true) that this is a lower priority issue for a team that I'm sure is swamped with work. But for a website like the one I'm writing about, which serves a retirement community, a bright red error warning flashing right after they entered their credit card information is basically a death sentence for that user's experience. This issue stings more for this specific client because the switch to this plugin was entirely for the Advanced Card Processing functionality, because their customers have entirely lost trust in PayPal due to the marketing tactics embedded in the previous PayPal checkout method, which required users to go offsite to PayPal.com to complete the purchase. The specific marketing I'm referring to was the presence of a pre-checked, "Check here if you want to start a PayPal account." option on the PayPal checkout screen, which if not unchecked, would create an account for the customer. Not a big deal, except for that when the customer returned to complete their next purchase, the PayPal checkout screen would match the email provided to their account, force them to login, and force them to add their credit card information to their newly created PayPal account, all to complete the purchase, unless you provided an email not associated with any PayPal account at the PayPal checkout stage. That was the workaround. Keep in mind, my company is serving a senior community.

And if it matters, we are currently managing many sites with WooCommerce using PayPal as the payment gateway, but with the older integration referenced above. It is only this site, with this plugin, that is having any issues error messages and purchases being blocked at checkout.

If there is any additional information I can provide to be of assistance, please let me know, but I will not be able to justify the continued use of PayPal as this client's payment gateway for much longer.

GARNER2015 commented 11 months ago

This issue is still occurring.

Jack155Q4 commented 11 months ago

Hi all,

We too have defected to PeachPay due to this on-going issue. It is working well, although I would like a solution for us where customers can enter their credit cards on the checkout page itself (like in the WC PP Payments plugin) without a popup PayPal window that is trying to encourage them to get a PayPal account before they scroll to checkout without an account.

Any suggestions would be appreciated. Thanks

titibleh commented 11 months ago

Hi all,

Same issue here. Try with blank theme (Hello Theme) and only Woocommerce + Paypal plugins activated and still this error with Advanced Card Processing gateway. People seems say to use a previous version of the plugin like the v1.9.5 but there is the same issue if you want to use Advanced Card Processing gateway. So please Paypal team, go back to work and fix this critical issue. We want to use your Advanced Card Processing gateway but we cannot because many people leave the Order page when they see the error message "Hosted Fields Payments already in progress" and we miss many sells.

Thanks!

Davile73 commented 11 months ago

I think since the issue is here, they totally abandoned to try to solve it.. it's a free plugin so I think they don't want or search to do something. I signed up to stripe for card payments and now it's really good... abandoned carts are a bad memory... it's time to move, maybe after they will try to find a solution....

Jack155Q4 commented 11 months ago

The free AngelEye version appears to have solved our issue and looks much like the WooCommerce plugin. Peach Pay also worked but it didn't allow credit cards details within the site and forced the popup.

On Thu, 19 Oct 2023, 18:33 Davile73, @.***> wrote:

I think since the issue is here, they totally abandoned to try to solve it.. it's a free plugin so I think they don't want or search to do something. I signed up to stripe for card payments and now it's really good... abandoned carts are a bad memory... it's time to move, maybe after they will try to find a solution....

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

ianskully commented 11 months ago

Same here, I switched to angelleye and it’s working well. On Oct 19, 2023, at 2:35 PM, Jack155Q4 @.***> wrote: The free AngelEye version appears to have solved our issue and looks much

like the WooCommerce plugin. Peach Pay also worked but it didn't allow

credit cards details within the site and forced the popup.

On Thu, 19 Oct 2023, 18:33 Davile73, @.***> wrote:

I think since the issue is here, they totally abandoned to try to solve

it.. it's a free plugin so I think they don't want or search to do

something. I signed up to stripe for card payments and now it's really

good... abandoned carts are a bad memory... it's time to move, maybe after

they will try to find a solution....

Reply to this email directly, view it on GitHub

https://github.com/woocommerce/woocommerce-paypal-payments/issues/1011#issuecomment-1771428953,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/A53UU4INSNEBGI4FQCYGNW3YAFP7PAVCNFSM6AAAAAASHIJQ2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZRGQZDQOJVGM

.

You are receiving this because you are subscribed to this thread.Message

ID: @.***

.com>

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

Mister-Neil commented 10 months ago

I am following up to this discussion on the "Hosted Fields payment is already in progress." error message. Version 2.4.1 of the WooCommerce PayPal Payments plugin was just released. Does anyone know if version 2.4.1 resolves the error message?

LuckyOneBijoux commented 10 months ago

I am following up to this discussion on the "Hosted Fields payment is already in progress." error message. Version 2.4.1 of the WooCommerce PayPal Payments plugin was just released. Does anyone know if version 2.4.1 resolves the error message?

This worked for us !

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'; });

Mister-Neil commented 10 months ago

Hello LuckyOneBijoux, thank you for sharing. What version of the WooCommerce PayPal Payments plugin are you using that your code works? Version 2.4.1 or older? And, where does your code get added in WordPress? Any help is appreciated.

LuckyOneBijoux commented 10 months ago

Hello LuckyOneBijoux, thank you for sharing. What version of the WooCommerce PayPal Payments plugin are you using that your code works? Version 2.4.1 or older? And, where does your code get added in WordPress? Any help is appreciated.

Hi, in fact the issue is back. sorry

Mister-Neil commented 10 months ago

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