SB Apprenticeship: Day 59

I added a confirmation page!

I added a confirmation page!

  • What did you learn yesterday?
  • What are you going to do today?
  • What do you expect to learn?

Yesterday I started out trying to make a customer in Stripe so I could save a credit card and use it again. I got a bug that I couldn’t figure out, so I decided to move on and make the order confirmation page, which took forever because of lots of little bugs that had to be fixed along the way. I ended the day with the same bug I had started it with, only reached through a very roundabout path. Sigh. But I got the confirmation page working! It’s tricky to test, because I have to put all the info (name, address, email, cc number, etc) in every time, and I have it set to destroy the cart once payment has gone through, so if anything breaks in that process I have to go back and redo the entire thing. So tedious.

Today I am going to hopefully finish working on creating a customer and saving a credit card. The flow for this project seems weird to me, according to the tests I should have a cart, a checkout page (where you put credit card details), a confirmation page *and* an order summary page. Oh, and it sends an email. This seems redundant to me, but maybe there’s some reason for it? I think I’ll ask Brandon his thoughts and maybe that’ll be a step I won’t have to take. I’m so close to being done!

Part of the thing that was confusing me yesterday about saving a credit card was that I have to make a customer (to associate with the cc, which makes sense), but I’m not sure if I have to make a user to go along with that. Or…now that I look at my code, I already have a user model but I don’t have a controller. Soooo maybe I’m just confused. Anyway, I expect to learn what that’s all about and hopefully get that untangled.

Also, if any of the people who read this are in Durham, be sure to vote today!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s