Add new entry point for livewire component payments

This commit is contained in:
David Bomba 2024-06-28 11:12:56 +10:00 committed by Benjamin Beganović
parent 985cdafdc2
commit cfe04bfa7c

View File

@ -56,7 +56,6 @@ class LivewireInstantPayment
'payload' => [], 'payload' => [],
'component' => '', 'component' => '',
]; ];
/** /**
* is_credit_payment * is_credit_payment
* *
@ -64,7 +63,6 @@ class LivewireInstantPayment
* @var bool * @var bool
*/ */
private $is_credit_payment = false; private $is_credit_payment = false;
/** /**
* __construct * __construct
* *
@ -98,7 +96,6 @@ class LivewireInstantPayment
} }
$payable_invoices = collect($this->data['payable_invoices']); $payable_invoices = collect($this->data['payable_invoices']);
$tokens = []; $tokens = [];
$invoices = Invoice::query() $invoices = Invoice::query()
@ -239,7 +236,6 @@ class LivewireInstantPayment
$this->mergeResponder(['success' => true, 'component' => 'CreditPaymentComponent', 'payload' => $data]); $this->mergeResponder(['success' => true, 'component' => 'CreditPaymentComponent', 'payload' => $data]);
return $this->getResponder(); return $this->getResponder();
} }
$this->mergeResponder(['success' => true, 'payload' => $data]); $this->mergeResponder(['success' => true, 'payload' => $data]);