Integration with Stripe - difficult?
My client is using Stripe and wants to integrate this with their site www.dreamcargalaxy.com.
In the documentation, https://stripe.com/docs/checkout/tutorial, it gives the following code to use on your site.
<form action="/your-server-side-code" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="testkeyvalue"
data-amount="999"
data-name="Dream Car Holdings Limited"
data-description="Widget"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-zip-code="true"
data-currency="gbp">
</script>
</form>
What should we be inserting for the "/your-server-side-code" action value for the form?
Also, we edited the form to include the eCart Grand Total as follows:
<form action="/your-server-side-code" method="POST">
<script
src="https://checkout.stripe.com/checkout.js" class="stripe-button"
data-key="testkeyvalue"
data-amount="<?php echo $cartDC->GrandTotal(); ?>"
data-name="Dream Car Holdings Limited"
data-description="Widget"
data-image="https://stripe.com/img/documentation/checkout/marketplace.png"
data-locale="auto"
data-zip-code="true"
data-currency="gbp">
</script>
</form>
...but instead of inserting £48.00 it inserted £0.48! You can view that on our view cart page at:
http://www.dreamcargalaxy.com/view-cart.php
User account information provided privately below. Thank you.
NJ