• Resolved TheMathMan

    (@themathman)


    Hello,
    I have never had this issue before with the previous version of the paypal plugin.
    What is happening is if you are a new user the checkout process works fine. However, if you are a returning customer who is logged in, then he paypal payment popup window shows up for a split second and then the process is throwing the, “Something went wrong. Please try again or choose another payment source.”

    I had the previous version (the one you stopped supporting) of this plugin working on my website for many years with no issue, and this has just started occurring since I updated to this version of the plugin.

    Any help you could provide me would be greatly appreciated.

    Here are my logs:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://csumathtutor.com
    Site address (URL): https://csumathtutor.com
    WC Version: 6.2.0
    REST API Version: ? 6.2.0
    WC Blocks Version: ? 6.7.3
    Action Scheduler Version: ? 3.4.0
    WC Admin Version: ? 3.1.0
    Log Directory Writable: ?
    WP Version: 5.9
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.26
    PHP Post Max Size: 32 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.71.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.51-cll-lve
    Max Upload Size: 32 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 6.2.0
    WC Database Prefix: wp_
    Total Database Size: 104.63MB
    Database Data Size: 94.77MB
    Database Index Size: 9.86MB
    wp_woocommerce_sessions: Data: 47.90MB + Index: 1.51MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 0.06MB + Index: 0.03MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 0.36MB + Index: 0.27MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 0.35MB + Index: 0.16MB + Engine MyISAM
    wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_actionscheduler_logs: Data: 0.21MB + Index: 0.17MB + Engine MyISAM
    wp_automatewoo_abandoned_carts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_automatewoo_customers: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    wp_automatewoo_customer_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_automatewoo_events: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_automatewoo_guests: Data: 0.05MB + Index: 0.06MB + Engine InnoDB
    wp_automatewoo_guest_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_automatewoo_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_automatewoo_log_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_automatewoo_queue: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_automatewoo_queue_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_automatewoo_referrals: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_automatewoo_referral_advocate_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_automatewoo_referral_invites: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_brb_business: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_brb_review: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wp_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_comments: Data: 0.30MB + Index: 0.14MB + Engine MyISAM
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nextend2_image_storage: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nextend2_section_storage: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nextend2_smartslider3_sliders: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wp_nextend2_smartslider3_sliders_xref: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_nextend2_smartslider3_slides: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
    wp_options: Data: 3.44MB + Index: 0.21MB + Engine MyISAM
    wp_postmeta: Data: 26.55MB + Index: 4.93MB + Engine MyISAM
    wp_posts: Data: 4.63MB + Index: 0.41MB + Engine MyISAM
    wp_rsssl_csp_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ssa_appointments: Data: 0.13MB + Index: 0.03MB + Engine MyISAM
    wp_ssa_appointment_meta: Data: 0.06MB + Index: 0.04MB + Engine MyISAM
    wp_ssa_appointment_types: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_ssa_async_actions: Data: 6.14MB + Index: 0.22MB + Engine MyISAM
    wp_ssa_availability: Data: 0.03MB + Index: 0.04MB + Engine MyISAM
    wp_ssa_availability_external: Data: 0.11MB + Index: 0.07MB + Engine MyISAM
    wp_ssa_payments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ssa_staff: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ssa_staff_appointments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_ssa_staff_appointment_types: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine MyISAM
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine MyISAM
    wp_term_relationships: Data: 0.15MB + Index: 0.26MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_tm_taskmeta: Data: 0.21MB + Index: 0.03MB + Engine MyISAM
    wp_tm_tasks: Data: 0.18MB + Index: 0.03MB + Engine MyISAM
    wp_uap_generated_affiliate_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_usermeta: Data: 0.10MB + Index: 0.07MB + Engine MyISAM
    wp_users: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wc_admin_notes: Data: 0.03MB + Index: 0.00MB + Engine MyISAM
    wp_wc_admin_note_actions: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wc_category_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wc_customer_lookup: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_product_lookup: Data: 0.08MB + Index: 0.07MB + Engine MyISAM
    wp_wc_order_stats: Data: 0.05MB + Index: 0.04MB + Engine MyISAM
    wp_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_product_meta_lookup: Data: 0.04MB + Index: 0.05MB + Engine MyISAM
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmailsmtp_emails_log: Data: 1.52MB + Index: 0.11MB + Engine InnoDB
    wp_wpmailsmtp_email_tracking_events: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wpmailsmtp_email_tracking_links: Data: 1.52MB + Index: 0.09MB + Engine InnoDB
    wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpmm_subscribers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    attachment: 2208
    brb_collection: 1
    custom_css: 1
    nav_menu_item: 262
    nf_sub: 3
    page: 911
    post: 1
    product: 731
    shop_order: 805
    shop_order_refund: 1
    sidebar: 1
    wpforms: 1
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (27) ###
    
    Pay For Post with WooCommerce Premium: by Pramadillo – 3.0.8beta
    Add From Server: by Dion Hulse – 3.4.5
    AutomateWoo - Refer A Friend Add-on: by WooCommerce – 2.6.4
    AutomateWoo: by WooCommerce – 5.5.8
    Block Specific Spam Woo Orders: by guwii – 0.54
    Business Reviews Bundle: by RichPlugins  – 1.7.8
    Category Tag Pages: by Marzio Carro – 1.0
    Classic Editor: by WordPress Contributors – 1.6.2
    Clean and Simple Contact Form: by Alan Fuller – 4.7.9
    Google XML Sitemaps: by Auctollo – 4.1.1
    Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.23.2
    Loggedin - Limit Active Logins: by Joel James – 1.3.1
    Really Simple SSL pro: by Really Simple Plugins – 5.3.0
    Really Simple SSL: by Really Simple Plugins – 5.2.3
    Simply Schedule Appointments: by N Squared – 4.5.4.4
    Page Builder by SiteOrigin: by SiteOrigin – 2.16.4
    SiteOrigin Premium: by SiteOrigin – 1.28.10
    Smart Slider 3: by Nextend – 3.5.1.3
    SiteOrigin Widgets Bundle: by SiteOrigin – 1.30.0
    Product Customer List for WooCommerce: by Kokomo – 2.9.3
    WooCommerce PayPal Payments: by WooCommerce – 1.6.5
    WooCommerce: by Automattic – 6.2.0
    WooCommerce: by Automattic – 6.2.0
    WP Mail SMTP Pro: by WPForms – 3.3.0
    WP Maintenance Mode & Coming Soon: by Themeisle – 2.4.4
    WP-Optimize - Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.2.2
    
    SEOPress: by SEOPress – 5.4.4
    
    ### Inactive Plugins (0) ###
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### Must Use Plugins (1) ###
    
    installatron_hide_status_test.php: by  –
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: ?
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    Taxonomies: Product Types: bundle (bundle)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    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: –
    
    ### WC Pages ###
    
    Shop base: #1226 - /shop/
    Cart: #1227 - /cart/
    Checkout: #1228 - /checkout/
    My account: #1229 - /my-account/
    Terms and conditions: #1350 - /terms-of-service/
    
    ### Theme ###
    
    Name: Vantage
    Version: 1.19.8
    Author URL: https://siteorigin.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: –
    
    ### 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: ?
    
    ### Action Scheduler ###
    
    Complete: 1,302
    Oldest: 2022-02-08 15:08:21 -0700
    Newest: 2022-02-21 19:39:03 -0700
    
    Pending: 5
    Oldest: 2022-02-21 21:01:30 -0700
    Newest: 2022-02-28 13:30:57 -0700
    
    ### Status report information ###
    
    Generated at: 2022-02-21 19:52:53 -07:00
    
    2022-02-22T02:51:40+00:00 DEBUG POST https://connect.woocommerce.com/ppcsandbox/v2/customer/partner-referrals
    Request Body: {"partner_config_override":{"partner_logo_url":"https:\/\/connect.woocommerce.com\/images\/woocommerce_logo.png","return_url":"https:\/\/csumathtutor.com\/wp-admin\/admin.php?page=wc-settings&tab=checkout&section=ppcp-gateway","return_url_description":"Return to your shop.","show_add_credit_card":true},"products":["PPCP"],"legal_consents":[{"type":"SHARE_DATA_CONSENT","granted":true}],"operations":[{"operation":"API_INTEGRATION","api_integration_preference":{"rest_api_integration":{"integration_method":"PAYPAL","integration_type":"FIRST_PARTY","first_party_details":{"features":["PAYMENT","FUTURE_PAYMENT","REFUND","ADVANCED_TRANSACTIONS_SEARCH","VAULT"],"seller_nonce":"a1233wtergfsdt4365tzrshgfbaewa36AGa1233wtergfsdt4365tzrshgfbaewa36AG"}}}}]}
    Response Debug ID: 48bf53ab8547a
    Response: Array
    (
        [code] => 201
        [message] => Created
    )
