{"action":"created","issue":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/1401","repository_url":"https://api.github.com/repos/guardian/membership-frontend","labels_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1401/labels{/name}","comments_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1401/comments","events_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1401/events","html_url":"https://github.com/guardian/membership-frontend/pull/1401","id":193734474,"number":1401,"title":"Put extra card info to Zuora","user":{"login":"paulbrown1982","id":1515970,"avatar_url":"https://avatars.githubusercontent.com/u/1515970?v=3","gravatar_id":"","url":"https://api.github.com/users/paulbrown1982","html_url":"https://github.com/paulbrown1982","followers_url":"https://api.github.com/users/paulbrown1982/followers","following_url":"https://api.github.com/users/paulbrown1982/following{/other_user}","gists_url":"https://api.github.com/users/paulbrown1982/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbrown1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbrown1982/subscriptions","organizations_url":"https://api.github.com/users/paulbrown1982/orgs","repos_url":"https://api.github.com/users/paulbrown1982/repos","events_url":"https://api.github.com/users/paulbrown1982/events{/privacy}","received_events_url":"https://api.github.com/users/paulbrown1982/received_events","type":"User","site_admin":false},"labels":[{"id":160547157,"url":"https://api.github.com/repos/guardian/membership-frontend/labels/Seen-on-PROD","name":"Seen-on-PROD","color":"bfe5bf","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-06T10:24:44Z","updated_at":"2016-12-07T15:18:41Z","closed_at":"2016-12-07T15:11:20Z","pull_request":{"url":"https://api.github.com/repos/guardian/membership-frontend/pulls/1401","html_url":"https://github.com/guardian/membership-frontend/pull/1401","diff_url":"https://github.com/guardian/membership-frontend/pull/1401.diff","patch_url":"https://github.com/guardian/membership-frontend/pull/1401.patch"},"body":"- Add extra card info to Zuora enabling us to trigger 'your card is due for renewal comms'. Leveraging membership common: https://github.com/guardian/membership-common/pull/368 and https://github.com/guardian/membership-common/pull/366. For: https://trello.com/c/Hyjpb7eR/90-add-card-number-and-expiry-date-to-zuora-paymentmethod\r\n- Also add the request IP address and the request IP country to the Subscription. This is to help with Tax reporting for VAT: https://trello.com/c/g6RgAqPE/75-new-tax-requirements\r\n\r\nThis lines membership-frontend up with subscriptions-frontend:\r\n\r\n- https://github.com/guardian/subscriptions-frontend/pull/720 and https://github.com/guardian/subscriptions-frontend/pull/715\r\n\r\nThese are UAT screenshots, using the [Stripe test card](https://stripe.com/docs/testing): 4012 8888 8888 1881\r\n\r\n![picture 326](https://cloud.githubusercontent.com/assets/1515970/20921889/13fb2886-bb9e-11e6-9cba-6213a59e59f6.png)\r\n![picture 327](https://cloud.githubusercontent.com/assets/1515970/20921897/176430c6-bb9e-11e6-8f83-b0d850023d34.png)\r\n\r\nFor Membership sub: A-S00066042 - https://apisandbox-api.zuora.com/rest/v1/payment-methods/credit-cards/accounts/2c92c0f858aa38af0158d39f3b2c209b\r\n```\r\n{\r\n  \"creditCards\": [\r\n    {\r\n      \"id\": \"2c92c0f858aa38af0158d39f3b42209d\",\r\n      \"defaultPaymentMethod\": true,\r\n      \"cardType\": \"Visa\",\r\n      \"cardNumber\": \"1881\",\r\n      \"expirationMonth\": 4,\r\n      \"expirationYear\": 2019,\r\n      \"cardHolderInfo\": {\r\n        \"cardHolderName\": null,\r\n        \"addressLine1\": null,\r\n        \"addressLine2\": null,\r\n        \"city\": null,\r\n        \"state\": null,\r\n        \"zipCode\": null,\r\n        \"country\": \"United States\",\r\n        \"phone\": null,\r\n        \"email\": null\r\n      }\r\n    }\r\n  ],\r\n  \"success\": true\r\n}\r\n```\r\n\r\n\r\ncc @rtyley @Ap0c @svillafe @rupertbates @JuliaBellis "},"comment":{"url":"https://api.github.com/repos/guardian/membership-frontend/issues/comments/265474366","html_url":"https://github.com/guardian/membership-frontend/pull/1401#issuecomment-265474366","issue_url":"https://api.github.com/repos/guardian/membership-frontend/issues/1401","id":265474366,"user":{"login":"prout-bot","id":8896019,"avatar_url":"https://avatars.githubusercontent.com/u/8896019?v=3","gravatar_id":"","url":"https://api.github.com/users/prout-bot","html_url":"https://github.com/prout-bot","followers_url":"https://api.github.com/users/prout-bot/followers","following_url":"https://api.github.com/users/prout-bot/following{/other_user}","gists_url":"https://api.github.com/users/prout-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/prout-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prout-bot/subscriptions","organizations_url":"https://api.github.com/users/prout-bot/orgs","repos_url":"https://api.github.com/users/prout-bot/repos","events_url":"https://api.github.com/users/prout-bot/events{/privacy}","received_events_url":"https://api.github.com/users/prout-bot/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T15:18:41Z","updated_at":"2016-12-07T15:18:41Z","body":"Seen on [PROD](https://membership.theguardian.com/) (merged by @paulbrown1982 7 minutes and 21 seconds ago) Please check your changes!"}}
{"actor":{"display_login":"prout-bot"}}