{"action":"created","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/16069","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/16069/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/16069/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/16069/events","html_url":"https://github.com/woocommerce/woocommerce/issues/16069","id":242002841,"number":16069,"title":"Backorders Issue after Failed Payments","user":{"login":"huwrowlands","id":1230756,"avatar_url":"https://avatars1.githubusercontent.com/u/1230756?v=3","gravatar_id":"","url":"https://api.github.com/users/huwrowlands","html_url":"https://github.com/huwrowlands","followers_url":"https://api.github.com/users/huwrowlands/followers","following_url":"https://api.github.com/users/huwrowlands/following{/other_user}","gists_url":"https://api.github.com/users/huwrowlands/gists{/gist_id}","starred_url":"https://api.github.com/users/huwrowlands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huwrowlands/subscriptions","organizations_url":"https://api.github.com/users/huwrowlands/orgs","repos_url":"https://api.github.com/users/huwrowlands/repos","events_url":"https://api.github.com/users/huwrowlands/events{/privacy}","received_events_url":"https://api.github.com/users/huwrowlands/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-11T10:38:54Z","updated_at":"2017-07-11T10:42:00Z","closed_at":null,"body":"## Came across a possible bug where backorders are not allowed but can still be ordered. \r\n\r\nCustomer A orders several items but payment has failed for whatever reason their end and doesn't retry. \r\nCustomer B comes along and orders items deeming them out of stock.\r\nCustomer A returns and finally completes payment for the now out of stock items.\r\nThus creating backorders which should technically not be allowed.\r\n\r\n\r\n- [x ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate\r\n- [x] The issue still exists against the latest `master` branch of WooCommerce\r\n- [x ] This is not a usage question (Those should be directed to the [community](https://wordpress.org/support/plugin/woocommerce), unless this is a question about a premium plugin in which you should [use the helpdesk](https://woocommerce.com/my-account/tickets/) for official extensions or contact the author of 3rd party extensions)\r\n- [ x] I have attempted to find the simplest possible steps to reproduce the issue\r\n- [ ] I have included a failing test as a pull request (Optional)\r\n\r\n\r\n\r\n\r\nI was expecting Customer A to be notified that they cannot order any out of stock items once returning back to complete payment.\r\n\r\n## Environment\r\n\r\n<details>\r\n`\r\n### WordPress Environment ###\r\n\r\nHome URL: http://visibleimage.co.uk\r\nSite URL: http://visibleimage.co.uk\r\nWC Version: 3.1.0\r\nLog Directory Writable: ✔\r\nWP Version: 4.8\r\nWP Multisite: –\r\nWP Memory Limit: 768 MB\r\nWP Debug Mode: –\r\nWP Cron: ✔\r\nLanguage: en_GB\r\n\r\n### Server Environment ###\r\n\r\nServer Info: Apache\r\nPHP Version: 5.6.30\r\nPHP Post Max Size: 128 MB\r\nPHP Time Limit: 120\r\nPHP Max Input Vars: 3000\r\ncURL Version: 7.53.0\r\nOpenSSL/1.0.2k\r\n\r\nSUHOSIN Installed: –\r\nMySQL Version: 5.6.36\r\nMax Upload Size: 128 MB\r\nDefault Timezone is UTC: ✔\r\nfsockopen/cURL: ✔\r\nSoapClient: ✔\r\nDOMDocument: ✔\r\nGZip: ✔\r\nMultibyte String: ✔\r\nRemote Post: ✔\r\nRemote Get: ✔\r\n\r\n### Database ###\r\n\r\nWC Database Version: 3.1.0\r\nWC Database Prefix: wp_\r\nwoocommerce_sessions: ✔\r\nwoocommerce_api_keys: ✔\r\nwoocommerce_attribute_taxonomies: ✔\r\nwoocommerce_downloadable_product_permissions: ✔\r\nwoocommerce_order_items: ✔\r\nwoocommerce_order_itemmeta: ✔\r\nwoocommerce_tax_rates: ✔\r\nwoocommerce_tax_rate_locations: ✔\r\nwoocommerce_shipping_zones: ✔\r\nwoocommerce_shipping_zone_locations: ✔\r\nwoocommerce_shipping_zone_methods: ✔\r\nwoocommerce_payment_tokens: ✔\r\nwoocommerce_payment_tokenmeta: ✔\r\n\r\n### Security ###\r\n\r\nSecure connection (HTTPS): ❌Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.\r\nHide errors from visitors: ✔\r\n\r\n### Active Plugins (23) ###\r\n\r\nManageWP - Worker: by ManageWP – 4.2.19\r\nAdvanced Custom Fields: by Elliot Condon – 4.4.11\r\nAll In One SEO Pack: by Michael Torbert – 2.3.13.2\r\nAnti-spam: by webvitaly – 4.3\r\nBackupBuddy: by iThemes – 8.0.0.3\r\nBlogger Importer: by wordpressdotorg – 0.9\r\nCategories Images: by Muhammad Said El Zahlan – 2.5.3\r\nContact Form 7: by Takayuki Miyoshi – 4.8\r\nContent Aware Sidebars: by Joachim Jensen – 3.6.1\r\nFlat Rate per State/Country/Region for WooCommerce: by Webdados – 2.4.8.1\r\nWPBakery Visual Composer: by Michael M - WPBakery.com – 5.1.1\r\nPinterest \"Pin It\" Button Lite: by Phil Derksen – 2.1.0.1\r\nRegenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6\r\nSG Optimizer: by SiteGround – 3.3.1\r\nToolset Types: by OnTheGoSystems – 2.2.13\r\nWooCommerce Dynamic Pricing & Discounts: by RightPress – 2.0\r\nWooCommerce - All in One SEO Pack: by Visser Labs – 1.3.4\r\nWooCommerce Currency Converter: by WooCommerce – 1.6.5\r\nWooCommerce SagePay Form and SagePay Direct Gateway: by Andrew Benbow – 3.7.6 – 3.9.0 is available\r\nWooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.3.1 – 3.3.2 is available\r\nWooCommerce Role Based Methods: by WPBackOffice – 2.0.9 – 2.1.2 is available\r\nWooCommerce - Table Rates: by WP Ronin – 1.6.0\r\nWooCommerce: by Automattic – 3.1.0\r\n\r\n### Settings ###\r\n\r\nAPI Enabled: –\r\nForce SSL: –\r\nCurrency: GBP (£)\r\nCurrency Position: left\r\nThousand Separator: ,\r\nDecimal Separator: .\r\nNumber of Decimals: 2\r\nTaxonomies: Product Types: external (external)\r\ngrouped (grouped)\r\nsimple (simple)\r\nvariable (variable)\r\n\r\nTaxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)\r\nexclude-from-search (exclude-from-search)\r\nfeatured (featured)\r\noutofstock (outofstock)\r\nrated-1 (rated-1)\r\nrated-2 (rated-2)\r\nrated-3 (rated-3)\r\nrated-4 (rated-4)\r\nrated-5 (rated-5)\r\n\r\n\r\n### WC Pages ###\r\n\r\nShop base: #4 - /shop/\r\nBasket: #5 - /your-basket/\r\nCheckout: #6 - /checkout/\r\nMy account: #7 - /my-account/\r\n\r\n### Theme ###\r\n\r\nName: upBootWP\r\nVersion: 0.1\r\nAuthor URL: http://upplex.de\r\nChild Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build\r\npersonally we recommend using a child theme. See: How to create a child theme\r\n\r\nWooCommerce Support: ✔\r\n\r\n### Templates ###\r\n\r\nArchive Template: Your theme has a woocommerce.php file. You will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues.\r\nOverrides: upBootstrap3WP-master/woocommerce/archive-product.php\r\nupBootstrap3WP-master/woocommerce/cart/cart.php version 3.0.3 is out of date. The core version is 3.1.0\r\nupBootstrap3WP-master/woocommerce/cart/mini-cart.php version 2.5.0 is out of date. The core version is 3.1.0\r\nupBootstrap3WP-master/woocommerce/content-product_cat.php\r\nupBootstrap3WP-master/woocommerce/content-single-product.php\r\nupBootstrap3WP-master/woocommerce/loop/add-to-cart.php\r\nupBootstrap3WP-master/woocommerce/loop/loop-end.php\r\nupBootstrap3WP-master/woocommerce/loop/loop-start.php\r\nupBootstrap3WP-master/woocommerce/loop/price.php\r\nupBootstrap3WP-master/woocommerce/single-product/add-to-cart/simple.php\r\nupBootstrap3WP-master/woocommerce/single-product/price.php\r\n\r\nOutdated Templates: ❌Learn how to update\r\n`\r\n</details>\r\n\r\n## Isolating the problem\r\n\r\n- [x] This bug happens with only WooCommerce plugin active\r\n- [x] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/)\r\n- [ ] I can reproduce this bug consistently\r\n"},"comment":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments/314405685","html_url":"https://github.com/woocommerce/woocommerce/issues/16069#issuecomment-314405685","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/16069","id":314405685,"user":{"login":"mikejolley","id":90977,"avatar_url":"https://avatars1.githubusercontent.com/u/90977?v=3","gravatar_id":"","url":"https://api.github.com/users/mikejolley","html_url":"https://github.com/mikejolley","followers_url":"https://api.github.com/users/mikejolley/followers","following_url":"https://api.github.com/users/mikejolley/following{/other_user}","gists_url":"https://api.github.com/users/mikejolley/gists{/gist_id}","starred_url":"https://api.github.com/users/mikejolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikejolley/subscriptions","organizations_url":"https://api.github.com/users/mikejolley/orgs","repos_url":"https://api.github.com/users/mikejolley/repos","events_url":"https://api.github.com/users/mikejolley/events{/privacy}","received_events_url":"https://api.github.com/users/mikejolley/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T10:41:59Z","updated_at":"2017-07-11T10:41:59Z","body":"What gateway and what order status after failed payment?"}}
{"actor":{"display_login":"mikejolley"}}