bailemos Posted January 30, 2014 Share Posted January 30, 2014 (edited) Hi, I am almost new in Prestashop I am trying to install the stripe custom button code in my payment page (1 page check out) in order to show the popup window. I already installed de stripe module but it only appear a form. Can somebody tell me where to embed the code? I ment in what archive? Best Regards Jose Edited January 30, 2014 by bailemos (see edit history) Link to comment Share on other sites More sharing options...
bailemos Posted January 30, 2014 Author Share Posted January 30, 2014 (edited) I meant where to embed this code: <form action="/charge" method="POST"><scriptsrc="https://checkout.stripe.com/checkout.js" class="stripe-button"data-key="pk_test_CIiHVVuiz70ju34KP9npla9e"data-image="/square-image.png"data-name="Demo Site"data-description="2 widgets ($20.00)"data-amount="2000"></script></form> Edited January 30, 2014 by bailemos (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 the most important question: for what purposes you want to display this code and what about params inside? like data description, data-key, data-amount etc? Link to comment Share on other sites More sharing options...
bailemos Posted January 30, 2014 Author Share Posted January 30, 2014 Thanks for the reply. The main purpose is to add a button in the payment area as it is showed in the stripe website: https://stripe.com/docs/tutorials/checkout After push the button will appear a pop up with the payment form. The instructions are not suited for prestashop specifically. And I don’t know where place this code. I meant in what archive and line. The data inside are the key parameters to connect with the stripe.com payment. I have my own key code. Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 so in fact, you have to change these variables (like amount etc.) to display correct values, right? Link to comment Share on other sites More sharing options...
bailemos Posted January 30, 2014 Author Share Posted January 30, 2014 (edited) Yes you are right. I have to change these variables. Those form data that I am using now is the example provided int the stripe website for testing. I already got my own data, and I would change the parameters . But I don´t know where to place it. Edited January 30, 2014 by bailemos (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 so, this is some kind of payment gateway? what about order confirmation, and also payment confirmation? with this simple code it's not possible to confirm order, confirm payment etc. you have to use payment module to achieve this, not this simple code - it will not work. Link to comment Share on other sites More sharing options...
bellini13 Posted January 30, 2014 Share Posted January 30, 2014 i believe this is just a quick pay button for Stripe. like paypal provides quick pay buttons. The question to really ask is if you use this quick pay buttons, how will you create an order after the payment is completed? Link to comment Share on other sites More sharing options...
bailemos Posted January 31, 2014 Author Share Posted January 31, 2014 Yep is a paymente gateway I already installed the free stripe module 0.9.7, The API keys and the webhooks connecting to the online plattform. In the check out page appears a form with all thefields for pay using a visa. I have some problems to display the fields but I am looking to install the button for trigering the pop up window. But I don´t know how to do that Link to comment Share on other sites More sharing options...
bellini13 Posted January 31, 2014 Share Posted January 31, 2014 I am quite familiar with Stripe. My question is after you get the popup window to appear, and the customer pays, how do you expect an order to be created in Prestashop? Link to comment Share on other sites More sharing options...
bailemos Posted January 31, 2014 Author Share Posted January 31, 2014 (edited) Hi bellini, I thought with the installed module and just adding my key numbers to the embedded code was enought. But as I see I won't this module and the form, I want to install the custom pop up stripe gateway as is seen in https://stripe.com/docs/checkout/v2 Please could anybody advise the steps to follow to install effectively the popup and work properly? Edited February 3, 2014 by bailemos (see edit history) Link to comment Share on other sites More sharing options...
bailemos Posted February 4, 2014 Author Share Posted February 4, 2014 Please help!! Link to comment Share on other sites More sharing options...
vekia Posted February 4, 2014 Share Posted February 4, 2014 you need module, it's not enough to just paste code that you attached. Link to comment Share on other sites More sharing options...
bailemos Posted February 4, 2014 Author Share Posted February 4, 2014 Yes but wich one. And how to integrate it in order to show the popup? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now