Page 1 of 1

Anyone familiar with Stripe Checkout? Need help with cart

Posted: Tue Apr 04, 2017 4:07 am
by simonmlewis
Hi

I am trying to incorporate Stripe into our website, so that we can process payments without the user leaving the site, or even leaving to a custom build site. So they stay put!!

https://stripe.com/docs/checkout/tutorial
This is what I have been guided toward, but I don't understand how to get the contents of a Cart passed through it.

I'm still not 100% familiar with Sessions, so when you add something to cart, it puts each ID of the product into a session, so that each ID is shown on the page, extracted from the session to show what's in their cart.

I need Stripe to take the payment for the calculated amount, but also postage, and I'm guessing if I am to do this all inhouse, we need to be able to calculate postage as well. Then add that into the price.

Then how do you make the invoice go out from Stripe, showing all the items bought (like you can with PayPal).

Any ideas?

Re: Anyone familiar with Stripe Checkout? Need help with car

Posted: Tue Apr 04, 2017 5:36 am
by Celauran
Did you look at their PHP integration? https://stripe.com/docs/checkout/php

Re: Anyone familiar with Stripe Checkout? Need help with car

Posted: Tue Apr 04, 2017 5:41 am
by Celauran
Also checkout the sample payment form on GitHub: https://github.com/myg0v/Simple-Bootstr ... yment-Form