1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for authorize

This commit is contained in:
David Bomba 2020-11-26 21:12:36 +11:00
parent ed1539db50
commit a8daa31167
2 changed files with 3 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class AuthorizePaymentMethod
{
$data = $request->all();
$this->payment_method = $data['payment_method_id'];
$this->payment_method_id = $data['method'];
switch ($this->payment_method) {
case GatewayType::CREDIT_CARD:

View File

@ -17,7 +17,8 @@
@endpush
@section('body')
<form action="{{ route('client.payment_methods.store') }}" method="post" id="server_response">
<form action="{{ route('client.payment_methods.store', ['method' => App\Models\GatewayType::CREDIT_CARD]) }}" method="post" id="server_response">
@csrf
<input type="hidden" name="company_gateway_id" value="{{ $gateway->id }}">
<input type="hidden" name="payment_method_id" value="1">