{"action":"opened","number":118,"pull_request":{"url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118","id":53628614,"html_url":"https://github.com/django-oscar/django-oscar-paypal/pull/118","diff_url":"https://github.com/django-oscar/django-oscar-paypal/pull/118.diff","patch_url":"https://github.com/django-oscar/django-oscar-paypal/pull/118.patch","issue_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/118","number":118,"state":"open","locked":false,"title":"`PNREF` Should Be Unique, Not `PPREF`. ","user":{"login":"patgmiller","id":3914379,"avatar_url":"https://avatars.githubusercontent.com/u/3914379?v=3","gravatar_id":"","url":"https://api.github.com/users/patgmiller","html_url":"https://github.com/patgmiller","followers_url":"https://api.github.com/users/patgmiller/followers","following_url":"https://api.github.com/users/patgmiller/following{/other_user}","gists_url":"https://api.github.com/users/patgmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/patgmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patgmiller/subscriptions","organizations_url":"https://api.github.com/users/patgmiller/orgs","repos_url":"https://api.github.com/users/patgmiller/repos","events_url":"https://api.github.com/users/patgmiller/events{/privacy}","received_events_url":"https://api.github.com/users/patgmiller/received_events","type":"User","site_admin":false},"body":"According to latest version of api results it appears that `ppref` is not a unique value. When present it will be a reference to the original PayPal Transaction Id, not the Payflow Gateway Transaction. I contacted their customer support regarding this and they confirmed that. See details below. \r\n\r\nI also included an optional configuration to include other gatway name value paris, like shipping options and such. \r\n\r\n```\r\nQuestion: When I try to void a transaction through the API it is returning a duplicate PPREF value. Is that supposed to happen? See request and response details below for Authorization and Void transactions. \r\n\r\npaypal.payflow:INFO [gateway.py:188] Performing Authorize transaction (trxtype=A)\r\npaypal.payflow:DEBUG [gateway.py:193] Raw request: VENDOR=squattypotty&TRXTYPE=A&ZIP=84770&LASTNAME=Last&COMMENT1=157693&EXPDATE=0320&COMMENT2=&CURRENCY=USD&STATE=&STREET=123+Test+St&USER=XXXX&CVV2=435&TENDER=C&ACCT=4111111111111111&EMAIL=demo%40demo.com&CITY=St+George&FIRSTNAME=Tester&PHONENUM=&PWD=XXXX&BILLTOCOUNTRY=US&PARTNER=PayPal&AMT=33.00\r\npaypal.payflow:DEBUG [gateway.py:194] Raw response: RESULT=0&PNREF=B70P8AC905D5&RESPMSG=Approved&AUTHCODE=111111&AVSADDR=Y&AVSZIP=Y&CVV2MATCH=Y&PPREF=0WS4398121018753N&CORRELATIONID=5fc4393f526e9&IAVS=N\r\n\r\npaypal.payflow:INFO [gateway.py:188] Performing Void transaction (trxtype=V)\r\npaypal.payflow:DEBUG [gateway.py:193] Raw request: PWD=XXXX&VENDOR=squattypotty&USER=XXXX&PARTNER=PayPal&ORIGID=B70P8AC905D5&COMMENT1=157693&TRXTYPE=V\r\npaypal.payflow:DEBUG [gateway.py:194] Raw response: RESULT=0&PNREF=B10P8C67E5C1&RESPMSG=Approved&PPREF=0WS4398121018753N&CORRELATIONID=e6cd0478b6736\r\n```\r\n\r\n```","created_at":"2015-12-14T22:02:15Z","updated_at":"2015-12-14T22:02:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118/commits","review_comments_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118/comments","review_comment_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/118/comments","statuses_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/statuses/89553c829900ff876f3cd2050e2877ccd6efa0f6","head":{"label":"patgmiller:payflow-model-patch","ref":"payflow-model-patch","sha":"89553c829900ff876f3cd2050e2877ccd6efa0f6","user":{"login":"patgmiller","id":3914379,"avatar_url":"https://avatars.githubusercontent.com/u/3914379?v=3","gravatar_id":"","url":"https://api.github.com/users/patgmiller","html_url":"https://github.com/patgmiller","followers_url":"https://api.github.com/users/patgmiller/followers","following_url":"https://api.github.com/users/patgmiller/following{/other_user}","gists_url":"https://api.github.com/users/patgmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/patgmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patgmiller/subscriptions","organizations_url":"https://api.github.com/users/patgmiller/orgs","repos_url":"https://api.github.com/users/patgmiller/repos","events_url":"https://api.github.com/users/patgmiller/events{/privacy}","received_events_url":"https://api.github.com/users/patgmiller/received_events","type":"User","site_admin":false},"repo":{"id":47656939,"name":"django-oscar-paypal","full_name":"patgmiller/django-oscar-paypal","owner":{"login":"patgmiller","id":3914379,"avatar_url":"https://avatars.githubusercontent.com/u/3914379?v=3","gravatar_id":"","url":"https://api.github.com/users/patgmiller","html_url":"https://github.com/patgmiller","followers_url":"https://api.github.com/users/patgmiller/followers","following_url":"https://api.github.com/users/patgmiller/following{/other_user}","gists_url":"https://api.github.com/users/patgmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/patgmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patgmiller/subscriptions","organizations_url":"https://api.github.com/users/patgmiller/orgs","repos_url":"https://api.github.com/users/patgmiller/repos","events_url":"https://api.github.com/users/patgmiller/events{/privacy}","received_events_url":"https://api.github.com/users/patgmiller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/patgmiller/django-oscar-paypal","description":"PayPal integration for django-oscar.  Can be used without Oscar too.","fork":true,"url":"https://api.github.com/repos/patgmiller/django-oscar-paypal","forks_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/forks","keys_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/teams","hooks_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/hooks","issue_events_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/issues/events{/number}","events_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/events","assignees_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/assignees{/user}","branches_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/branches{/branch}","tags_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/tags","blobs_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/git/refs{/sha}","trees_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/statuses/{sha}","languages_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/languages","stargazers_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/stargazers","contributors_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/contributors","subscribers_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/subscribers","subscription_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/subscription","commits_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/commits{/sha}","git_commits_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/git/commits{/sha}","comments_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/comments{/number}","issue_comment_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/issues/comments{/number}","contents_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/contents/{+path}","compare_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/merges","archive_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/downloads","issues_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/issues{/number}","pulls_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/pulls{/number}","milestones_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/milestones{/number}","notifications_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/labels{/name}","releases_url":"https://api.github.com/repos/patgmiller/django-oscar-paypal/releases{/id}","created_at":"2015-12-08T23:54:23Z","updated_at":"2015-12-08T23:54:24Z","pushed_at":"2015-12-09T04:47:34Z","git_url":"git://github.com/patgmiller/django-oscar-paypal.git","ssh_url":"git@github.com:patgmiller/django-oscar-paypal.git","clone_url":"https://github.com/patgmiller/django-oscar-paypal.git","svn_url":"https://github.com/patgmiller/django-oscar-paypal","homepage":"http://django-oscar-paypal.readthedocs.org/en/latest/","size":7684,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"django-oscar:master","ref":"master","sha":"282c85cc79d2ffb32ef052aa2d17e050a17745eb","user":{"login":"django-oscar","id":9057806,"avatar_url":"https://avatars.githubusercontent.com/u/9057806?v=3","gravatar_id":"","url":"https://api.github.com/users/django-oscar","html_url":"https://github.com/django-oscar","followers_url":"https://api.github.com/users/django-oscar/followers","following_url":"https://api.github.com/users/django-oscar/following{/other_user}","gists_url":"https://api.github.com/users/django-oscar/gists{/gist_id}","starred_url":"https://api.github.com/users/django-oscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django-oscar/subscriptions","organizations_url":"https://api.github.com/users/django-oscar/orgs","repos_url":"https://api.github.com/users/django-oscar/repos","events_url":"https://api.github.com/users/django-oscar/events{/privacy}","received_events_url":"https://api.github.com/users/django-oscar/received_events","type":"Organization","site_admin":false},"repo":{"id":3810422,"name":"django-oscar-paypal","full_name":"django-oscar/django-oscar-paypal","owner":{"login":"django-oscar","id":9057806,"avatar_url":"https://avatars.githubusercontent.com/u/9057806?v=3","gravatar_id":"","url":"https://api.github.com/users/django-oscar","html_url":"https://github.com/django-oscar","followers_url":"https://api.github.com/users/django-oscar/followers","following_url":"https://api.github.com/users/django-oscar/following{/other_user}","gists_url":"https://api.github.com/users/django-oscar/gists{/gist_id}","starred_url":"https://api.github.com/users/django-oscar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django-oscar/subscriptions","organizations_url":"https://api.github.com/users/django-oscar/orgs","repos_url":"https://api.github.com/users/django-oscar/repos","events_url":"https://api.github.com/users/django-oscar/events{/privacy}","received_events_url":"https://api.github.com/users/django-oscar/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django-oscar/django-oscar-paypal","description":"PayPal integration for django-oscar.  Can be used without Oscar too.","fork":false,"url":"https://api.github.com/repos/django-oscar/django-oscar-paypal","forks_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/forks","keys_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/teams","hooks_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/hooks","issue_events_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/events{/number}","events_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/events","assignees_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/assignees{/user}","branches_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/branches{/branch}","tags_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/tags","blobs_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/git/refs{/sha}","trees_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/statuses/{sha}","languages_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/languages","stargazers_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/stargazers","contributors_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/contributors","subscribers_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/subscribers","subscription_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/subscription","commits_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/commits{/sha}","git_commits_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/git/commits{/sha}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/comments{/number}","issue_comment_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/comments{/number}","contents_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/contents/{+path}","compare_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/merges","archive_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/downloads","issues_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues{/number}","pulls_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls{/number}","milestones_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/milestones{/number}","notifications_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/labels{/name}","releases_url":"https://api.github.com/repos/django-oscar/django-oscar-paypal/releases{/id}","created_at":"2012-03-23T16:51:01Z","updated_at":"2015-12-09T09:37:47Z","pushed_at":"2015-12-14T22:02:15Z","git_url":"git://github.com/django-oscar/django-oscar-paypal.git","ssh_url":"git@github.com:django-oscar/django-oscar-paypal.git","clone_url":"https://github.com/django-oscar/django-oscar-paypal.git","svn_url":"https://github.com/django-oscar/django-oscar-paypal","homepage":"http://django-oscar-paypal.readthedocs.org/en/latest/","size":8717,"stargazers_count":57,"watchers_count":57,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":90,"mirror_url":null,"open_issues_count":19,"forks":90,"open_issues":19,"watchers":57,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118"},"html":{"href":"https://github.com/django-oscar/django-oscar-paypal/pull/118"},"issue":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/118"},"comments":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/django-oscar/django-oscar-paypal/statuses/89553c829900ff876f3cd2050e2877ccd6efa0f6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}