Cleanup
This commit is contained in:
parent
21e8e527a6
commit
950b294db5
|
|
@ -58,8 +58,6 @@ class ProcessPayment extends Component
|
|||
throw new PaymentFailed($responder_data['error'], 400);
|
||||
}
|
||||
|
||||
|
||||
/*** @PATCH */
|
||||
if(isset($responder_data['component']) && $responder_data['component'] == 'CreditPaymentComponent'){
|
||||
$this->payment_view = $responder_data['view'];
|
||||
$this->payment_data_payload = $responder_data['payload'];
|
||||
|
|
|
|||
|
|
@ -232,7 +232,6 @@ class LivewireInstantPayment
|
|||
];
|
||||
|
||||
if ($this->is_credit_payment) {
|
||||
/*** @PATCH */
|
||||
$this->mergeResponder(['success' => true, 'view' => 'gateways.credit.pay_livewire', 'component' => 'CreditPaymentComponent', 'payload' => $data]);
|
||||
return $this->getResponder();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -347,6 +347,8 @@ class AutoBillInvoice extends AbstractService
|
|||
$payload = ['client_id' => $this->invoice->client_id, 'invoices' => [['invoice_id' => $this->invoice->id,'amount' => $payment_balance]]];
|
||||
$payment_repo->save($payload, $payment);
|
||||
|
||||
$this->invoice = $this->invoice->fresh();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue