
Originally Posted by
split63
Sorry, I have been consumed on another effort.
I just put the code in place.
Enabled Cash App on Stripe.
Went to the Zen checkout page. Selected Cash App, which I have never used. Clicked "confirm"
The page changed, it was overall darkened, as if a pop up blocker was at work. No QR code was displayed
After a few seconds, I got the Zen Order Confirmation page.
On Stripe is shows the order was incomplete
I reverted the code back and disabled Cash App.
If that's the case, the issue might be on Stripe's side.
It is just a possibility, but...
File: includes/modules/payment/stripepay/create.php (Line 34)
Even if automatic_payment_methods is set to true, there are cases where Cash App is not included as an available payment method.
Therefore, it is necessary to explicitly specify payment_method_types.
PHP Code:
'automatic_payment_methods' => [
'enabled' => true,
],
to
PHP Code:
'payment_method_types' => ['card', 'cashapp'],
'automatic_payment_methods' => [
'enabled' => true,
],
File: checkout.js (Line 41)
When using if_required, Stripe may determine that a redirect is not necessary, which could cause the QR code to be skipped.
PHP Code:
redirect: 'if_required'
to
PHP Code:
redirect: 'always'
I apologize for making you try multiple times. Creating code is a process of trial and error, and since I can't see the results directly myself, it's making it even more challenging.
Bookmarks