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(); $data = $request->all();
$this->payment_method = $data['payment_method_id']; $this->payment_method_id = $data['method'];
switch ($this->payment_method) { switch ($this->payment_method) {
case GatewayType::CREDIT_CARD: case GatewayType::CREDIT_CARD:

View File

@ -17,7 +17,8 @@
@endpush @endpush
@section('body') @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 @csrf
<input type="hidden" name="company_gateway_id" value="{{ $gateway->id }}"> <input type="hidden" name="company_gateway_id" value="{{ $gateway->id }}">
<input type="hidden" name="payment_method_id" value="1"> <input type="hidden" name="payment_method_id" value="1">