• Resolved amirhmoradi

    (@amirhmoradi)


    hi, i use your plugin on my woocommerce website.

    when the cart is empty and i navigate to a product’s page, in the requests, there is a POST request to:

    https://example.com/?wc-ajax=wc_stripe_frontend_request&path=/wc-stripe/v1/cart/cart-calculation
    with the payload:

    <span style="color: rgb(0, 34, 1); font-family: monospace; font-size: 11px; background-color: rgb(255, 255, 255);">product_id=589&variation_id=0&qty=1&payment_method=stripe_googlepay&currency=EUR&page_id=product</span>

    This xhr (ajax) POST call, add a product in the cart, even if the user did not click the add to cart button.

    I already isolated the issue to your plugin (by disabling your plugin, this issue is not reproducible.)

    Here is the list of other plugins i use on my website in case you need to investigate:

    FluentSMTP	 	by FluentSMTP & WPManageNinja Team – 2.2.72
    WP Data Access Premium	 	by Passionate Programmers B.V. – 5.3.9
    Code Profiler Pro	 	by Jerome Bruandet ~ NinTechNet Ltd. – 1.6.8
    Akismet Anti-spam: Spam Protection	 	by Automattic - Anti-spam Team – 5.3.2
    Unconfirmed	 	by Boone B Gorges – 1.3.7
    UpdraftPlus - Backup/Restore	 	by UpdraftPlus.Com, DavidAnderson – 2.24.2.26
    Wordfence Security	 	by Wordfence – 7.11.5
    Edit Author Slug	 	by Brandon Allen – 1.9.0
    Child Theme Configurator	 	by Lilaea Media – 2.6.6
    Code Snippets Pro (Premium)	 	by Code Snippets Pro – 3.6.4
    User Switching	 	by John Blackbourn & contributors – 1.7.3
    Index WP MySQL For Speed	 	by Oliver Jones, Rick James – 1.4.17
    vendidero Helper	 	by vendidero – 2.2.2
    Index WP Users For Speed	 	by Oliver Jones – 1.1.5
    LiteSpeed Cache	 	by LiteSpeed Technologies – 6.1
    WPML Multilingual CMS	 	by OnTheGoSystems – 4.6.9
    Advanced Custom Fields PRO	 	by WP Engine – 6.2.7
    AffiliateWP - Custom Affiliate Slugs	 	by Sandhills Development, LLC – 1.2
    AffiliateWP	 	by AffiliateWP – 2.23.1
    AffiliateWP - Affiliate Area Shortcodes	 	by AffiliateWP – 1.3.1
    AffiliateWP - Tiered Rates	 	by AffiliateWP – 1.3.1
    AffiliateWP - Affiliate Portal	 	by AffiliateWP – 1.3.0
    AffiliateWP - Starting Affiliate ID	 	by Sandhills Development, LLC – 1.2
    CheckoutWC	 	by Objectiv – 9.0.30
    CommerceGurus CommerceKit	 	by CommerceGurus – 2.2.9
    Customizer Export/Import	 	by The Beaver Builder Team – 0.9.6
    Elementor Pro	 	by Elementor.com – 3.20.0
    Elementor	 	by Elementor.com – 3.20.4
    Enhancer for WooCommerce Subscriptions	 	by Flintop – 4.4.0
    Exclusive Addons Elementor Pro	 	by DevsCred.com – 1.5.3
    Exclusive Addons Elementor	 	by Exclusive Addons – 2.6.9.3
    FluentCRM - Marketing Automation For WordPress	 	by WP Email Newsletter Team - FluentCRM – 2.8.45
    FluentCRM Pro	 	by Fluent CRM – 2.8.45
    Fluent Forms	 	by Contact Form - WPManageNinja LLC – 5.1.11
    Fluent Forms Pro Add On Pack	 	by Fluent Forms – 5.1.11
    Site Kit by Google	 	by Google – 1.124.0
    GTM Server Side	 	by Stape – 2.1.14
    Inspect HTTP Requests	 	by ExpressTech Softwares Solutions Pvt Ltd – 1.0.6
    Kirki Customizer Framework	 	by Themeum – 5.1.0
    MailPoet Premium	 	by MailPoet – 4.44.0
    MailPoet	 	by MailPoet – 4.48.0
    Mondial Relay - InPost - WordPress	 	by Rodolphe Cazemajou-Tournié – 4.6
    One Stop Shop for WooCommerce	 	by vendidero – 1.6.2
    Members	 	by MemberPress – 3.2.9
    Plugin Organizer	 	by Jeff Sterup – 10.1.10
    Pods - Custom Content Types and Fields	 	by Pods Framework Team – 3.2.1
    Redirection	 	by John Godley – 5.4.2
    Pretty Links	 	by Pretty Links – 3.6.4
    ReviewX Pro	 	by WPDeveloper – 1.4.7
    ReviewX	 	by ReviewX – 1.6.27
    Rank Math SEO PRO	 	by Rank Math – 3.0.56
    Rank Math SEO	 	by Rank Math – 1.0.216
    Simple Cloudflare Turnstile	 	by Elliot Sowersby, RelyWP – 1.25.0
    The Plus Addons for Elementor	 	by POSIMYTH – 5.4.2
    The Plus Addons for Elementor - Pro	 	by POSIMYTH – 5.4.1
    Cadre weLaunch	 	by weLaunch.io – 1.1.1
    Product Feed ELITE for WooCommerce	 	by AdTribes.io – 4.9.3
    Payment Plugins for Stripe WooCommerce	 	by Payment Plugins, [email protected] – 3.3.60
    WooCommerce Address Validation	 	by SkyVerge – 2.11.0
    Woo All Products For Subscriptions	 	by Woo – 5.0.2
    WooCommerce Brands	 	by WooCommerce – 1.6.66
    WooCommerce Coupon Campaigns & Tracking	 	by WooCommerce – 1.2.16
    Germanized for WooCommerce Pro	 	by vendidero – 3.10.0
    Germanized for WooCommerce	 	by vendidero – 3.16.2
    WooCommerce Google Analytics Pro	 	by SkyVerge – 2.0.15
    WooCommerce Multi Inventaire & Entrep?ts	 	by weLaunch – 1.4.0
    WooCommerce Multilingual & Multicurrency	 	by OnTheGoSystems – 5.3.6
    Advanced Order Export For WooCommerce (Pro)	 	by AlgolPlus – 3.4.4
    WooCommerce Pre-Orders	 	by WooCommerce – 2.1.0
    WooCommerce Price Based on Country Pro	 	by Oscar Gare – 3.4.8
    Woo Product Bundles	 	by Woo – 7.1.0
    WooCommerce Price Based on Country	 	by Oscar Gare – 3.4.4
    WooCommerce Sequential Order Numbers Pro	 	by SkyVerge – 1.21.2
    WooCommerce Smart Coupons	 	by StoreApps – 8.19.0
    WooCommerce Social Login	 	by SkyVerge – 2.15.1
    Woo Subscriptions	 	by WooCommerce – 6.1.0
    WooCommerce Tab Manager	 	by SkyVerge – 1.16.0
    WooCommerce	 	by Automattic – 8.7.0
    Axonaut	 	by Axonaut – 2.3.13
    Super Page Cache for Cloudflare	 	by Optimole – 4.7.9
    WP Crontrol	 	by John Blackbourn – 1.16.2
    WP Fusion - Abandoned Cart Addon	 	by Very Good Plugins – 1.8.0
    WP Fusion - Event Tracking Addon	 	by Very Good Plugins – 1.4.3
    WP Fusion	 	by Very Good Plugins – 3.42.8.1
    WPML String Translation	 	by OnTheGoSystems – 3.2.9
    Code Snippets Pro (Premium)	 	by Code Snippets Pro – 3.6.4
    Akismet Anti-spam: Spam Protection	 	by Automattic - Anti-spam Team – 5.3.2
    Unconfirmed	 	by Boone B Gorges – 1.3.7
    Child Theme Configurator	 	by Lilaea Media – 2.6.6
    UpdraftPlus - Backup/Restore	 	by UpdraftPlus.Com, DavidAnderson – 2.24.2.26
    Wordfence Security	 	by Wordfence – 7.11.5
    WP Data Access Premium	 	by Passionate Programmers B.V. – 5.3.9
    Edit Author Slug	 	by Brandon Allen – 1.9.0
    User Switching	 	by John Blackbourn & contributors – 1.7.3
    Index WP MySQL For Speed	 	by Oliver Jones, Rick James – 1.4.17
    Index WP Users For Speed	 	by Oliver Jones – 1.1.5
    Code Profiler Pro	 	by Jerome Bruandet ~ NinTechNet Ltd. – 1.6.8
    LiteSpeed Cache	 	by LiteSpeed Technologies – 6.1
    vendidero Helper	 	by vendidero – 2.2.2
Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @amirhmoradi

    That code is necessary because the wallet based payment method like Apple Pay and GPay need the data present before the button is clicked. It’s not designed to add an item to the cart, so if that’s happening you likely have a conflict somewhere.

    Can you share a website url where this can be re-created?

    Here you can observe it works as intended.

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘Error: Product automatically added to cart’ is closed to new replies.