Jump to content

Where Should I embed stripe code?


Recommended Posts

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 by bailemos (see edit history)
Link to comment
Share on other sites

I meant where to embed this code:

 

<form action="/charge" method="POST">
<script
src="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 by bailemos (see edit history)
Link to comment
Share on other sites

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

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

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

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 by bailemos (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...