Cart is not emptied if PayPal payment is cancelled or failed
-
When a customer checks out with PayPal Plus and the PayPal payment process is cancelled or failed, he’s redirected to the cart which still contains all items, even though the order already is done and exists in the WooCommerce admin area (the order confirmation email also has already been sent). Instead, the cart should be emptied and the customer should be redirected to the order confirmation page.
The current behavior causes two problems:
- When the customer checks out again, another order confirmation email is sent, with the same order number. Both to the customer and to us. By canceling the PayPal payment process again, he can repeat this as often as he wants. So every time when the payment process canceled and started again, a new order confirmation email is sent.
- Because the cart still contains the items, the customer thinks his order is not done already or he thinks he ordered multiple times and is afraid he’s going to pay multiple times for his orders.
### WordPress Environment ### WordPress address (URL): https://x.com Site address (URL): https://x.com WC Version: 4.0.1 REST API Version: ? 1.0.7 WC Blocks Version: ? 2.5.14 Action Scheduler Version: ? 3.1.4 WC Admin Version: ? 1.0.3 Log Directory Writable: ? WP Version: 5.4.1 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: de_DE External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.18 PHP Post Max Size: 32 MB PHP Time Limit: 60 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.7.30-0ubuntu0.16.04.1 Max Upload Size: 16 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.0.1 WC Database Prefix: h8h2ODY_ Datenbank-Gesamtgr??e: 8508.12MB Datenbank-Datengr??e: 7367.89MB Datenbank-Indexgr??e: 1140.23MB h8h2ODY_woocommerce_sessions: Daten: 2.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB h8h2ODY_woocommerce_order_items: Daten: 1.52MB + Index: 0.20MB + Engine InnoDB h8h2ODY_woocommerce_order_itemmeta: Daten: 11.52MB + Index: 5.03MB + Engine InnoDB h8h2ODY_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB h8h2ODY_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB h8h2ODY_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB h8h2ODY_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_actionscheduler_actions: Daten: 2.17MB + Index: 1.22MB + Engine InnoDB h8h2ODY_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_actionscheduler_logs: Daten: 2.19MB + Index: 1.72MB + Engine InnoDB h8h2ODY_aryo_activity_log: Daten: 5.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_bulkuserdiscounts_base_prices: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_bulkuserdiscounts_bulk_prices: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB h8h2ODY_bulkuserdiscounts_roles: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_bulkuserdiscounts_users: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_comments: Daten: 1.52MB + Index: 1.17MB + Engine InnoDB h8h2ODY_dpd_orders: Daten: 1474.52MB + Index: 0.00MB + Engine InnoDB h8h2ODY_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_newsletter: Daten: 0.05MB + Index: 0.03MB + Engine InnoDB h8h2ODY_newsletter_emails: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_newsletter_sent: Daten: 0.00MB + Index: 0.00MB + Engine MyISAM h8h2ODY_newsletter_stats: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_newsletter_user_logs: Daten: 0.08MB + Index: 0.00MB + Engine InnoDB h8h2ODY_options: Daten: 35.30MB + Index: 17.23MB + Engine InnoDB h8h2ODY_postmeta: Daten: 691.52MB + Index: 568.08MB + Engine InnoDB h8h2ODY_posts: Daten: 4825.73MB + Index: 29.41MB + Engine InnoDB h8h2ODY_shortpixel_folders: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_shortpixel_meta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_social_users: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_statistics_exclusions: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_statistics_historical: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB h8h2ODY_statistics_pages: Daten: 98.63MB + Index: 267.98MB + Engine InnoDB h8h2ODY_statistics_search: Daten: 1.52MB + Index: 0.83MB + Engine InnoDB h8h2ODY_statistics_useronline: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_statistics_visit: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_statistics_visitor: Daten: 147.66MB + Index: 201.14MB + Engine InnoDB h8h2ODY_termmeta: Daten: 0.14MB + Index: 0.11MB + Engine InnoDB h8h2ODY_terms: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB h8h2ODY_term_relationships: Daten: 24.33MB + Index: 11.42MB + Engine InnoDB h8h2ODY_term_taxonomy: Daten: 0.11MB + Index: 0.03MB + Engine InnoDB h8h2ODY_usermeta: Daten: 16.55MB + Index: 12.92MB + Engine InnoDB h8h2ODY_users: Daten: 0.25MB + Index: 0.23MB + Engine InnoDB h8h2ODY_vtprd_purchase_log: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_vtprd_purchase_log_product: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_vtprd_purchase_log_product_rule: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_wc_category_lookup: Daten: 0.05MB + Index: 0.00MB + Engine InnoDB h8h2ODY_wc_customer_lookup: Daten: 1.52MB + Index: 1.81MB + Engine InnoDB h8h2ODY_wc_download_log: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_wc_gpf_render_cache: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_wc_order_coupon_lookup: Daten: 0.23MB + Index: 0.27MB + Engine InnoDB h8h2ODY_wc_order_product_lookup: Daten: 4.52MB + Index: 5.03MB + Engine InnoDB h8h2ODY_wc_order_stats: Daten: 2.52MB + Index: 3.41MB + Engine InnoDB h8h2ODY_wc_order_tax_lookup: Daten: 1.52MB + Index: 0.94MB + Engine InnoDB h8h2ODY_wc_product_meta_lookup: Daten: 4.52MB + Index: 4.95MB + Engine InnoDB h8h2ODY_wc_tax_rate_classes: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_wc_webhooks: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB h8h2ODY_woocommerce_gpf_google_taxonomy: Daten: 1.52MB + Index: 0.00MB + Engine InnoDB h8h2ODY_woocommerce_gzd_dhl_labelmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_gzd_dhl_labels: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipmentmeta: Daten: 0.06MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipments: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipment_itemmeta: Daten: 0.11MB + Index: 0.13MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipment_items: Daten: 0.13MB + Index: 0.06MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipping_provider: Daten: 0.02MB + Index: 0.00MB + Engine InnoDB h8h2ODY_woocommerce_gzd_shipping_providermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB h8h2ODY_yith_wcwl: Daten: 1.52MB + Index: 0.36MB + Engine InnoDB h8h2ODY_yith_wcwl_lists: Daten: 1.52MB + Index: 1.52MB + Engine InnoDB h8h2ODY_yoast_seo_links: Daten: 3.13MB + Index: 1.50MB + Engine InnoDB h8h2ODY_yoast_seo_meta: Daten: 1.50MB + Index: 0.00MB + Engine InnoDB jvb85DD55_commentmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_comments: Daten: 0.02MB + Index: 0.08MB + Engine InnoDB jvb85DD55_links: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB jvb85DD55_options: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB jvb85DD55_postmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_posts: Daten: 0.02MB + Index: 0.06MB + Engine InnoDB jvb85DD55_termmeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_terms: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_term_relationships: Daten: 0.02MB + Index: 0.02MB + Engine InnoDB jvb85DD55_term_taxonomy: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_usermeta: Daten: 0.02MB + Index: 0.03MB + Engine InnoDB jvb85DD55_users: Daten: 0.02MB + Index: 0.05MB + Engine InnoDB ### Post Type Counts ### attachment: 2166 blocks: 23 catalog_pricing_rule: 1 invoice: 667 jetpack_migration: 2 jp_img_sitemap: 2 jp_img_sitemap_index: 1 jp_sitemap: 1 jp_sitemap_master: 1 nav_menu_item: 11 oembed_cache: 2 page: 18 post: 4 product: 8000 product_variation: 15331 revision: 2650 shop_coupon: 169 shop_order: 27323 shop_order_refund: 1441 wp-rest-api-log: 79876 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (26) ### Activity Log: von Activity Log Team – 2.5.2 WooCommerce DPD Paketschein & Paketverfolgung: von Adrian S – 1.0 – Nicht getestest mit der aktiven WooCommerce-Version WooCommerce Bulk & User Discounts: von Adrian S – 1.0.0 – Nicht getestest mit der aktiven WooCommerce-Version Cookie Notice: von dFactory – 1.3.1 WooCommerce Cost Savings & Amortization: von Adrian S – 1.0.0 – Nicht getestest mit der aktiven WooCommerce-Version Enable Media Replace: von ShortPixel – 3.3.11 Limit Login Attempts Reloaded: von WPChef – 2.12.2 Media Deduper Pro: von Cornershop Creative – 1.1.0 Newsletter: von Stefano Lissa & Das Newsletter Team – 6.6.2 Regenerate Thumbnails Advanced: von ShortPixel – 2.2.0 Safe SVG: von Daryll Doyle – 1.9.8 ShortPixel Image Optimizer: von ShortPixel – 4.17.4 Two-Factor: von Mitwirkende – 0.5.1 User Role Editor: von Vladimir Garagulya – 4.53.1 Vendidero Helper: von Vendidero – 1.3.0 PayPal PLUS für WooCommerce: von Inpsyde GmbH – 2.2.0 – Nicht getestest mit der aktiven WooCommerce-Version WooCommerce Search by Product SKU: von Clayton Kriesel [Three Remain Production] – 1.0 – Nicht getestest mit der aktiven WooCommerce-Version Germanized für WooCommerce Pro: von Vendidero – 2.0.15 Germanized für WooCommerce: von Vendidero – 3.1.5 WooCommerce Google Ads Conversion Tracking: von Wolf+B?r Agency – 1.6.4 WooCommerce Google Analytics Integration: von WooCommerce – 1.4.20 WooCommerce Google Ads Dynamic Remarketing: von Wolf+B?r Agency – 1.7.15 WooCommerce Google Product Feed: von Ademti Software Ltd. – 8.1.0 – 8.1.1 ist verfügbar WooCommerce: von Automattic – 4.0.1 – 4.1.1 ist verfügbar Yoast SEO: von Team Yoast – 13.5 REST API Log: von Pete Nelson – 1.6.7 ### Inactive Plugins (1) ### DPD Versandetikett Plugin WooCommerce: von eMoose GmbH – 2.3 – Nicht getestest mit der aktiven WooCommerce-Version ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Must Use Plugins (1) ### x.php: von – ### Settings ### API Enabled: ? Force SSL: ? Currency: EUR (€) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: 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-Basis: #4 - /shop/ Warenkorb: #5 - /warenkorb/ Kasse: #6 - /kasse/ Mein Konto: #7 - /mein-konto/ Allgemeine Gesch?ftsbedingungen: #395 - /agb/ ### Theme ### Name: Flatsome Child Version: 3.0.9 Author URL: Child Theme: ? Parent Theme Name: Flatsome Parent Theme Version: 3.11.3 Parent Theme Author URL: https://www.uxthemes.com/ WooCommerce Support: ? ### Templates ### Overrides: flatsome/woocommerce/archive-product.php flatsome/woocommerce/cart/cart-empty.php flatsome/woocommerce/cart/cart-shipping.php flatsome/woocommerce/cart/cart.php flatsome/woocommerce/checkout/form-checkout.php flatsome/woocommerce/checkout/form-coupon.php flatsome/woocommerce/checkout/terms.php flatsome/woocommerce/checkout/thankyou.php flatsome/woocommerce/content-product.php flatsome/woocommerce/content-product_cat.php flatsome/woocommerce/content-single-product.php flatsome/woocommerce/content-widget-product.php flatsome/woocommerce/global/breadcrumb.php flatsome/woocommerce/global/quantity-input.php flatsome/woocommerce/global/wrapper-end.php flatsome/woocommerce/global/wrapper-start.php flatsome/woocommerce/loop/loop-end.php flatsome/woocommerce/loop/loop-start.php flatsome/woocommerce/loop/pagination.php flatsome/woocommerce/loop/result-count.php flatsome/woocommerce/loop/sale-flash.php flatsome/woocommerce/myaccount/form-login.php flatsome/woocommerce/myaccount/navigation.php flatsome/woocommerce/notices/error.php flatsome/woocommerce/notices/notice.php flatsome/woocommerce/notices/success.php flatsome/woocommerce/product-searchform.php flatsome/woocommerce/single-product/photoswipe.php flatsome/woocommerce/single-product/price.php flatsome/woocommerce/single-product/product-image.php flatsome/woocommerce/single-product/product-thumbnails.php flatsome/woocommerce/single-product/rating.php flatsome/woocommerce/single-product/related.php flatsome/woocommerce/single-product/review.php flatsome/woocommerce/single-product/sale-flash.php flatsome/woocommerce/single-product/share.php flatsome/woocommerce/single-product/short-description.php flatsome/woocommerce/single-product/tabs/tabs.php flatsome/woocommerce/single-product/title.php flatsome/woocommerce/single-product/up-sells.php flatsome/woocommerce/single-product-reviews.php flatsome/woocommerce/single-product.php ### WooCommerce Google Product Feed fields ### Product description: Main product description (full preferred) plus variation description. Availability: Defaults to "in stock". Brand: Defaults to "x". Manufacturer Part Number (MPN): Pre-populates from product sku. Product Type: Pre-populates from product_cat taxonomy. Google Product Category: Size system: Energy efficiency class: Pre-populates from pa_energieeffizienzklasse taxonomy. ### WooCommerce Google Product Feed options ### Include variations in feed: Enabled Send item_group_id: No ### Action Scheduler ### Abgeschlossen: 6.360 Oldest: 2020-04-27 17:37:52 +0200 Newest: 2020-05-28 16:40:50 +0200
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cart is not emptied if PayPal payment is cancelled or failed’ is closed to new replies.