{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/145","labels_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/145/comments","events_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/145/events","html_url":"https://github.com/paypal/PayPal-Ruby-SDK/issues/145","id":98042842,"number":145,"title":"How to interpret the express checkout success process using in context modals.","user":{"login":"jcdavison","id":6944945,"avatar_url":"https://avatars.githubusercontent.com/u/6944945?v=3","gravatar_id":"","url":"https://api.github.com/users/jcdavison","html_url":"https://github.com/jcdavison","followers_url":"https://api.github.com/users/jcdavison/followers","following_url":"https://api.github.com/users/jcdavison/following{/other_user}","gists_url":"https://api.github.com/users/jcdavison/gists{/gist_id}","starred_url":"https://api.github.com/users/jcdavison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcdavison/subscriptions","organizations_url":"https://api.github.com/users/jcdavison/orgs","repos_url":"https://api.github.com/users/jcdavison/repos","events_url":"https://api.github.com/users/jcdavison/events{/privacy}","received_events_url":"https://api.github.com/users/jcdavison/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-29T22:25:53Z","updated_at":"2015-07-29T23:54:37Z","closed_at":"2015-07-29T23:54:37Z","body":"Hi Devs, I'm sure that what I'm about to post isn't a bug in the library but I'm quite unclear on a few things and SO isn't giving me much feedback so I'm just going to outline my situation here and maybe someone can politely confirm or negate a few of my assumptions.\r\n\r\n\r\nI'm attempting to implement a standard 'use paypal to checkout' flow using express checkout with in context modals.\r\n\r\nI'm rendering a button to a user that successfully uses the paypal checkout.js to listen for a click on a given button.  The button has a href that looks like \r\n\r\n`'https://www.sandbox.paypal.com/checkoutnow?token=EC-7TM50207WN762413T#checkout/login'`\r\n\r\nThe value of the token I retrieved via\r\n\r\n`curl -s --insecure  https://api-3t.sandbox.paypal.com/nvp  -d  \"USER=person-facilitator_api1.gmail.com&PWD=foofoofoo&SIGNATURE=barbarbarN2&METHOD=SetExpressCheckout&VERSION=78&PAYMENTREQUEST_0_PAYMENTACTION=SALE&PAYMENTREQUEST_0_AMT=19&PAYMENTREQUEST_0_CURRENCYCODE=USD&cancelUrl=http://localhost:3000/hook&returnUrl=http://localhost:3000/hook\"`\r\n\r\nwhich returned \r\n\r\n`TOKEN=EC%2d8PB28566YL9742127&TIMESTAMP=2015%2d07%2d29T19%3a16%3a11Z&CORRELATIONID=ba8948c4b5df3&ACK=Success&VERSION=78&BUILD=000000`\r\n\r\nOnce my user gets to the in context modals, I'm a little nervous because nowhere is the price displayed, see screenshot \r\n\r\nhttps://www.dropbox.com/s/ucumrs88b7z7ms6/Screenshot%202015-07-29%2015.18.19.png?dl=0\r\n\r\nBut my real question(s) revolve around what does it actually mean to click 'continue', the callback to my server has the params\r\n\r\n`{\"token\"=>\"EC-7TM50207WN762413T\", \"PayerID\"=>\"KLR8BRB4T2DCN\", \"controller\"=>\"home\", \"action\"=>\"hook\"}`\r\n\r\nAnd I'm pretty unclear if these params indicate that the transaction has been properly processed for payment or more steps need to be taken as in \r\n\r\n`curl -s --insecure https://api-3t.sandbox.paypal.com/nvp -d \"USER=person-facilitator_api1.gmail.com&PWD=foooU79FH3TK&SIGNATURE=fooo0N2&METHOD=DoExpressCheckoutPayment&VERSION=93&TOKEN=EC-7TM50207WN762413T&PAYERID=KLR8BRB4T2DCN&PAYMENTREQUEST_0_PAYMENTACTION=SALE&PAYMENTREQUEST_0_AMT=19.00&PAYMENTREQUEST_0_CURRENCYCODE=USD\"`\r\n\r\nDifferent indicators would kind of communicate to me that the transaction was processed including the server response from the above curl that says something like \r\n\r\n`L_LONGMESSAGE0=A%20successful%20transaction%20has%20already%20been%20completed%20for%20this%20token%2e&L_SEVERITYCODE0=Warnin` \r\n\r\nwhich indicates that the transaction is considered to already have been confirmed and also, if I attempt to reroute a user through the checkout flow i'm presented with the below screenshot,\r\n\r\nhttps://www.dropbox.com/s/p6629g1yflvolb1/Screenshot%202015-07-29%2015.16.22.png?dl=0\r\n\r\nSo I'm thinking that once the user clicks the 'continue' button in the in context express checkout modal, the transaction IS considered to be confirmed and at that point the purchasing user should expect to be charged something.  I would generally expect that I could see these transactions in the developer console, but alas, I'm getting some kind of error message from the paypal interface. \r\n\r\nhttps://www.dropbox.com/s/hhaaf20oydu85w7/Screenshot%202015-07-29%2015.24.47.png?dl=0\r\n\r\nAny feedback on my perception of this situation would be greatly appreciated. \r\n\r\nThanks,\r\n\r\nJD\r\n:swimmer: "},"comment":{"url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/comments/126131657","html_url":"https://github.com/paypal/PayPal-Ruby-SDK/issues/145#issuecomment-126131657","issue_url":"https://api.github.com/repos/paypal/PayPal-Ruby-SDK/issues/145","id":126131657,"user":{"login":"juwlee","id":6720919,"avatar_url":"https://avatars.githubusercontent.com/u/6720919?v=3","gravatar_id":"","url":"https://api.github.com/users/juwlee","html_url":"https://github.com/juwlee","followers_url":"https://api.github.com/users/juwlee/followers","following_url":"https://api.github.com/users/juwlee/following{/other_user}","gists_url":"https://api.github.com/users/juwlee/gists{/gist_id}","starred_url":"https://api.github.com/users/juwlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juwlee/subscriptions","organizations_url":"https://api.github.com/users/juwlee/orgs","repos_url":"https://api.github.com/users/juwlee/repos","events_url":"https://api.github.com/users/juwlee/events{/privacy}","received_events_url":"https://api.github.com/users/juwlee/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T23:54:37Z","updated_at":"2015-07-29T23:54:37Z","body":"@jcdavison I opened [an issue in merchant SDK](https://github.com/paypal/merchant-sdk-ruby/issues/22) as that SDK uses Express Checkout and hence a better place to discuss EC issues."}}