{"action":"created","comment":{"url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/comments/170127477","pull_request_review_id":98768596,"id":170127477,"diff_hunk":"@@ -188,6 +188,22 @@ The response will be similar to the following. Note that this is just a simulati\n )\n ```\n \n+### Shopper Tokens\n+\n+If you are using our [Drop In Gift Card](https://www.lightrail.com/docs/#drop-in-gift-cards/quickstart) solution, you can use this library to generate shopper tokens for transacting against a customer's account. \n+\n+A shopper token is generated from a a unique customer identifier from your system: this is the same `shopperId` or contact `userSuppliedId` you would have used when creating the Contact. If you haven't yet created a Contact record, the function will create one for you automatically based on this ID. (Note that if you want extra information to be associated with the Contact, like their name or email address, you should [create the contact](#handling-contacts) first.)","path":"README.md","position":17,"original_position":17,"commit_id":"5ca9753ab7eabee3a2edfc8390e80f7db886c2f0","original_commit_id":"5ca9753ab7eabee3a2edfc8390e80f7db886c2f0","user":{"login":"Tim-Jordison","id":16841451,"avatar_url":"https://avatars2.githubusercontent.com/u/16841451?v=4","gravatar_id":"","url":"https://api.github.com/users/Tim-Jordison","html_url":"https://github.com/Tim-Jordison","followers_url":"https://api.github.com/users/Tim-Jordison/followers","following_url":"https://api.github.com/users/Tim-Jordison/following{/other_user}","gists_url":"https://api.github.com/users/Tim-Jordison/gists{/gist_id}","starred_url":"https://api.github.com/users/Tim-Jordison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tim-Jordison/subscriptions","organizations_url":"https://api.github.com/users/Tim-Jordison/orgs","repos_url":"https://api.github.com/users/Tim-Jordison/repos","events_url":"https://api.github.com/users/Tim-Jordison/events{/privacy}","received_events_url":"https://api.github.com/users/Tim-Jordison/received_events","type":"User","site_admin":false},"body":"Tiny bit confused by \"this is the same `shopperId` or ...\". Would someone have seen the term `shopperId` before? Just curious if this should be more along the lines of \"A shopper token is generated from a unique customer identifier from your system which we'll refer to as the shopperId. When using a shopperToken it'll create a Contact record using the `shopperId` as the Contact object's `userSuppliedId`...\r\n\r\nThere's also an extra a in the sentence. \"from a a unique\".","created_at":"2018-02-22T23:33:49Z","updated_at":"2018-02-22T23:33:49Z","html_url":"https://github.com/Giftbit/lightrail-client-php/pull/6#discussion_r170127477","pull_request_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/comments/170127477"},"html":{"href":"https://github.com/Giftbit/lightrail-client-php/pull/6#discussion_r170127477"},"pull_request":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6","id":170895250,"html_url":"https://github.com/Giftbit/lightrail-client-php/pull/6","diff_url":"https://github.com/Giftbit/lightrail-client-php/pull/6.diff","patch_url":"https://github.com/Giftbit/lightrail-client-php/pull/6.patch","issue_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/6","number":6,"state":"open","locked":false,"title":"Update readme: explain shopper tokens","user":{"login":"tjukes","id":13614984,"avatar_url":"https://avatars2.githubusercontent.com/u/13614984?v=4","gravatar_id":"","url":"https://api.github.com/users/tjukes","html_url":"https://github.com/tjukes","followers_url":"https://api.github.com/users/tjukes/followers","following_url":"https://api.github.com/users/tjukes/following{/other_user}","gists_url":"https://api.github.com/users/tjukes/gists{/gist_id}","starred_url":"https://api.github.com/users/tjukes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjukes/subscriptions","organizations_url":"https://api.github.com/users/tjukes/orgs","repos_url":"https://api.github.com/users/tjukes/repos","events_url":"https://api.github.com/users/tjukes/events{/privacy}","received_events_url":"https://api.github.com/users/tjukes/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-22T23:27:42Z","updated_at":"2018-02-22T23:33:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7d2723540f8be4eb0cce05ce1eef454cd39bc55","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6/commits","review_comments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6/comments","review_comment_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/6/comments","statuses_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/statuses/5ca9753ab7eabee3a2edfc8390e80f7db886c2f0","head":{"label":"Giftbit:update_readme_shopper_tokens","ref":"update_readme_shopper_tokens","sha":"5ca9753ab7eabee3a2edfc8390e80f7db886c2f0","user":{"login":"Giftbit","id":16840735,"avatar_url":"https://avatars0.githubusercontent.com/u/16840735?v=4","gravatar_id":"","url":"https://api.github.com/users/Giftbit","html_url":"https://github.com/Giftbit","followers_url":"https://api.github.com/users/Giftbit/followers","following_url":"https://api.github.com/users/Giftbit/following{/other_user}","gists_url":"https://api.github.com/users/Giftbit/gists{/gist_id}","starred_url":"https://api.github.com/users/Giftbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giftbit/subscriptions","organizations_url":"https://api.github.com/users/Giftbit/orgs","repos_url":"https://api.github.com/users/Giftbit/repos","events_url":"https://api.github.com/users/Giftbit/events{/privacy}","received_events_url":"https://api.github.com/users/Giftbit/received_events","type":"Organization","site_admin":false},"repo":{"id":111486254,"name":"lightrail-client-php","full_name":"Giftbit/lightrail-client-php","owner":{"login":"Giftbit","id":16840735,"avatar_url":"https://avatars0.githubusercontent.com/u/16840735?v=4","gravatar_id":"","url":"https://api.github.com/users/Giftbit","html_url":"https://github.com/Giftbit","followers_url":"https://api.github.com/users/Giftbit/followers","following_url":"https://api.github.com/users/Giftbit/following{/other_user}","gists_url":"https://api.github.com/users/Giftbit/gists{/gist_id}","starred_url":"https://api.github.com/users/Giftbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giftbit/subscriptions","organizations_url":"https://api.github.com/users/Giftbit/orgs","repos_url":"https://api.github.com/users/Giftbit/repos","events_url":"https://api.github.com/users/Giftbit/events{/privacy}","received_events_url":"https://api.github.com/users/Giftbit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Giftbit/lightrail-client-php","description":"A PHP client for Lightrail.","fork":false,"url":"https://api.github.com/repos/Giftbit/lightrail-client-php","forks_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/forks","keys_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/teams","hooks_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/hooks","issue_events_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/events","assignees_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/tags","blobs_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/languages","stargazers_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/stargazers","contributors_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/contributors","subscribers_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/subscribers","subscription_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/subscription","commits_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/merges","archive_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/downloads","issues_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/labels{/name}","releases_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/deployments","created_at":"2017-11-21T02:08:26Z","updated_at":"2017-12-12T04:42:19Z","pushed_at":"2018-02-22T23:27:42Z","git_url":"git://github.com/Giftbit/lightrail-client-php.git","ssh_url":"git@github.com:Giftbit/lightrail-client-php.git","clone_url":"https://github.com/Giftbit/lightrail-client-php.git","svn_url":"https://github.com/Giftbit/lightrail-client-php","homepage":"https://www.lightrail.com/","size":55,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Giftbit:master","ref":"master","sha":"438af67af2feae06131510692b6c45577017d32a","user":{"login":"Giftbit","id":16840735,"avatar_url":"https://avatars0.githubusercontent.com/u/16840735?v=4","gravatar_id":"","url":"https://api.github.com/users/Giftbit","html_url":"https://github.com/Giftbit","followers_url":"https://api.github.com/users/Giftbit/followers","following_url":"https://api.github.com/users/Giftbit/following{/other_user}","gists_url":"https://api.github.com/users/Giftbit/gists{/gist_id}","starred_url":"https://api.github.com/users/Giftbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giftbit/subscriptions","organizations_url":"https://api.github.com/users/Giftbit/orgs","repos_url":"https://api.github.com/users/Giftbit/repos","events_url":"https://api.github.com/users/Giftbit/events{/privacy}","received_events_url":"https://api.github.com/users/Giftbit/received_events","type":"Organization","site_admin":false},"repo":{"id":111486254,"name":"lightrail-client-php","full_name":"Giftbit/lightrail-client-php","owner":{"login":"Giftbit","id":16840735,"avatar_url":"https://avatars0.githubusercontent.com/u/16840735?v=4","gravatar_id":"","url":"https://api.github.com/users/Giftbit","html_url":"https://github.com/Giftbit","followers_url":"https://api.github.com/users/Giftbit/followers","following_url":"https://api.github.com/users/Giftbit/following{/other_user}","gists_url":"https://api.github.com/users/Giftbit/gists{/gist_id}","starred_url":"https://api.github.com/users/Giftbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Giftbit/subscriptions","organizations_url":"https://api.github.com/users/Giftbit/orgs","repos_url":"https://api.github.com/users/Giftbit/repos","events_url":"https://api.github.com/users/Giftbit/events{/privacy}","received_events_url":"https://api.github.com/users/Giftbit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Giftbit/lightrail-client-php","description":"A PHP client for Lightrail.","fork":false,"url":"https://api.github.com/repos/Giftbit/lightrail-client-php","forks_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/forks","keys_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/teams","hooks_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/hooks","issue_events_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/events{/number}","events_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/events","assignees_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/assignees{/user}","branches_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/branches{/branch}","tags_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/tags","blobs_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/statuses/{sha}","languages_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/languages","stargazers_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/stargazers","contributors_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/contributors","subscribers_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/subscribers","subscription_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/subscription","commits_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/contents/{+path}","compare_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/merges","archive_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/downloads","issues_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues{/number}","pulls_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls{/number}","milestones_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/milestones{/number}","notifications_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/labels{/name}","releases_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/releases{/id}","deployments_url":"https://api.github.com/repos/Giftbit/lightrail-client-php/deployments","created_at":"2017-11-21T02:08:26Z","updated_at":"2017-12-12T04:42:19Z","pushed_at":"2018-02-22T23:27:42Z","git_url":"git://github.com/Giftbit/lightrail-client-php.git","ssh_url":"git@github.com:Giftbit/lightrail-client-php.git","clone_url":"https://github.com/Giftbit/lightrail-client-php.git","svn_url":"https://github.com/Giftbit/lightrail-client-php","homepage":"https://www.lightrail.com/","size":55,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6"},"html":{"href":"https://github.com/Giftbit/lightrail-client-php/pull/6"},"issue":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/6"},"comments":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/Giftbit/lightrail-client-php/statuses/5ca9753ab7eabee3a2edfc8390e80f7db886c2f0"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Tim-Jordison"}}