diff --git a/modules/OfflinePayments/Http/Controllers/Payment.php b/modules/OfflinePayments/Http/Controllers/Payment.php index 06c50c194..317b60637 100644 --- a/modules/OfflinePayments/Http/Controllers/Payment.php +++ b/modules/OfflinePayments/Http/Controllers/Payment.php @@ -29,7 +29,7 @@ class Payment extends PaymentController } } - $html = view('offline-payments::show', compact('setting', 'document'))->render(); + $html = view('offline-payments::show', compact('setting', 'invoice'))->render(); return response()->json([ 'code' => $setting['code'], @@ -56,7 +56,7 @@ class Payment extends PaymentController $confirm_url = URL::signedRoute('signed.invoices.offline-payments.confirm', [$invoice->id, 'company_id' => session('company_id')]); - $html = view('offline-payments::signed', compact('setting', 'document', 'confirm_url'))->render(); + $html = view('offline-payments::signed', compact('setting', 'invoice', 'confirm_url'))->render(); return response()->json([ 'code' => $setting['code'], diff --git a/modules/OfflinePayments/Resources/views/show.blade.php b/modules/OfflinePayments/Resources/views/show.blade.php index 02f5aa6cb..cea70fa0a 100644 --- a/modules/OfflinePayments/Resources/views/show.blade.php +++ b/modules/OfflinePayments/Resources/views/show.blade.php @@ -22,8 +22,9 @@ - {!! Form::hidden('payment_method', $setting['code'], ['v-model' => 'form.payment_method']) !!} - {!! Form::hidden('type', 'income', ['v-model' => 'form.type']) !!} + {!! Form::hidden('payment_method', $setting['code']) !!} + {!! Form::hidden('type', 'income') !!} + {!! Form::close() !!} diff --git a/modules/OfflinePayments/Resources/views/signed.blade.php b/modules/OfflinePayments/Resources/views/signed.blade.php index da5ec4cbb..722b45daf 100644 --- a/modules/OfflinePayments/Resources/views/signed.blade.php +++ b/modules/OfflinePayments/Resources/views/signed.blade.php @@ -22,8 +22,10 @@ - {!! Form::hidden('payment_method', $setting['code'], ['v-model' => 'form.payment_method']) !!} - {!! Form::close() !!} + {!! Form::hidden('payment_method', $setting['code']) !!} + {!! Form::hidden('type', 'income') !!} + + {!! Form::close() !!} diff --git a/resources/assets/js/views/portal/invoices.js b/resources/assets/js/views/portal/invoices.js index 96763b4de..fb5905be7 100644 --- a/resources/assets/js/views/portal/invoices.js +++ b/resources/assets/js/views/portal/invoices.js @@ -85,7 +85,7 @@ const app = new Vue({ }, created: function() { - this.form = new Form('redirect-form '); + this.form = new Form('redirect-form'); }, data: function () { @@ -176,7 +176,7 @@ const app = new Vue({ }, created: function() { - this.form = new Form('redirect-form '); + this.form = new Form('redirect-form'); }, data: function () {