{"action":"created","issue":{"url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/44","repository_url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit","labels_url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/44/comments","events_url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/44/events","html_url":"https://github.com/AffiliateWP/affiliatewp-store-credit/issues/44","id":240263075,"number":44,"title":"Affiliate receiving error: \"Sorry, it seems the coupon \"affiliate-credit-xxxxxxx\" is not yours - it has now been removed from your order.\" ","user":{"login":"gspice","id":3018245,"avatar_url":"https://avatars0.githubusercontent.com/u/3018245?v=3","gravatar_id":"","url":"https://api.github.com/users/gspice","html_url":"https://github.com/gspice","followers_url":"https://api.github.com/users/gspice/followers","following_url":"https://api.github.com/users/gspice/following{/other_user}","gists_url":"https://api.github.com/users/gspice/gists{/gist_id}","starred_url":"https://api.github.com/users/gspice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gspice/subscriptions","organizations_url":"https://api.github.com/users/gspice/orgs","repos_url":"https://api.github.com/users/gspice/repos","events_url":"https://api.github.com/users/gspice/events{/privacy}","received_events_url":"https://api.github.com/users/gspice/received_events","type":"User","site_admin":false},"labels":[{"id":142958157,"url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-03T20:54:16Z","updated_at":"2017-07-11T16:53:52Z","closed_at":null,"body":"**From this ticket:**\r\nhttps://secure.helpscout.net/conversation/385525769/61579/?folderId=1170842\r\n\r\n**Description from ticket:** \r\nWhen an affiliate attempts to make a purchase applying their store credit balance, they receive the error:   \r\n\r\n>Sorry, it seems the coupon \"affiliate-credit-xxxxxxxxxx_xx\" is not yours - it has now been removed from your order.\r\n\r\n(where the x is the number on the coupon generated)\r\n\r\n**To reproduce:**\r\n* Using WooCommerce, enable Store Credit, create a referral for an affiliate either manually or from an order purchase using their affiliate link.  \r\n* Mark the referral as **Paid**\r\n* Log in to the site using the affiliates account\r\n* Put some items in the cart, go to Checkout\r\n* Click to apply the credit balance - (when you do this a coupon is created in WooCommerce attached to that affiliate)\r\n* Abandon the purchase\r\n* Log back in and repeat the process \r\n* You will see the same balance as available for store credit (which is good)\r\n* Apply to your purchase , a 2nd coupon is created\r\n* When you click to submit the order you will receive the error\r\n\r\nI deleted the coupon codes generated during this process, cleared cookies and started fresh but the same process happens - a coupon is created and the affiliate receives the error.  \r\n\r\nThe only way I was able to process the order:\r\n*  Click apply so the coupon was generated again\r\n* Pause and go edit the coupon in another browser as admin, removing the user restriction in : Usage restriction > Email restrictions   \r\n\r\nThe above would not be possible on a live site. Looking for ways to \"reset\" the affiliate regarding store credit for the user."},"comment":{"url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/comments/314506226","html_url":"https://github.com/AffiliateWP/affiliatewp-store-credit/issues/44#issuecomment-314506226","issue_url":"https://api.github.com/repos/AffiliateWP/affiliatewp-store-credit/issues/44","id":314506226,"user":{"login":"gspice","id":3018245,"avatar_url":"https://avatars0.githubusercontent.com/u/3018245?v=3","gravatar_id":"","url":"https://api.github.com/users/gspice","html_url":"https://github.com/gspice","followers_url":"https://api.github.com/users/gspice/followers","following_url":"https://api.github.com/users/gspice/following{/other_user}","gists_url":"https://api.github.com/users/gspice/gists{/gist_id}","starred_url":"https://api.github.com/users/gspice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gspice/subscriptions","organizations_url":"https://api.github.com/users/gspice/orgs","repos_url":"https://api.github.com/users/gspice/repos","events_url":"https://api.github.com/users/gspice/events{/privacy}","received_events_url":"https://api.github.com/users/gspice/received_events","type":"User","site_admin":false},"created_at":"2017-07-11T16:53:52Z","updated_at":"2017-07-11T16:53:52Z","body":"@DrewAPicture This is working nicely!  I tested with a partial credit use, abandoning a cart and returning and all processed successfully.   Any chance we can get this update out today??"}}
{"actor":{"display_login":"gspice"}}