Closed mdmoore closed 1 week ago
Hey team! Please add your planning poker estimate with Zenhub @asumaran @cesarcosta99 @lovo-h @reykjalin @rafaelzaleski @ricardo
@cesarcosta99 @bborman22 While testing another issue, I noticed that this bug can also occur with the maximum amount, but I believe the fix only addressed the minimum amount. Notice the blank space in the image below.
Describe the bug
BNPL has minimum order amounts. Stripe uses the total when determining which BNPL methods are applicable. If no payment methods are applicable, say due to the total not hitting the minimum, no payment methods are displayed. Until recently, this wasn't a problem because nothing would be displayed on the page. However, the container with id
payment-method-message
is still added to the page and contains an empty Stripe iframe. Since https://github.com/Automattic/woocommerce-payments/pull/9166, a skeleton loader is added. When minimum order amounts aren't hit, the skeleton loader still appears, but no PMME is displayed when loading is finished. The result is a loader that appears to load nothing.To Reproduce
Screenshots
https://github.com/user-attachments/assets/680ace22-648f-4849-bf80-1d691b33de22
Expected behavior
The loader shouldn't appear if minimum order amounts aren't met for the selected currency.