haroondk's avatar

E-commerce checkout process

Hello guys,

I've got a step based checkout and each have a separate routes.

  1. Login / Continue as guest / Register new
  2. Personal info / delivering method
  3. Delivery option based on delivery method
  4. Accept and payment method
  5. Payment response and done.

What would you recommend storing user-info? or do you have better way of structuring the checkout process?

0 likes
5 replies
jlrdw's avatar

Your payment service will have instructions and an API to go by.

You definitely do not store credit card information the service has that.

If you need something like this and do not know what you are doing maybe talk to a consultant.

Like me for example when I had to do a bookkeeping application I consulted with a certified public accountant and learned exactly what was needed.

Do not go at something like this without at least 2 years experience under a professional developer.

1 like
Snapey's avatar
Snapey
Best Answer
Level 122

You need to hold 'state' on the back-end as you go through the process.

This can be held in session or in the database. The only issue with doing it in the database is that you will have some abandoned carts and records littering your database that are in various stages of completion.

Still probably the best way to go, you can always clean up later. It also gives you the opportunity to review how much abandoned carts there are and at what stage in the process.

Its a lot of work, but writing ecommerce always is. This is why people use things like shopify, even when they are capable of writing it themselves.

2 likes
haroondk's avatar

I'm not asking about card info - i was just asking where do people store the state (userinfo and delivery info, what step there are at). Ended up with a solution recommended by @snapey and it works perfectly fine :)

I'm asking because i want some people who are more experienced than me to answer.

haroondk's avatar

Thank's for input @snapey . I ended up storing the state in session , I ended up with session for guest buyer and for registered users in DB - Thank you!

Yeah, you're right. The only reason i'm building it from scratch is that i need a subscription solution with a lot special features. Been working on this site for about 10 months now :D

Please or to participate in this conversation.