{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4640","repository_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads","labels_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4640/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4640/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4640/events","html_url":"https://github.com/easydigitaldownloads/easy-digital-downloads/issues/4640","id":157910749,"number":4640,"title":"Expired discount blocking checkout","user":{"login":"flowdee","id":2278756,"avatar_url":"https://avatars.githubusercontent.com/u/2278756?v=3","gravatar_id":"","url":"https://api.github.com/users/flowdee","html_url":"https://github.com/flowdee","followers_url":"https://api.github.com/users/flowdee/followers","following_url":"https://api.github.com/users/flowdee/following{/other_user}","gists_url":"https://api.github.com/users/flowdee/gists{/gist_id}","starred_url":"https://api.github.com/users/flowdee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flowdee/subscriptions","organizations_url":"https://api.github.com/users/flowdee/orgs","repos_url":"https://api.github.com/users/flowdee/repos","events_url":"https://api.github.com/users/flowdee/events{/privacy}","received_events_url":"https://api.github.com/users/flowdee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-01T13:46:37Z","updated_at":"2016-06-01T14:08:18Z","closed_at":null,"body":"Last week I created a discount code which was limited to yesterday. After creating it I added it to the checkout form in order to validate the code is working. I think I didnt click on remove code after this.\r\n\r\nNow a customer mails me that he cant finish the checkout because at the end of the page, right above the buy now button there was the following notice:\r\n\r\n`This discount is expired.`\r\n\r\nAt the top table no discount code was listed and he told me he didn't apply one earlier.\r\n\r\nIn order to find out which code might be producing this issue, I debugged the **edd_is_discount_active** function and print the **$code_id** which was the code I created last week and which expired the day before.\r\n\r\nI can't imagine why this happens. At the one hand the customer told me he didn't apply this coupon, on the other hand WHEN the code was applied, shouldn't it be added to the table at the top? at least as \"wrong code\" or something.\r\n\r\nThe only way to get it working was to reactivate the discount code and remove the expiration date.\r\n\r\nAny idea? Is there a way to delete already applied and maybe \"hanging\" discount codes?"},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/comments/223003541","html_url":"https://github.com/easydigitaldownloads/easy-digital-downloads/issues/4640#issuecomment-223003541","issue_url":"https://api.github.com/repos/easydigitaldownloads/easy-digital-downloads/issues/4640","id":223003541,"user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T14:08:18Z","updated_at":"2016-06-01T14:08:18Z","body":"Was it that one customer only or all customers?"}}
{"actor":{"display_login":"pippinsplugins"}}