Viewing 8 replies - 16 through 23 (of 23 total)
  • Hello,
    I am facing the same issue – new users can use the PayPal payment process, and logged-in users have the error message: “Something went wrong. Please try again or choose another payment source.”
    I have also removed the unnecessary checkout billing fields because my product is digital.
    @themathman, what is the code that helps remove that error?
    Thank you!

    Thread Starter TheMathMan

    (@themathman)

    Hey dvir3674,

    I implemented the code described in this post:
    https://github.com/woocommerce/woocommerce-paypal-payments/issues/454

    It works for me, I hope it works out for you.

    thank you. but if the plugin needs to be updated the change is gone. how to add that code to Snippets without ‘Private function’ error. attaching video:

    thank you for your help

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi there @themathman & @dvir3674

    We did some testing and found the behavior to be the expected one when the Default customer location setting is set to No location by default.
    The default WooCommerce payment gateways should throw a similar error when the billing fields are hidden, and no billing country is set for the buyer.

    Can you please give it a try with the Default customer location setting setting configured to Shop country/region in the General WooCommerce settings tab?
    This should resolve the issue without the need for the filter mentioned above.
    Please let us know how that works for you. Thanks!

    Kind regards,
    Niklas

    Thread Starter TheMathMan

    (@themathman)

    Hey Nicklas,
    Thanks so much for working through all of this.
    I have changed the Default customer location setting to Shop country/region, and now it all appears to be working properly.
    I appreciate all the time and effort by you and your team.
    Cheers!

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @themathman,

    Thanks for the feedback.

    WooCommerce essentially requires a billing country to process orders. In our tests, the reported behavior has been consistent across all payment gateways, the integrated, or third-party ones. I couldn’t find any clear documentation around it anywhere, but it should also not be a frequent problem as hiding the billing country field and having it set to No location by default are both non-standard configurations.

    In any case, we’re glad to have isolated the responsible configuration to provide you with a fitting solution. For any other questions or suggestions, feel free to reach out anytime.
    Thanks!

    Kind regards,
    Niklas

    I’m getting the opposite problem since 5 days ago. Both PayPal and Stripe payments have been working fine on my site for more than a year, and recently when customers try to check out as guests without logging in, both payment types fail.

    Paypal returns “could not retrieve order” error and the Stripe in-line payment doesn’t appear. I’ve had a look through all of my plug-ins, and they were all updated before these problems seem to have occurred.

    Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @hianalyst,

    I suggest creating a new thread for yourself so we can help you out if there are any questions.
    Thanks!

    Kind regards,
    Niklas

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Logged in users cannot checkout, but new users can.’ is closed to new replies.