Edit: I had some success getting it running with C#, read it about it here.
Ok, so now I’ve got the code for the payment form and the action for it on my server and running, and I can at least tell whether stuff is working or not (it’s not). Check it out at rocketships.ca/stripe/payment.php if you want.
A typical use case:
1 2 3 4 5 6 7 |
Customer browses through items, selects an item, clicks "add to cart", clicks "checkout", clicks "pay", enters their data, clicks "submit". |
For this to happen I need:
A product page that contains:
- An item
- An “add to cart” button
- A “checkout” button
A checkout page that contains:
- A list of the customer’s items
- A “pay now” button
For these pages to work I need
- A database of items
- A method to get an item from the database
- A method to handle the “add to cart” button
- A way to list the customers items on the checkout page
And the last ingredient, of course, is someone who knows way more than I do, cause I feel super lost, and pretty sure that most people reading this from HackerNews or Proggit are just gonna laugh at me. Oh well, soldier on. You only learn the hard way.