woocommerce / woocommerce-gateway-stripe

The official Stripe Payment Gateway for WooCommerce
https://wordpress.org/plugins/woocommerce-gateway-stripe/
232 stars 203 forks source link

Displaying a notice for risky Cash App transactions #3203

Closed wjrosa closed 3 months ago

wjrosa commented 3 months ago

Fixes #3198

Changes proposed in this Pull Request:

See: https://href.li/?https://docs.stripe.com/payments/cash-app-pay#payment-limits-and-options

Although Cash App Pay has no transaction amount limits, it may decline a high-amount transaction (i.e., 2000 USD) depending on the customer account and transaction history. This PR adds this notice to the checkout page when the cart amount reaches the threshold.

Screenshot 2024-06-17 at 15 59 13 Screenshot 2024-06-17 at 15 59 30

Testing instructions


Post merge

wjrosa commented 3 months ago

Thanks for working on this @wjrosa!

The message is displayed twice in the Shortcode Checkout

Screenshot 2024-06-13 at 5 00 58β€―PM

Also, can we show the message only when the customer chooses CashApp? and maybe closer or inside the payment selection box instead of a notice at the top?

Thanks for your review, Diego! I have updated the implementation per your suggestion. It is shown now above the payment selection box and only when Cash App is selected πŸ‘

Edit: I am still working on the shortcode version πŸ‘€ . Edit 2: Now it is complete and ready for a new review.

wjrosa commented 3 months ago

Some updated preview images: Screenshot 2024-06-17 at 15 59 13 Screenshot 2024-06-17 at 15 59 30

wjrosa commented 3 months ago

Cool, @diegocurbelo ! I have included all your commit suggestions and fixed some issues with them. I didn't pay attention to all those standards, but I got them now πŸ™Œ