Closed dominiccarrington closed 1 year ago
Same problem here any news on this issue all versions of the plugin from 7.0 to 7.2 where tested and all the same problem on multiple website !
This seems to happen in both the UPE and the Express Payment button. I test with Google Pay on Chrome desktop and Apple Pay on Safari desktop.
For Google Pay: Tried in test mode and the UPE version fails with this error:
Your request failed. Use a different payment method, or contact us. Learn more [OR-CCSEH-21]
The Express Payment button opens the modal then fails with a small generic error message. For my testing it could be related to my live keys being expired as I tried a live card with the Express Payment button.
Apple Pay, I used UPE and the modal showed success but no redirect to order-received
endpoint, no order, draft or otherwise. Only indication was an entry in the Stripe log file:
====Stripe Version: 7.2.0====
====Start Log====
payment_intents request: Array
(
[amount] => 2000
[currency] => usd
[payment_method_types] => Array
(
[0] => card
[1] => link
)
[capture_method] => automatic
)
====End Log====
6066261-zen
6075078-zen
6082341-zen 6083139-zen
Hi, just checking to see if there is any walkaround for this issue or if there is a specific version that works.
I got a different error, but it might be related. I'll prepare a quick patch to see if it also fixes this issue. Turns out google_pay
is not an option in the upe_checkout_experience_accepted_payments
array of accepted payments methods 🤔
Uncaught TypeError: Cannot read properties of undefined (reading 'isReusable')
at index.js:298:9
at ?ver=3.0:1:92652
at Array.forEach (<anonymous>)
at t._emit (?ver=3.0:1:92593)
at a._emitEvent (?ver=3.0:1:277293)
at ?ver=3.0:1:227215
at ?ver=3.0:1:92850
at Array.forEach (<anonymous>)
at t._emit (?ver=3.0:1:92593)
at e._handleMessage (?ver=3.0:1:309707)
6090637-zen
6180172-zen
42896303-hc
6213939-zen
6254969-zen
6341151-zen
same issue, any solutions?
also experiencing this issue.
Any news on this? We got the same error, in stripe comes back with " The customer has not entered their payment method. " Wordpress Current version: 6.3.1 Woocommerce Version 8.0.3 Stripe module Version 7.5.0
đź‘‹ Update over here.
There are a couple of errors that are easily solvable:
Uncaught TypeError: Cannot read properties of undefined (reading 'isReusable')
stripe.confirmSetup(): the confirmParams.return_url argument is required unless passing redirect: 'if_required'
- With the PHP error PHP Fatal error: Uncaught Error: Call to a member function is_allowed_on_country() on null in /var/www/html/wp-content/plugins/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:577
After solving those, there’s the tricky one:
The error message on the checkout page saying Something went wrong. Unable to show Google Pay. Please choose a different payment method and try again.
- With a browser console error saying Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Delegation is not allowed without transient user activation.
This happens because the wallet’s payment modal must be triggered soon after a user gesture, and we need to run some API requests before the modal is triggered. In some cases, these requests delay displaying the modal longer than what’s allowed by the delegation’s threshold, thus triggering this error.
We’d need to reduce that delay to solve this problem. This likely means moving the API requests before the modal is triggered since we can’t control the time until the API responds. This would deserve a spike because it may or may not be feasible.
In the meantime, it’d be better to let the Express buttons (those at the top of the checkout page) do the wallets’ work for a similar experience to the non-UPE version, and hide those within the Card payment element (those referenced in the GH issue description) which aren’t working as expected.
I’ve created the following issue to document these findings and prioritize the spike as the backlog allows https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2707
Closing this issue with the following actions:
Heya @a-danae you mention:
There are a couple of errors that are easily solvable:
There's another error message mentioned in https://github.com/woocommerce/woocommerce-gateway-stripe/issues/2573#issuecomment-1505269907 i.e.
Uncaught (in promise) IntegrationError: You specified "never" for fields.billing_details.name when creating the payment Element, but did not pass confirmParams.payment_method_data.billing_details.name when calling stripe.confirmPayment(). If you opt out of collecting data via the payment Element using the fields option, the data must be passed in when calling stripe.confirmPayment().;
construct
@ [native code]:
n
@ https://js.stripe.com/v3/:1
construct
@ [native code]:
@ https://js.stripe.com/v3/:1
t
@ https://js.stripe.com/v3/:1
re
@ https://js.stripe.com/v3/:1
@ https://js.stripe.com/v3/:1
@ https://js.stripe.com/v3/:1
@ https://js.stripe.com/v3/:1
Is that covered in the investigation/fix efforts as well?
Describe the bug When selecting Apple Pay / Google Pay from the new checkout option and checking out, the Apple Pay / Google Pay payment popup comes up. However, when this is passed, the checkout does not continue.
Apple Pay says that the payment was successful but there is no redirect to checkout success page nor does Stripe records the checkout as a success or even an attempt at payment.
To Reproduce Steps to reproduce the behaviour:
Expected behaviour Checkout to be successful
Environment: