wip
This commit is contained in:
1 parent
6428c9e20c
commit
19abe08a90
6 files changed
+23
-22
No files matched your search
@@ -4,7 +4,6 @@
|
||||
|
||||
use App\Modules\CurrencyRate\Models\CurrencyRate;
|
||||
use App\Modules\VisaMasterPaymentOrder\Models\VisaMasterPaymentOrder;
|
||||
use App\Modules\VisaMasterPaymentOrder\Models\VisaMasterSettings;
|
||||
use App\Modules\VisaMasterPaymentOrder\Repositories\VisaMasterPaymentOrderRepository;
|
||||
use Filament\Actions\Action;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
@@ -142,7 +141,6 @@ public static function make(): Action
|
||||
|
||||
$total_amount = $formData['payment_amount'] + $visaMasterPaymentOrderRepository->bankFee() + $visaMasterPaymentOrderRepository->gbusFee();
|
||||
|
||||
|
||||
$onlinePaymentRepository = $visaMasterPaymentOrderRepository->createOnlinePaymentOrder($record, $total_amount);
|
||||
|
||||
if ($onlinePaymentRepository->failed()) {
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ public function createOnlinePaymentOrder(VisaMasterPaymentOrder $record, int|flo
|
||||
/** @var \App\Modules\Branch\Models\Branch */
|
||||
$branch = $record->branch;
|
||||
|
||||
return OnlinePaymentRepository::make(relatedModel: $record)
|
||||
return OnlinePaymentRepository::make(relatedModel: $record, apiClient: 'billing_visa_master')
|
||||
->setPaymentProvider(
|
||||
HalkbankOnlinePaymentRepository::make(
|
||||
username: $branch->billing_visa_master_username,
|
||||
|
||||
Reference in new issue
Block a user