Problems with e-commerce website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
wildthing4ever
Forum Newbie
Posts: 1
Joined: Thu Oct 25, 2007 1:35 am

Problems with e-commerce website

Post by wildthing4ever »

Hi,

I am currently working on an e-commerce website in PHP. The payments are carried out through a payment gateway. The total amount is passed on to the external payment gateway (bank site), which then returns to our page that logs the transaction and sends an email to the customer, and the client (website owner).

I am using a session to store the user's tracking ID (linking the user to a transaction and orders). The email of the customer is also being stored in the session.

Last night, an email was sent out to indicate that a transaction had taken place. However, quite a few things went wrong:

1. The order details were missing in the email - probably indicating that the tracking Id (in the session) was missing.
2. The transaction details were never stored in the database. This happens just after the email is sent. So if the email is sent, there should be a corresponding entry in the transaction table.
3. The status of the the order was not changed to 'Confirmed' - this happens immediately after 2

So to summarize, the customer got billed, but their payment wasn't recorded.

Can somebody help me out in figuring where I went wrong, and how I can fix it? I realize that you'll probably need more information, so let me know what info you need.

Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

We can't help without seeing your code.
Post Reply