{"action":"opened","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/21670","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/21670/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/21670/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/21670/events","html_url":"https://github.com/woocommerce/woocommerce/issues/21670","id":373910895,"node_id":"MDU6SXNzdWUzNzM5MTA4OTU=","number":21670,"title":"Clicking 'Return to Merchant' button in PayPal (after payment successfully completed) cancels order","user":{"login":"bbceg","id":7188545,"node_id":"MDQ6VXNlcjcxODg1NDU=","avatar_url":"https://avatars2.githubusercontent.com/u/7188545?v=4","gravatar_id":"","url":"https://api.github.com/users/bbceg","html_url":"https://github.com/bbceg","followers_url":"https://api.github.com/users/bbceg/followers","following_url":"https://api.github.com/users/bbceg/following{/other_user}","gists_url":"https://api.github.com/users/bbceg/gists{/gist_id}","starred_url":"https://api.github.com/users/bbceg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbceg/subscriptions","organizations_url":"https://api.github.com/users/bbceg/orgs","repos_url":"https://api.github.com/users/bbceg/repos","events_url":"https://api.github.com/users/bbceg/events{/privacy}","received_events_url":"https://api.github.com/users/bbceg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T11:57:09Z","updated_at":"2018-10-25T11:57:09Z","closed_at":null,"author_association":"NONE","body":"This issue appears to have been raised in various guises over the years and while I agree with @mikejolley in #6810 that the customer is cancelling the order before IPN is completing I don't think they intend to do so and I believe PayPal / WooCommerce is partly to blame in one particular use case:\r\n\r\n1. The customer checks out and completes their payment on PayPal\r\n2. The payment successfully completes and this is confirmed to the customer\r\n3. The customer clicks the back button in their browser in an attempt to return to the store\r\n4. The customer is presented with a page that states 'Your payment has completed' and also a button entitled 'Return to Merchant'. \r\n5. On clicking 'Return to Merchant' the customer is returned to the store but is presented with a message stating that the order is cancelled.\r\n6. In some cases the IPN payment kicks in a short while later and marks the order as processing\r\n\r\nThe reason the order is cancelled after clicking the 'Return to Merchant' button is because its hyperlink contains an instruction to cancel the order.\r\n\r\nI would not expect a button entitled 'Return to Merchant' to cancel the order so I don't think the customer is at fault. If possible I'd change the link to not cancel the order or change the button text (not ideal as the payment has already completed at this point)."}}
{"actor":{"display_login":"bbceg"}}