debug wallet top up

This commit is contained in:
omair saleh
2022-04-15 14:08:09 +08:00
parent a3f4de7c1a
commit e0ed003c26
@@ -23,6 +23,7 @@ use ErrorException;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class TopUpWalletLogic extends AbstractControllerLogic
{
@@ -103,7 +104,7 @@ class TopUpWalletLogic extends AbstractControllerLogic
}
$billPlzBill = $this->createsBillplzBill->execute($user->name, $user->email, 'This payment is credit topup for company ref. ' . $company->reference, $amount, $billNumber, $request->input('bank_code'), true);
Log::error($billPlzBill);
$transaction_object = new TransactionObject($billNumber, TransactionType::TOP_UP, 1, $company->id, 1, PaymentMethodType::PAYMENT_GATEWAY, $amount, $amount, 1, 1, 1, 0, 0, null, ApprovalStatus::PENDING_SUBMISSION, [], $billPlzBill->id);
$transaction = $this->createsTransaction->execute($wallet, $transaction_object);