-
-
Notifications
You must be signed in to change notification settings - Fork 4
6. Retrieving the records
Harish Toshniwal edited this page Feb 13, 2017
·
1 revision
##How to retrieve the records & details using the helpers
All these methods(or helpers as we like to call it) returns you a laravel collection excluding a few which have the comments specifying what they return
- Get all the payment records
$details = Mojo::allPayments();
- Get all the payment records for a specific user
$details = Mojo::allPaymentsFor($user);
- Get all the successful payments
$details = Mojo::successfulPayments();
- Get all the failed payments
$details = Mojo::failedPayments();
- Get your total income including instamojo's fees
$details = Mojo::myAndMojosIncome(); // Returns the amount
- Get your total income excluding instamojo's fees
$details = Mojo::myIncome(); // Returns the amount
- Get instamojo's total fees charged till now
$details = Mojo::mojosIncome(); // Returns the amount
- Get total refunds amount
$details = Mojo::allRefunds();
- Get total refunds amount for a particular user
$details = Mojo::allRefundsFor($user);
Pablo Escobar isn't there in Narcos season 3 :(