mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Refactor purchase submission in Submit.php
This commit is contained in:
parent
14a93eda0b
commit
57159ca31f
@ -46,7 +46,16 @@ class Submit extends Component
|
|||||||
|
|
||||||
// return redirect((new InstantPayment($request))->run());
|
// return redirect((new InstantPayment($request))->run());
|
||||||
|
|
||||||
$this->dispatch('purchase.submit');
|
$this->dispatch(
|
||||||
|
'purchase.submit',
|
||||||
|
invoice_hashed_id: $this->context['form']['invoice_hashed_id'],
|
||||||
|
payable_amount: $this->context['form']['payable_amount'],
|
||||||
|
company_gateway_id: $this->context['form']['company_gateway_id'],
|
||||||
|
payment_method_id: $this->context['form']['payment_method_id'],
|
||||||
|
contact_first_name: $this->context['contact']['first_name'],
|
||||||
|
contact_last_name: $this->context['contact']['last_name'],
|
||||||
|
contact_email: $this->context['contact']['email'],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user