{"action":"created","issue":{"url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/685","repository_url":"https://api.github.com/repos/jaymedavis/stripe.net","labels_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/685/comments","events_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/685/events","html_url":"https://github.com/jaymedavis/stripe.net/issues/685","id":191970390,"number":685,"title":"Set (Cancel_at_period_end) on Subscription Create.","user":{"login":"GautamNagraj","id":23188489,"avatar_url":"https://avatars.githubusercontent.com/u/23188489?v=3","gravatar_id":"","url":"https://api.github.com/users/GautamNagraj","html_url":"https://github.com/GautamNagraj","followers_url":"https://api.github.com/users/GautamNagraj/followers","following_url":"https://api.github.com/users/GautamNagraj/following{/other_user}","gists_url":"https://api.github.com/users/GautamNagraj/gists{/gist_id}","starred_url":"https://api.github.com/users/GautamNagraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GautamNagraj/subscriptions","organizations_url":"https://api.github.com/users/GautamNagraj/orgs","repos_url":"https://api.github.com/users/GautamNagraj/repos","events_url":"https://api.github.com/users/GautamNagraj/events{/privacy}","received_events_url":"https://api.github.com/users/GautamNagraj/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-28T10:33:25Z","updated_at":"2016-11-29T21:08:12Z","closed_at":"2016-11-29T21:08:12Z","body":"We use stripe for payment in our project and it's functionality is also better than other. \r\n\r\nWe need to set ( Cancel_at_period_end : true or false ) at the subscription create and subscription update time. \r\n\r\nHow it's possible ?"},"comment":{"url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/comments/263699208","html_url":"https://github.com/jaymedavis/stripe.net/issues/685#issuecomment-263699208","issue_url":"https://api.github.com/repos/jaymedavis/stripe.net/issues/685","id":263699208,"user":{"login":"jaymedavis","id":171522,"avatar_url":"https://avatars.githubusercontent.com/u/171522?v=3","gravatar_id":"","url":"https://api.github.com/users/jaymedavis","html_url":"https://github.com/jaymedavis","followers_url":"https://api.github.com/users/jaymedavis/followers","following_url":"https://api.github.com/users/jaymedavis/following{/other_user}","gists_url":"https://api.github.com/users/jaymedavis/gists{/gist_id}","starred_url":"https://api.github.com/users/jaymedavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaymedavis/subscriptions","organizations_url":"https://api.github.com/users/jaymedavis/orgs","repos_url":"https://api.github.com/users/jaymedavis/repos","events_url":"https://api.github.com/users/jaymedavis/events{/privacy}","received_events_url":"https://api.github.com/users/jaymedavis/received_events","type":"User","site_admin":false},"created_at":"2016-11-29T21:08:12Z","updated_at":"2016-11-29T21:08:12Z","body":"If you want to cancel the subscription on period end, you need to call the subscription services cancel method. You will need to pass that your customer and subscription id, and then use the cancelAtPeriodEnd flag (set it to true). You can do this even when you create your sub/customer - just don't forget the flag. 👍 "}}
{"actor":{"display_login":"jaymedavis"}}