woocommerce / woocommerce-gateway-paypal-express-checkout

58 stars 65 forks source link

'Pay Now' button text missing when choosing certain countries in 'Credit or Debit Card' option #823

Closed jrick1229 closed 3 years ago

jrick1229 commented 3 years ago

Describe the bug

When clicking the 'Debit or Credit Card' button in checkout, the fields are dropped down with a 'Pay Now' button below. Some countries, however, successfully display the fields, but lack the 'Pay Now' text in the button: https://d.pr/i/BKImV5

To reproduce

  1. Navigate to checkout
  2. Click the 'Debit or Credit Card' button
  3. Choose a different country, such as 'United Kingdom'
  4. See that text is missing
  5. Change country to 'United States'
  6. See that 'Pay Now' text is visible

Screenshots

Screenshot of US: https://d.pr/i/TcYH54 Screenshot of UK: https://d.pr/i/BKImV5

Small video showing issue (with console open): https://d.pr/i/eaoimG

The video above shows the issue with United Kingdom, though this apparently happens with other countries as well.

Expected behavior

Regardless of country, the 'Pay Now' button text should be present.

Environment (please complete the following information):

``` ### WordPress Environment ### WordPress address (URL): http://localhost:10005 Site address (URL): http://localhost:10005 WC Version: 4.6.0 REST API Version: ✔ 4.6.0 WC Blocks Version: ✔ 3.4.0 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 1.6.0-rc.3 Log Directory Writable: ✔ WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: nginx/1.16.0 PHP Version: 7.3.5 PHP Post Max Size: 1,000 MB PHP Time Limit: 1200 PHP Max Input Vars: 4000 cURL Version: 7.54.0 LibreSSL/2.6.5 SUHOSIN Installed: – MySQL Version: 8.0.16 Max Upload Size: 300 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Active Plugins (5) ### WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.0 WooCommerce: by Automattic – 4.6.0-rc.1 WP Mail Logging: by MailPoet – 1.9.7 ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: booking (booking) external (external) grouped (grouped) simple (simple) subscription (subscription) variable (variable) variable subscription (variable-subscription) Taxonomies: Product Visibility: exclude_from_catalog (exclude_from_catalog) exclude_from_search (exclude_from_search) exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: #6 - /shop/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 2.7.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Store Setup ### Country / State: United Kingdom (UK) ```

Additional details

Several forum reports:

jrick1229 commented 3 years ago

Closing in favor of #812

MuunWeb commented 3 years ago

Update WP Version 5.5.1