How to solve the problem of not being informed of successful payments by the 3rd party system used b

Posted by user68759 on Stack Overflow See other posts from Stack Overflow or by user68759
Published on 2010-04-10T13:56:01Z Indexed on 2010/04/10 14:03 UTC
Read the original article Hit count: 311

I have a subscription based website that interacts with a 3rd party system to handle the payments. The steps to process a new subscriber registration are as follow:

  1. The subscriber enters his/her details in the subscription form and click on the submit button.
  2. Assuming the details specified are valid, a new record is created in the database to store these details.
  3. The subscriber is then redirected to the website of the 3rd party system (similar to paypal) to process the payment.
  4. Once the payment is succesful, the 3rd party website then redirect the subscriber back to our website.
  5. At this time, I know that the payment was succesful, so the record in the database is updated to indicate that payment has been made successfully.

A problem that I have found occurring quite often is that if a subscriber pays but does not complete the process correctly (e.g. uses the back browser, closes the window), his/her record in the database doesn't get updated about this. Accordingly, I don't know if s/he has paid by just looking the record and need to wait for the report from the 3rd party system to find this out.

How do you solve this problem?

PS. One of the main reasons to store their details into the database before the payment process is done is so they can come back to complete the payment without re-entering their details again. For example, when their credit cards were rejected by the 3rd party system and they need to sort this out with their financial institution which may take a while.

© Stack Overflow or respective owner

Related posts about ecommerce

Related posts about payment-processing