woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Remove from the incompatible extensions list of t he Cart & Checkout block #286

Open alexflorisca opened 6 months ago

alexflorisca commented 6 months ago

Prerequisites

Describe the bug

Amazon Pay supports both normal and express payment methods in the Checkout Block. As such, it should be removed from the list of incompatible plugins.

May 6 Screenshot from Notion (1)

Note: screenshot doesn't show the amazon express payment button as it's on local machine. On a live site (JN or otherwise) express payment button is there.

Expected behavior

I would expect Amazon Pay not to be on the list of incompatible plugins.

Actual behavior

A warning is displayed in the editor sidebar warning that the plugin is not compatible with the express checkout block.

Steps to reproduce

  1. Install & activate Amazon Pay on a live (JN or otherwise) site.
  2. Go to WooCommerce > Settings > Payments > Amazon > Manage
  3. Click "Connect to Amazon" and go through the onboarding to connect your amazon account
  4. Once that's done, return to the Amazon Payment Settings Page
  5. Make sure the Are you using WooCommerce Blocks for your checkout page? option is checked and Save Changes
  6. Visit the Checkout Page in the editor
  7. You should see the Amazon Pay button.
  8. Click on the Express Checkout block, and you should see a warning in the sidebar saying this extension is incompatible.
WordPress Environment ``` ### WordPress Environment ### WordPress address (URL): https://woo.local Site address (URL): https://woo.local WC Version: 9.0.0-dev REST API Version: ✔ 9.0.0 Action Scheduler Version: ✔ 3.7.4 Log Directory Writable: ✔ WP Version: 6.5.3 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: 8.2.10 PHP Post Max Size: 1,000 MB PHP Time Limit: 1200 PHP Max Input Vars: 4000 cURL Version: 8.6.0 (SecureTransport) LibreSSL/3.3.6 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: ✔ ### Database ### WC Database Version: 9.0.0 WC Database Prefix: wp_ Total Database Size: 16.24MB Database Data Size: 13.10MB Database Index Size: 3.14MB wp_woocommerce_sessions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.48MB + Index: 0.52MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_cartflows_ca_cart_abandonment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_cartflows_ca_email_history: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_cartflows_ca_email_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_cartflows_ca_email_templates_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.09MB + Index: 0.09MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 9.03MB + Index: 0.08MB + Engine InnoDB wp_postmeta: Data: 0.45MB + Index: 0.36MB + Engine InnoDB wp_posts: Data: 1.48MB + Index: 0.06MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_wc_booking_relationships: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_bookings_availability: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_bookings_availabilitymeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_points_rewards_user_points: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_points_rewards_user_points_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_gc_activity: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cards: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_gc_cardsmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpforms_payment_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wpforms_payments: Data: 0.02MB + Index: 0.14MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 25 awl-labels: 1 custom-css-js: 1 page: 20 post: 8 product: 21 product_variation: 7 revision: 161 shop_coupon: 4 shop_order: 80 shop_subscription: 1 wp_block: 1 wp_font_face: 33 wp_font_family: 12 wp_global_styles: 4 wp_navigation: 1 wp_template: 1 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (13) ### Akismet Anti-spam: Spam Protection: by Automattic - Anti-spam Team – 5.3.2 Code Snippets: by Code Snippets Pro – 3.6.4 WooCommerce.com Update Manager: by Automattic – 1.0.2 WooCommerce Beta Tester: by WooCommerce – 2.2.4 WooCommerce Amazon Pay: by Amazon Pay – 2.5.1 WooCommerce Stripe Gateway: by WooCommerce – 8.2.0 WooCommerce: by Automattic – 9.0.0-dev WooCommerce Payments Dev Tools: by Automattic – WooPayments: by Automattic – 7.6.0 WooCommerce PayPal Payments: by WooCommerce – 2.7.0 WooCommerce Points and Rewards: by WooCommerce – 1.8.2 WooCommerce: by Automattic – 9.0.0-dev WordPress Beta Tester: by WordPress Upgrade/Install Team – 3.5.5 ### Inactive Plugins (26) ### Additional Checkout Fields Tester: by WooCommerce – 1.0 Add to Cart Form Shortcode for WooCommerce: by helgatheviking – 3.0.2 Advanced Woo Labels: by ILLID – 1.92 Copyright 2: by The WordPress Contributors – 0.1.0 Copyright Date Block: by The WordPress Contributors – 0.1.0 Debug Log Manager: by Bowo – 2.3.3 Extend Cart Checkout: by The WordPress Contributors – 0.1.0 Klarna Checkout for WooCommerce: by Klarna – 2.12.1 Klarna Payments for WooCommerce: by klarna – 3.5.2 Multiple Packages for WooCommerce: by Erica Dion – 1.1 My Custom Block Plugin: by – Newsletter Test Plugin: by opr – 2.0.0 Query Monitor: by John Blackbourn – 3.16.2 Share Your Purchase for WooCommerce: by Enrique J. Ros – 3.1.0 (update to version 3.1.7 is available) Simple Custom CSS and JS: by SilkyPress.com – 3.46 Slot Fill Test: by The WordPress Contributors – 0.1.0 Woo Block Test: by The WordPress Contributors – 0.1.0 WooCommerce Bookings: by WooCommerce – 2.0.2 (update to version 2.1.2 is available) WooCommerce Cart Abandonment Recovery: by CartFlows Inc – 1.2.27 WooCommerce Name Your Price: by Kathy Darling – 3.4.0 (update to version 3.5.13 is available) WooCommerce One Page Checkout: by Automattic – 1.9.4 (update to version 2.8.2 is available) WooCommerce Payfast Gateway: by WooCommerce – 1.6.2 (update to version 1.6.5 is available) WooCommerce Square: by WooCommerce – 4.6.1 (update to version 4.6.2 is available) WooCommerce WorldPay Gateway: by Andrew Benbow – 5.3.6 Woo Gift Cards: by Woo – 1.16.11 (update to version 1.16.14 is available) Woo Subscriptions: by WooCommerce – 6.0.0 (update to version 6.3.2 is available) ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) 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) 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: ✔ Enforce Approved Product Download Directories: ✔ HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### Logging ### Enabled: ✔ Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2 Retention period: 30 days Level threshold: – Log directory size: 1 MB ### WC Pages ### Shop base: #6 - /shop/ Cart: #63 - /cart-2/ Checkout: #65 - /checkout-2/ My account: #9 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Twenty Twenty-Four Version: 1.1 Author URL: https://wordpress.org 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: ❌ Not declared ### Templates ### Overrides: /Users/alexflorisca/Sites/a8c/Plugins/woocommerce-monorepo/plugins/woocommerce/templates/block-notices/error.php /Users/alexflorisca/Sites/a8c/Plugins/woocommerce-monorepo/plugins/woocommerce/templates/block-notices/notice.php /Users/alexflorisca/Sites/a8c/Plugins/woocommerce-monorepo/plugins/woocommerce/templates/block-notices/success.php ### WooPayments ### Version: 7.6.0 Connected to WPCOM: Yes WPCOM Blog ID: 233134526 Account ID: acct_1PGpySFqdkb1oMQL Payment Gateway: Enabled Test Mode: Enabled Enabled APMs: card WooPay: Enabled (product,cart,checkout) WooPay Incompatible Extensions: No Apple Pay / Google Pay: Enabled (product,cart,checkout) Fraud Protection Level: basic Multi-currency: Enabled Public Key Encryption: Disabled Auth and Capture: Enabled Documents: Disabled Logging: Enabled ### Admin ### Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customize-store import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing minified-js mobile-app-banner navigation onboarding onboarding-tasks payment-gateway-suggestions product-custom-fields remote-inbox-notifications remote-free-extensions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page async-product-editor-category-field launch-your-store Disabled Features: new-product-management-experience pattern-toolkit-full-composability product-pre-publish-modal settings beta-tester-slotfill-examples Daily Cron: ✔ Next scheduled: 2024-05-28 11:20:35 +00:00 Options: ✔ Notes: 116 Onboarding: completed ### WooCommerce PayPal Payments ### Onboarded: ✔ Shop country code: GB WooCommerce currency supported: ✔ Advanced Card Processing available in country: ✔ Pay Later messaging available in country: ✔ Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: – Reference Transactions: ✔ Used PayPal Checkout plugin: – Subscriptions Mode: Disabled ### Action Scheduler ### Complete: 207 Oldest: 2024-04-28 19:56:47 +0000 Newest: 2024-05-27 14:59:54 +0000 Failed: 14 Oldest: 2023-10-03 09:58:36 +0000 Newest: 2024-05-27 14:00:31 +0000 Pending: 4 Oldest: 2024-05-28 01:31:35 +0000 Newest: 2024-06-03 14:00:31 +0000 ### Status report information ### Generated at: 2024-05-27 15:46:09 +00:00 ```

Isolating the problem

ChristianAF commented 1 month ago

Hey @alexflorisca , I’ve tested this issue across several WooCommerce versions, but I’m unable to reproduce it. The warning doesn't appear in any of my tests.

alexflorisca commented 1 month ago

Was able to reproduce this again with Amazon Pay 2.5.3 and WC 9.3.3 (or trunk). This appears on the right sidebar when you click on the Checkout block. I've disabled all other plugins.