{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/browser-payment-api/issues/145","repository_url":"https://api.github.com/repos/w3c/browser-payment-api","labels_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/145/comments","events_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/145/events","html_url":"https://github.com/w3c/browser-payment-api/issues/145","id":149561621,"number":145,"title":"Support for gift cards and discount codes","user":{"login":"andrewpaliga","id":2962326,"avatar_url":"https://avatars.githubusercontent.com/u/2962326?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewpaliga","html_url":"https://github.com/andrewpaliga","followers_url":"https://api.github.com/users/andrewpaliga/followers","following_url":"https://api.github.com/users/andrewpaliga/following{/other_user}","gists_url":"https://api.github.com/users/andrewpaliga/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewpaliga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewpaliga/subscriptions","organizations_url":"https://api.github.com/users/andrewpaliga/orgs","repos_url":"https://api.github.com/users/andrewpaliga/repos","events_url":"https://api.github.com/users/andrewpaliga/events{/privacy}","received_events_url":"https://api.github.com/users/andrewpaliga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-19T19:41:53Z","updated_at":"2016-04-20T21:15:49Z","closed_at":null,"body":"An important part of Shopify's checkout is the ability for the user to enter a discount code and or gift card at any point during the checkout (shown below). Once the discount or gift card code is verified the checkout balance is adjusted accordingly.\r\n\r\n**Step 1 - shipping**\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2962326/14564424/7deaf7c0-02f4-11e6-87be-a4f37ea2bef1.png\" width=\"300px\"/>\r\n\r\n**Step 2 - delivery**\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2962326/14564586/3411760a-02f5-11e6-94f3-ce63dbce2985.png\" width=\"300px\"/>\r\n\r\n**Step 3 - payment**\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2962326/14564591/38c262b8-02f5-11e6-99ae-7d8aa1ea1dbd.png\" width=\"300px\"/>\r\n\r\nThe majority of checkout on the web support gift and promotional codes as well. Examples from **Amazon** and **Nike** below.\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2962326/14652786/eeadbfa4-0643-11e6-9812-fc8c898b9519.png\" width=\"300px\"/>\r\n\r\n<img src=\"https://cloud.githubusercontent.com/assets/2962326/14652901/7844096c-0644-11e6-8ec1-d87850d6e3ca.png\" width=\"300px\"/>\r\n\r\nWhat is the strategy for accepting gift card and discount codes in the payments api? Will this be the responsibility of the user agent or the payment app? \r\n\r\nThere has been [related discussion](https://github.com/w3c/browser-payment-api/issues/1) on the ability for the merchant to require the collection of certain shipping and billing information. This is similar but gift card and discount codes are more complex as they require an additional verification step to be carried out by the merchant. This verification could be accomplished through a callback to the merchant where they would be responsible for any updates.\r\n\r\n**Note:** It’s more common to include gift card and discount entry in the payments step of checkout, however, we have experienced better cart conversation rates by making the option available throughout our checkout experience."},"comment":{"url":"https://api.github.com/repos/w3c/browser-payment-api/issues/comments/212608260","html_url":"https://github.com/w3c/browser-payment-api/issues/145#issuecomment-212608260","issue_url":"https://api.github.com/repos/w3c/browser-payment-api/issues/145","id":212608260,"user":{"login":"andrewpaliga","id":2962326,"avatar_url":"https://avatars.githubusercontent.com/u/2962326?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewpaliga","html_url":"https://github.com/andrewpaliga","followers_url":"https://api.github.com/users/andrewpaliga/followers","following_url":"https://api.github.com/users/andrewpaliga/following{/other_user}","gists_url":"https://api.github.com/users/andrewpaliga/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewpaliga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewpaliga/subscriptions","organizations_url":"https://api.github.com/users/andrewpaliga/orgs","repos_url":"https://api.github.com/users/andrewpaliga/repos","events_url":"https://api.github.com/users/andrewpaliga/events{/privacy}","received_events_url":"https://api.github.com/users/andrewpaliga/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T21:15:48Z","updated_at":"2016-04-20T21:15:48Z","body":"> Should we allow websites to request data that the user agent doesn't necessarily understand? \r\nThis type of flexibility would certainly help us implement the spec as a replacement to our current checkout."}}