
Suppose it may happen, customer purchase something from your website but after successful transaction, you come to know that particular product is not in stock.
Now you have to give refund to that customer as a credit amount so customer can use that amount in future.
For that do following:
1.Go...