woocommerce / woocommerce-paypal-payments

https://wordpress.org/plugins/woocommerce-paypal-payments/
GNU General Public License v2.0
62 stars 47 forks source link

PayPal gateway not showing up in the available payment options on the checkout page #853

Closed a-danae closed 1 year ago

a-danae commented 2 years ago

Describe the Bug

PayPal isn't showing up in the available payment options on the checkout page, even though both the plugin and "Enable the PayPal Gateway" are enabled.

I had set up a new site from scratch with most of the plugins and configurations and couldn't replicate the issue. I've seen reports of this behavior, thus I'm creating this issue anyway to follow up with this problem in an environment we have access to.

To Reproduce

TBD. This is happening on a website. I haven't been able to replicate it from scratch, but the behavior is consistent on that website.

Screenshots

image

Expected Behavior

If PayPal Payments is enabled and "Enable the PayPal Gateway" is active, PayPal must show up in the available payment gateways list on the checkout page.

Actual Behavior

PayPal's payment gateway doesn't show up in the available payment options on checkout. It behaves as if it were disabled.

Environment

(added a system report below)

Additional Details

System status ``` ` ### WordPress Environment ### WordPress address (URL): https://proccaatomic.wpcomstaging.com Site address (URL): https://proccaatomic.wpcomstaging.com WC Version: 6.9.1 REST API Version: ✔ 6.9.1 WC Blocks Version: ✔ 8.3.2 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: ✔ Language: en_US External object cache: ✔ ### Server Environment ### Server Info: nginx PHP Version: 8.0.23 PHP Post Max Size: 2 GB PHP Time Limit: 1200 PHP Max Input Vars: 6144 cURL Version: 7.85.0 OpenSSL/1.1.1n SUHOSIN Installed: – MySQL Version: 10.4.25-MariaDB-log Max Upload Size: 2 GB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.9.1 WC Database Prefix: wp_ Total Database Size: 10.05MB Database Data Size: 7.13MB Database Index Size: 2.92MB wp_woocommerce_sessions: Data: 0.05MB + 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.06MB + Index: 0.03MB + 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.14MB + 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.09MB + Index: 0.09MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscriber_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_tags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 1.30MB + Index: 0.06MB + Engine InnoDB wp_postmeta: Data: 0.38MB + Index: 0.20MB + Engine InnoDB wp_posts: Data: 0.47MB + Index: 0.06MB + Engine InnoDB wp_snippets: 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_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + 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_coupon_lookup: 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_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_wpml_mails: Data: 0.23MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 36 customize_changeset: 11 jetpack_migration: 2 jp_img_sitemap: 11 jp_sitemap: 11 jp_sitemap_master: 11 mailpoet_page: 1 nav_menu_item: 5 page: 8 post: 2 product: 29 product_variation: 9 revision: 3 shop_coupon: 1 shop_order: 20 shop_subscription: 10 wp_global_styles: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (17) ### Akismet Anti-Spam: by Automattic – 5.0 Code Snippets: by Code Snippets Pro – 3.2.0 Crowdsignal Forms: by Automattic – 1.6.6 Google Listings and Ads: by WooCommerce – 2.1.2 Gutenberg: by Gutenberg Team – 14.0.2 Hello Dolly: by Matt Mullenweg – 1.7.2 Jetpack: by Automattic – 11.4-a.3 Layout Grid: by Automattic – 1.8.2 Mailchimp for WooCommerce: by Mailchimp – 2.7.5 Page Optimize: by Automattic – 0.5.2 Crowdsignal Polls & Ratings: by Automattic Inc. – 3.0.9 WooCommerce Payments Dev Tools: by Automattic – WooCommerce Payments: by Automattic – 4.7.2 WooCommerce PayPal Payments: by WooCommerce – 1.9.3 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce: by Automattic – 6.9.1 WP Mail Logging: by Wysija – 1.10.4 ### Inactive Plugins (2) ### Classic Editor: by WordPress Contributors – 1.6.2 WooCommerce Stripe Gateway: by WooCommerce – 6.7.0 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php object-cache.php: Memcached ### Must Use Plugins (1) ### WP.com Site Helper: by – ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: 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: ✔ ### WC Pages ### Shop base: #11 - /shop/ Cart: #12 - /cart/ Checkout: #13 - /checkout/ My account: #14 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 4.1.3 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: – ### Subscriptions ### WCS_DEBUG: ✔ No Subscriptions Mode: ✔ Live Subscriptions Live URL: https://proccaatomic.wpcomstaging.com Subscription Statuses: wc-on-hold: 5 wc-active: 5 WooCommerce Account Connected: ✔ Yes Active Product Key: ❌ No ### Store Setup ### Country / State: United States (US) — California ### Subscriptions by Payment Gateway ### WooCommerce Payments: wc-active: 5 wc-on-hold: 5 ### Payment Gateway Support ### WooCommerce Payments: products refunds multiple_subscriptions subscription_cancellation subscription_payment_method_change_admin subscription_payment_method_change_customer subscription_payment_method_change subscription_reactivation subscription_suspension subscriptions gateway_scheduled_payments tokenization add_payment_method Check payments: products Cash on delivery: products Direct bank transfer: products ### WooCommerce PayPal Payments ### Onboarded: ✔ Shop country code: US WooCommerce currency supported: ✔ PayPal card processing available in country: ✔ Pay Later messaging available in country: ✔ Webhook status: – Vault enabled: ✔ Logging enabled: ✔ Reference Transactions: ✔ Used PayPal Checkout plugin: – Tracking enabled: ✔ ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ✔ Next scheduled: 2022-09-15 17:37:37 -07:00 Options: ✔ Notes: 66 Onboarding: completed ### WooCommerce Payments ### Version: 4.7.2 Connected to WPCOM: Yes Blog ID: 209209871 Account ID: acct_1LT92K2EF8r2i5A2 ### Action Scheduler ### Canceled: 3 Oldest: 2022-08-24 18:13:47 -0700 Newest: 2022-09-06 10:38:17 -0700 Complete: 312 Oldest: 2022-08-16 10:49:00 -0700 Newest: 2022-09-15 08:56:42 -0700 Failed: 1 Oldest: 2022-08-04 14:05:41 -0700 Newest: 2022-08-04 14:05:41 -0700 Pending: 8 Oldest: 2022-09-15 23:44:05 -0700 Newest: 2023-09-09 20:14:18 -0700 ### Status report information ### Generated at: 2022-09-15 09:02:11 -07:00 ` ```
daviddobric commented 1 year ago

