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.
Problems with e-commerce website
Moderator: General Moderators
-
wildthing4ever
- Forum Newbie
- Posts: 1
- Joined: Thu Oct 25, 2007 1:35 am