double submission removed.

This commit is contained in:
Kishan Patel 2022-05-19 08:15:06 +05:30
parent f3f590097f
commit 4fc565960b
4 changed files with 61 additions and 61 deletions

View File

@ -105,8 +105,8 @@ class ACH
"sec_code":"PPD", "sec_code":"PPD",
}, },
"billing_address":{ "billing_address":{
"first_name": "'.auth()->user()->client->name.'", "first_name": "'.$this->forte->client->name.'",
"last_name": "'.auth()->user()->client->name.'" "last_name": "'.$this->forte->client->name.'"
}, },
"echeck":{ "echeck":{
"one_time_token":"'.$request->payment_token.'" "one_time_token":"'.$request->payment_token.'"

View File

@ -105,8 +105,8 @@ class CreditCard
"authorization_amount":'.$payment_hash->data->total->amount_with_fee.', "authorization_amount":'.$payment_hash->data->total->amount_with_fee.',
"service_fee_amount":'.$payment_hash->data->total->fee_total.', "service_fee_amount":'.$payment_hash->data->total->fee_total.',
"billing_address":{ "billing_address":{
"first_name":"'.auth()->user()->client->name.'", "first_name":"'.$this->forte->client->name.'",
"last_name":"'.auth()->user()->client->name.'" "last_name":"'.$this->forte->client->name.'"
}, },
"card":{ "card":{
"one_time_token":"'.$request->payment_token.'" "one_time_token":"'.$request->payment_token.'"

View File

@ -19,6 +19,8 @@
<input type="hidden" name="dataDescriptor" id="dataDescriptor"/> <input type="hidden" name="dataDescriptor" id="dataDescriptor"/>
<input type="hidden" name="token" id="token"/> <input type="hidden" name="token" id="token"/>
<input type="hidden" name="store_card" id="store_card"/> <input type="hidden" name="store_card" id="store_card"/>
<input type="submit" style="display: none" id="form_btn">
</form>
<div id="forte_errors"></div> <div id="forte_errors"></div>
@ -50,8 +52,6 @@
<span>{{ $slot ?? ctrans('texts.pay_now') }}</span> <span>{{ $slot ?? ctrans('texts.pay_now') }}</span>
</button> </button>
</div> </div>
<input type="submit" style="display: none" id="form_btn">
</form>
@endsection @endsection

View File

@ -16,6 +16,8 @@
@section('gateway_content') @section('gateway_content')
<form action="{{ route('client.payments.response') }}" method="post" id="server_response"> <form action="{{ route('client.payments.response') }}" method="post" id="server_response">
@csrf @csrf
<input type="hidden" name="card_brand" id="card_brand">
<input type="hidden" name="payment_token" id="payment_token">
<input type="hidden" name="payment_hash" value="{{ $payment_hash }}"> <input type="hidden" name="payment_hash" value="{{ $payment_hash }}">
<input type="hidden" name="company_gateway_id" value="{{ $gateway->forte->company_gateway->id }}"> <input type="hidden" name="company_gateway_id" value="{{ $gateway->forte->company_gateway->id }}">
<input type="hidden" name="payment_method_id" value="{{$payment_method_id}}"> <input type="hidden" name="payment_method_id" value="{{$payment_method_id}}">
@ -24,6 +26,8 @@
<input type="hidden" name="dataDescriptor" id="dataDescriptor"/> <input type="hidden" name="dataDescriptor" id="dataDescriptor"/>
<input type="hidden" name="token" id="token"/> <input type="hidden" name="token" id="token"/>
<input type="hidden" name="store_card" id="store_card"/> <input type="hidden" name="store_card" id="store_card"/>
<input type="submit" style="display: none" id="form_btn">
</form>
<div id="forte_errors"></div> <div id="forte_errors"></div>
@ -34,11 +38,9 @@
@include('portal.ninja2020.gateways.includes.payment_details') @include('portal.ninja2020.gateways.includes.payment_details')
@component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Credit Card']) @component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Credit Card'])
<input type="hidden" name="card_brand" id="card_brand">
<input type="hidden" name="payment_token" id="payment_token">
@include('portal.ninja2020.gateways.forte.includes.credit_card') @include('portal.ninja2020.gateways.forte.includes.credit_card')
@endcomponent @endcomponent
<div class="bg-white px-4 py-5 flex justify-end"> <div class="bg-white px-4 py-5 flex justify-end">
<button type="button" <button type="button"
onclick="submitPay()" onclick="submitPay()"
@ -50,8 +52,6 @@
<span>{{ $slot ?? ctrans('texts.pay_now') }}</span> <span>{{ $slot ?? ctrans('texts.pay_now') }}</span>
</button> </button>
</div> </div>
<input type="submit" style="display: none" id="form_btn">
</form>
@endsection @endsection