-
-
Notifications
You must be signed in to change notification settings - Fork 4
4. Showing users all his Transactions or Orders
Ajit Bohra edited this page Apr 1, 2017
·
2 revisions
- In the controller method that returns the view for that index page you can do
$details = Mojo::allTransactionsFor($user);
-
This gives you a laravel collection so you can render it in your view file in a foreach loop (maybe! as you need)
-
In that 'details' collection you will get a key "payment_id" , we advise you to store that in a hidden field for each detail i.e each record of a order , because if a customer clicks on the REFUND button for a particular detail/Order , then the form posting will pass that 'payment_id' in the request object and that 'payment_id' is compulsory needed to process the REFUND
-
Also when the customer selects the reason for refund from the dropdown , make sure the dropdown options has the following values as it is specified by Instamojo :
- RFD: Duplicate/delayed payment.
- TNR: Product/service no longer available.
- QFL: Customer not satisfied.
- QNR: Product lost/damaged.
- EWN: Digital download issue.
- TAN: Event was canceled/changed.
- PTH: Problem not described above.
How to accept and process refunds is on the next page