Closed csmcneill closed 2 months ago
Looking at Stripe's doc on the topic, they recommend adding a payment_method
array in confirmCashappPayment
here:
const form = document.getElementById('payment-form');
form.addEventListener('submit', function(event) {
event.preventDefault();
// Pass the clientSecret obtained from the server in step 2 as the first argument
stripe.confirmCashappPayment(
clientSecret,
{
payment_method: {
type: 'cashapp',
},
return_url: 'https://www.example.com/checkout/done',
},
);
});
It looks like we do something similar with WeChat Pay by adding wechat_pay
to the payment_method_options
list...
...but not for Cash App Pay:
I'm not sure if adding a payment_method
array for Cash App Pay is required here and — its absence would be causing this issue?
Describe the bug When a customer attempts to place an order with the Cash App payment method selected, the QR code modal does not appear if the Stripe for WooCommerce extension is configured to accept live payments. Instead, the following error is displayed:
When assessing the logs in Stripe, this the result of a
payment_intent_payment_attempt_failed
error and aninvalid_request_error
error in request to confirm a PaymentIntent.To Reproduce Steps to reproduce the behavior:
confirm
request.Expected behavior The Cash App payment method displays a QR code modal without encountering an error.
Screenshots
Additional context 8590733-zen 8575609-zen 8459070-zen 8394685-zen