How to setup a simple checkout process for stripe.com on a php site.

1.	Take the code from “button code.txt” and put it into the html. This creates the “buy now” button.
a.	Change the “data-amount” to the product’s purchase price (no decimals, write out the price in cents)
b.	Change the “data-description” to the product’s name
c.	Change the “value” to the product id. This id must EXACTLY match the product id that you enter into the file “charge.php” (more on that file later).
d.	Change the “data-label” to the text you want to see on the “buy-now” button
e.	Change the “data-image” to the location of the image you want to see on top of the checkout form
f.	Change the “data-name” to the title text you want on the checkout form
2.	Put the css code from “css for button.txt” into the project’s css
3.	Move the files from “files for the home folder” into your projects HOME folder
a.	In /charge.php
i.	Copy and paste a new copy of the lines “case” and “$amount” and “break;”. This creates a new product. 
ii.	Change the “case” to match the EXACT product id that you set in your button code in step 1
iii.	Change the “$amount” to match the EXACT price that you set in your button code
iv.	Under “try”, change the “location:” value to the file for your payment error page.
v.	At the bottom of charge.php, change the “widow.location.href” value to the location of your thank you page. 
vi.	NOTE: the file charge (without error support).php is if you don’t want all errors to be automatically redirected to an error page (not recommended unless you know some other way to handle the errors).
b.	In /stripe/config.php
i.	Change the “secret_key” and “publishable_key” value to your specific key from stripe.com. You can get this code from logging into stripe.com and going to the account settings. Use the test key for testing credit card charges until everything is working as you want it (highly recommended to do this first).
ii.	You can find the test codes by clicking on “test” at the upper right hand corner of the screen on your test page (while the checkout popup form is active). Or just go straight to this url https://stripe.com/docs/testing#cards
4.	When you are done testing, you MUST add SSL to your domain name before you take payments from customers.