Hi. I have the same issue. On every website where we changed the WooCommerce checkout to the new Blocks Checkout design, the PayPal option just dissapeared. Did you solve the problem on your side and how? Cheers, David

InpsydeNiklas commented 1 year ago

Probably the Checkout buttons were not enabled: https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-checkout

The current naming of the setting is a bit confusing, because "Enable PayPal Gateway" does not actually enable the PayPal gateway. Only when the Checkout buttons are enabled, the PayPal gateway will be displayed. The Standard Payments tab is currently being reworked to make the setup more logical.

a-danae commented 1 year ago

Did you solve the problem on your side and how?

Hey @daviddobric. In your case, you mentioned that you were using the new Blocks Checkout when the buttons stopped showing up. PayPal Payments isn't compatible with Blocks right now, so what you experienced is expected. Making PayPal Payments compatible is in progress, so this should be solved soon. Reference here from @InpsydeNiklas

Probably the Checkout buttons were not enabled: https://woocommerce.com/document/woocommerce-paypal-payments/#button-on-checkout

@InpsydeNiklas thanks for the suggestion! I dived into this a bit ago, but I'm sure that setting was enabled. I had set up a fresh site with the exact same PayPal Payment settings as the site with the problem, the buttons showed up in the fresh site just fine.

It's worth noting that the site with the problem had over 20 enabled plugins, so it could have been caused by a conflict I wasn't able to replicate.

I'm good keeping this closed as I couldn't get the steps to replicate this problem consistently, but I'd say we should keep an eye on potential problems like this.

InpsydeNiklas commented 1 year ago

Thanks @a-danae, I totally missed @daviddobric's response in my repo cleanup frenzy, sorry! We expect the first parts of the Blocks integration to be included in the next update later in January. It is still a work in progress, and we are first interested in user feedback before making it available by default. So features that are ready for testing can be opted in with a filter.

Beyond this, frequent causes for the gateway not appearing are multi-currency plugins, subscriptions products in the Cart without Vaulting, or as you mentioned, the Block Checkout. But this is unlikely to be the case on the site in the system report. I'm not aware of any other reports of this kind, but we'll keep an eye out and reopen this issue if we come across the problem.

a-danae commented 1 year ago

No worries. Sounds good, thanks Niklas!