{"action":"created","issue":{"url":"https://api.github.com/repos/Payum/PayumBundle/issues/270","labels_url":"https://api.github.com/repos/Payum/PayumBundle/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/Payum/PayumBundle/issues/270/comments","events_url":"https://api.github.com/repos/Payum/PayumBundle/issues/270/events","html_url":"https://github.com/Payum/PayumBundle/issues/270","id":81373127,"number":270,"title":"StripeJS directly from custom button","user":{"login":"austinh","id":659239,"avatar_url":"https://avatars.githubusercontent.com/u/659239?v=3","gravatar_id":"","url":"https://api.github.com/users/austinh","html_url":"https://github.com/austinh","followers_url":"https://api.github.com/users/austinh/followers","following_url":"https://api.github.com/users/austinh/following{/other_user}","gists_url":"https://api.github.com/users/austinh/gists{/gist_id}","starred_url":"https://api.github.com/users/austinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinh/subscriptions","organizations_url":"https://api.github.com/users/austinh/orgs","repos_url":"https://api.github.com/users/austinh/repos","events_url":"https://api.github.com/users/austinh/events{/privacy}","received_events_url":"https://api.github.com/users/austinh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T09:45:49Z","updated_at":"2015-05-30T20:58:21Z","closed_at":null,"body":"I am having trouble using StripeJS with the PayumBundle.\r\n\r\nIs there anyway to use stripejs checkout without having the button be on a seperate blank page.\r\nI have created my own page with two buttons: paypal and stripe checkout. paypals button goes directly to the prepare page which then redirects goes to paypal, and back to my website. Works perfectly.\r\n\r\nUsers see Paypal Button -> Paypal -> Confirm Action Success Page\r\n\r\nUnfortunately, Stripe process as setup in the docs/sandbox is not as nice.\r\n\r\nWhen I click the StripeJS button, it brings up the Stripe dialog, and then you click \"Buy\" and it brings you to a blank page with ANOTHER StripeJS button and dialog with the same confirmation info. \r\nUsers see Stripe Button -> Dialog Popup -> Blank page with Stripe Button -> Another Dialog Popup -> Finally Confirm Action Success Page\r\n\r\nI want to skip this step and just go directly through Stripe like Paypal Express does, but I cant seem to get it work. I've tinkered with lots of code but there's no way to customize this and still use payum it seems. Can anyone help? It seems that 0.15 docs and examples are not up to date in the Sandbox so I'm not sure what I'm doing wrong.\r\n\r\nI also tried OmniPay Direct but it has another form inbetween the steps. I just want it to submit directly from the client TokenID."},"comment":{"url":"https://api.github.com/repos/Payum/PayumBundle/issues/comments/107085303","html_url":"https://github.com/Payum/PayumBundle/issues/270#issuecomment-107085303","issue_url":"https://api.github.com/repos/Payum/PayumBundle/issues/270","id":107085303,"user":{"login":"austinh","id":659239,"avatar_url":"https://avatars.githubusercontent.com/u/659239?v=3","gravatar_id":"","url":"https://api.github.com/users/austinh","html_url":"https://github.com/austinh","followers_url":"https://api.github.com/users/austinh/followers","following_url":"https://api.github.com/users/austinh/following{/other_user}","gists_url":"https://api.github.com/users/austinh/gists{/gist_id}","starred_url":"https://api.github.com/users/austinh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austinh/subscriptions","organizations_url":"https://api.github.com/users/austinh/orgs","repos_url":"https://api.github.com/users/austinh/repos","events_url":"https://api.github.com/users/austinh/events{/privacy}","received_events_url":"https://api.github.com/users/austinh/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T20:58:21Z","updated_at":"2015-05-30T20:58:21Z","body":"The most recent version of Payum doen't seem to support this part of the code:\r\n```\r\nif ($request->isMethod('POST') && $request->request->get('stripeToken')) {\r\n\r\n            $payment[\"card\"] = $request->request->get('stripeToken');\r\n            $storage->update($payment);\r\n\r\n            $captureToken = $this->getTokenFactory()->createCaptureToken(\r\n                $gatewayName,\r\n                $payment,\r\n                'acme_payment_details_view'\r\n            );\r\n\r\n            return $this->redirect($captureToken->getTargetUrl());\r\n        }\r\n```\r\nThere is no \"card\" property in the latest 0.14-15 version of Payum, so the data is not saved. Thus it needs to capture it again. Instead there is the ->setCreditCard method but that request something else entirely. This may be the reason why it is not capturing it.\r\n\r\nHowever, after further investigation I have also found that generating a capture token requires that you go to the following template:\r\n\r\n```src/Payum/Stripe/Resources/views/Action/obtain_checkout_token.html.twig``\r\nI do not want to go to this just to be able to capture a token. \r\n\r\nI should be able to go to my own page."}}