Getting a little further with Stripe

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:

For this to happen I need:

A product page that contains:

  1. An item
  2. An “add to cart” button
  3. A “checkout” button

A checkout page that contains:

  1. A list of the customer’s items
  2. A “pay now” button

For these pages to work I need

  1. A database of items
  2. A method to get an item from the database
  3. A method to handle the “add to cart” button
  4. 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.

 

Trying to figure out Stripe, being new at this not all that smart

I’m building a website to sell stuff I want to buy. It doesn’t really matter what I’m selling right now – I just need to set up the store so I can sell anything.

Stripe offers a nice system for setting up online payments. Their API is very well documented, if only I was better at using it/reading tech docs.

So far I have setup the front page of my website using HTML5 and have followed their template for creating a payment form. The next step is to create an action that the sends the payment data to my server/stripe’s server/whatever and processes it.

I’m a bit stalled here, because I have their template of the code, but I’m not sure which parts I need to change to make it work for me, and I’m not sure where to put it. I’m also not sure how to test it. Most of all, I’m having trouble keeping my concentration on this project, because I don’t know what to do next or where to find info. Online help for this is pretty thin – Stripe doesn’t have a developer forum, just a chat room and a curated q&a page.

So, I guess my plan is this:

1. Test the payment form that I have made
2. Create the php action
3. Figure out where to put the action
4. Test it
5. Repeat as needed.