{"action":"closed","number":183,"pull_request":{"url":"https://api.github.com/repos/peterkeen/payola/pulls/183","id":48539727,"html_url":"https://github.com/peterkeen/payola/pull/183","diff_url":"https://github.com/peterkeen/payola/pull/183.diff","patch_url":"https://github.com/peterkeen/payola/pull/183.patch","issue_url":"https://api.github.com/repos/peterkeen/payola/issues/183","number":183,"state":"closed","locked":false,"title":"Take optional stripe_customer_id when creating a sale","user":{"login":"jharbert","id":753580,"avatar_url":"https://avatars.githubusercontent.com/u/753580?v=3","gravatar_id":"","url":"https://api.github.com/users/jharbert","html_url":"https://github.com/jharbert","followers_url":"https://api.github.com/users/jharbert/followers","following_url":"https://api.github.com/users/jharbert/following{/other_user}","gists_url":"https://api.github.com/users/jharbert/gists{/gist_id}","starred_url":"https://api.github.com/users/jharbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharbert/subscriptions","organizations_url":"https://api.github.com/users/jharbert/orgs","repos_url":"https://api.github.com/users/jharbert/repos","events_url":"https://api.github.com/users/jharbert/events{/privacy}","received_events_url":"https://api.github.com/users/jharbert/received_events","type":"User","site_admin":false},"body":"In the same vein as #170 by @nfm, this change allows a `stripe_customer_id` to be passed through and attached and processed on a sale object.  This allows a user to make multiple purchases without entering credit card information.\r\n\r\nI did need to add ` Payola.secret_key` inside of `CreateSubscription` (which was missing from #170, maybe it's not needed if configured a certain way) as well as use it in `CreateSale`.","created_at":"2015-10-23T03:48:57Z","updated_at":"2016-03-11T18:34:51Z","closed_at":"2016-03-11T18:34:51Z","merged_at":"2016-03-11T18:34:51Z","merge_commit_sha":"db4295a9349689c06009331607a0ca0d7047bcd5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/peterkeen/payola/pulls/183/commits","review_comments_url":"https://api.github.com/repos/peterkeen/payola/pulls/183/comments","review_comment_url":"https://api.github.com/repos/peterkeen/payola/pulls/comments{/number}","comments_url":"https://api.github.com/repos/peterkeen/payola/issues/183/comments","statuses_url":"https://api.github.com/repos/peterkeen/payola/statuses/ee84849825c89bca8d25a4c634a4acd2bef5d6d2","head":{"label":"jharbert:jh/feature/take-stripe-customer-id-on-sale","ref":"jh/feature/take-stripe-customer-id-on-sale","sha":"ee84849825c89bca8d25a4c634a4acd2bef5d6d2","user":{"login":"jharbert","id":753580,"avatar_url":"https://avatars.githubusercontent.com/u/753580?v=3","gravatar_id":"","url":"https://api.github.com/users/jharbert","html_url":"https://github.com/jharbert","followers_url":"https://api.github.com/users/jharbert/followers","following_url":"https://api.github.com/users/jharbert/following{/other_user}","gists_url":"https://api.github.com/users/jharbert/gists{/gist_id}","starred_url":"https://api.github.com/users/jharbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharbert/subscriptions","organizations_url":"https://api.github.com/users/jharbert/orgs","repos_url":"https://api.github.com/users/jharbert/repos","events_url":"https://api.github.com/users/jharbert/events{/privacy}","received_events_url":"https://api.github.com/users/jharbert/received_events","type":"User","site_admin":false},"repo":{"id":43381601,"name":"payola","full_name":"jharbert/payola","owner":{"login":"jharbert","id":753580,"avatar_url":"https://avatars.githubusercontent.com/u/753580?v=3","gravatar_id":"","url":"https://api.github.com/users/jharbert","html_url":"https://github.com/jharbert","followers_url":"https://api.github.com/users/jharbert/followers","following_url":"https://api.github.com/users/jharbert/following{/other_user}","gists_url":"https://api.github.com/users/jharbert/gists{/gist_id}","starred_url":"https://api.github.com/users/jharbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jharbert/subscriptions","organizations_url":"https://api.github.com/users/jharbert/orgs","repos_url":"https://api.github.com/users/jharbert/repos","events_url":"https://api.github.com/users/jharbert/events{/privacy}","received_events_url":"https://api.github.com/users/jharbert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jharbert/payola","description":"Drop-in Rails engine for accepting payments with Stripe","fork":true,"url":"https://api.github.com/repos/jharbert/payola","forks_url":"https://api.github.com/repos/jharbert/payola/forks","keys_url":"https://api.github.com/repos/jharbert/payola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jharbert/payola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jharbert/payola/teams","hooks_url":"https://api.github.com/repos/jharbert/payola/hooks","issue_events_url":"https://api.github.com/repos/jharbert/payola/issues/events{/number}","events_url":"https://api.github.com/repos/jharbert/payola/events","assignees_url":"https://api.github.com/repos/jharbert/payola/assignees{/user}","branches_url":"https://api.github.com/repos/jharbert/payola/branches{/branch}","tags_url":"https://api.github.com/repos/jharbert/payola/tags","blobs_url":"https://api.github.com/repos/jharbert/payola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jharbert/payola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jharbert/payola/git/refs{/sha}","trees_url":"https://api.github.com/repos/jharbert/payola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jharbert/payola/statuses/{sha}","languages_url":"https://api.github.com/repos/jharbert/payola/languages","stargazers_url":"https://api.github.com/repos/jharbert/payola/stargazers","contributors_url":"https://api.github.com/repos/jharbert/payola/contributors","subscribers_url":"https://api.github.com/repos/jharbert/payola/subscribers","subscription_url":"https://api.github.com/repos/jharbert/payola/subscription","commits_url":"https://api.github.com/repos/jharbert/payola/commits{/sha}","git_commits_url":"https://api.github.com/repos/jharbert/payola/git/commits{/sha}","comments_url":"https://api.github.com/repos/jharbert/payola/comments{/number}","issue_comment_url":"https://api.github.com/repos/jharbert/payola/issues/comments{/number}","contents_url":"https://api.github.com/repos/jharbert/payola/contents/{+path}","compare_url":"https://api.github.com/repos/jharbert/payola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jharbert/payola/merges","archive_url":"https://api.github.com/repos/jharbert/payola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jharbert/payola/downloads","issues_url":"https://api.github.com/repos/jharbert/payola/issues{/number}","pulls_url":"https://api.github.com/repos/jharbert/payola/pulls{/number}","milestones_url":"https://api.github.com/repos/jharbert/payola/milestones{/number}","notifications_url":"https://api.github.com/repos/jharbert/payola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jharbert/payola/labels{/name}","releases_url":"https://api.github.com/repos/jharbert/payola/releases{/id}","deployments_url":"https://api.github.com/repos/jharbert/payola/deployments","created_at":"2015-09-29T17:05:04Z","updated_at":"2015-09-29T17:05:06Z","pushed_at":"2015-10-23T03:41:57Z","git_url":"git://github.com/jharbert/payola.git","ssh_url":"git@github.com:jharbert/payola.git","clone_url":"https://github.com/jharbert/payola.git","svn_url":"https://github.com/jharbert/payola","homepage":"http://www.payola.io","size":703,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"peterkeen:master","ref":"master","sha":"b1b10114b84af58c38b113d1d314d38ef7af909b","user":{"login":"peterkeen","id":13977,"avatar_url":"https://avatars.githubusercontent.com/u/13977?v=3","gravatar_id":"","url":"https://api.github.com/users/peterkeen","html_url":"https://github.com/peterkeen","followers_url":"https://api.github.com/users/peterkeen/followers","following_url":"https://api.github.com/users/peterkeen/following{/other_user}","gists_url":"https://api.github.com/users/peterkeen/gists{/gist_id}","starred_url":"https://api.github.com/users/peterkeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterkeen/subscriptions","organizations_url":"https://api.github.com/users/peterkeen/orgs","repos_url":"https://api.github.com/users/peterkeen/repos","events_url":"https://api.github.com/users/peterkeen/events{/privacy}","received_events_url":"https://api.github.com/users/peterkeen/received_events","type":"User","site_admin":false},"repo":{"id":24691293,"name":"payola","full_name":"peterkeen/payola","owner":{"login":"peterkeen","id":13977,"avatar_url":"https://avatars.githubusercontent.com/u/13977?v=3","gravatar_id":"","url":"https://api.github.com/users/peterkeen","html_url":"https://github.com/peterkeen","followers_url":"https://api.github.com/users/peterkeen/followers","following_url":"https://api.github.com/users/peterkeen/following{/other_user}","gists_url":"https://api.github.com/users/peterkeen/gists{/gist_id}","starred_url":"https://api.github.com/users/peterkeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterkeen/subscriptions","organizations_url":"https://api.github.com/users/peterkeen/orgs","repos_url":"https://api.github.com/users/peterkeen/repos","events_url":"https://api.github.com/users/peterkeen/events{/privacy}","received_events_url":"https://api.github.com/users/peterkeen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterkeen/payola","description":"Drop-in Rails engine for accepting payments with Stripe","fork":false,"url":"https://api.github.com/repos/peterkeen/payola","forks_url":"https://api.github.com/repos/peterkeen/payola/forks","keys_url":"https://api.github.com/repos/peterkeen/payola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterkeen/payola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterkeen/payola/teams","hooks_url":"https://api.github.com/repos/peterkeen/payola/hooks","issue_events_url":"https://api.github.com/repos/peterkeen/payola/issues/events{/number}","events_url":"https://api.github.com/repos/peterkeen/payola/events","assignees_url":"https://api.github.com/repos/peterkeen/payola/assignees{/user}","branches_url":"https://api.github.com/repos/peterkeen/payola/branches{/branch}","tags_url":"https://api.github.com/repos/peterkeen/payola/tags","blobs_url":"https://api.github.com/repos/peterkeen/payola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterkeen/payola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterkeen/payola/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterkeen/payola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterkeen/payola/statuses/{sha}","languages_url":"https://api.github.com/repos/peterkeen/payola/languages","stargazers_url":"https://api.github.com/repos/peterkeen/payola/stargazers","contributors_url":"https://api.github.com/repos/peterkeen/payola/contributors","subscribers_url":"https://api.github.com/repos/peterkeen/payola/subscribers","subscription_url":"https://api.github.com/repos/peterkeen/payola/subscription","commits_url":"https://api.github.com/repos/peterkeen/payola/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterkeen/payola/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterkeen/payola/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterkeen/payola/issues/comments{/number}","contents_url":"https://api.github.com/repos/peterkeen/payola/contents/{+path}","compare_url":"https://api.github.com/repos/peterkeen/payola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterkeen/payola/merges","archive_url":"https://api.github.com/repos/peterkeen/payola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterkeen/payola/downloads","issues_url":"https://api.github.com/repos/peterkeen/payola/issues{/number}","pulls_url":"https://api.github.com/repos/peterkeen/payola/pulls{/number}","milestones_url":"https://api.github.com/repos/peterkeen/payola/milestones{/number}","notifications_url":"https://api.github.com/repos/peterkeen/payola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterkeen/payola/labels{/name}","releases_url":"https://api.github.com/repos/peterkeen/payola/releases{/id}","deployments_url":"https://api.github.com/repos/peterkeen/payola/deployments","created_at":"2014-10-01T19:00:40Z","updated_at":"2016-03-04T18:02:19Z","pushed_at":"2016-03-11T18:34:51Z","git_url":"git://github.com/peterkeen/payola.git","ssh_url":"git@github.com:peterkeen/payola.git","clone_url":"https://github.com/peterkeen/payola.git","svn_url":"https://github.com/peterkeen/payola","homepage":"http://www.payola.io","size":587,"stargazers_count":635,"watchers_count":635,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":75,"mirror_url":null,"open_issues_count":41,"forks":75,"open_issues":41,"watchers":635,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/peterkeen/payola/pulls/183"},"html":{"href":"https://github.com/peterkeen/payola/pull/183"},"issue":{"href":"https://api.github.com/repos/peterkeen/payola/issues/183"},"comments":{"href":"https://api.github.com/repos/peterkeen/payola/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/peterkeen/payola/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/peterkeen/payola/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/peterkeen/payola/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/peterkeen/payola/statuses/ee84849825c89bca8d25a4c634a4acd2bef5d6d2"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"peterkeen","id":13977,"avatar_url":"https://avatars.githubusercontent.com/u/13977?v=3","gravatar_id":"","url":"https://api.github.com/users/peterkeen","html_url":"https://github.com/peterkeen","followers_url":"https://api.github.com/users/peterkeen/followers","following_url":"https://api.github.com/users/peterkeen/following{/other_user}","gists_url":"https://api.github.com/users/peterkeen/gists{/gist_id}","starred_url":"https://api.github.com/users/peterkeen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterkeen/subscriptions","organizations_url":"https://api.github.com/users/peterkeen/orgs","repos_url":"https://api.github.com/users/peterkeen/repos","events_url":"https://api.github.com/users/peterkeen/events{/privacy}","received_events_url":"https://api.github.com/users/peterkeen/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":45,"deletions":23,"changed_files":4}}