diff --git a/app/PaymentDrivers/Forte/ACH.php b/app/PaymentDrivers/Forte/ACH.php index 59600ea68454..4795f956d6d0 100644 --- a/app/PaymentDrivers/Forte/ACH.php +++ b/app/PaymentDrivers/Forte/ACH.php @@ -105,8 +105,8 @@ class ACH "sec_code":"PPD", }, "billing_address":{ - "first_name": "'.auth()->user()->client->name.'", - "last_name": "'.auth()->user()->client->name.'" + "first_name": "'.$this->forte->client->name.'", + "last_name": "'.$this->forte->client->name.'" }, "echeck":{ "one_time_token":"'.$request->payment_token.'" diff --git a/app/PaymentDrivers/Forte/CreditCard.php b/app/PaymentDrivers/Forte/CreditCard.php index f5d96f78b5c9..4448fa8028c7 100644 --- a/app/PaymentDrivers/Forte/CreditCard.php +++ b/app/PaymentDrivers/Forte/CreditCard.php @@ -105,8 +105,8 @@ class CreditCard "authorization_amount":'.$payment_hash->data->total->amount_with_fee.', "service_fee_amount":'.$payment_hash->data->total->fee_total.', "billing_address":{ - "first_name":"'.auth()->user()->client->name.'", - "last_name":"'.auth()->user()->client->name.'" + "first_name":"'.$this->forte->client->name.'", + "last_name":"'.$this->forte->client->name.'" }, "card":{ "one_time_token":"'.$request->payment_token.'" diff --git a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php index 1634ba966555..524bdb7e41ff 100644 --- a/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/ach/pay.blade.php @@ -19,40 +19,40 @@ - -
- - @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) - Bank Transfer - @endcomponent - - @include('portal.ninja2020.gateways.includes.payment_details') - - @component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Bank Transfer']) - -
- -
-
- -
- @endcomponent -
- -
+
+ + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) + Bank Transfer + @endcomponent + + @include('portal.ninja2020.gateways.includes.payment_details') + + @component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Bank Transfer']) + +
+ +
+
+ +
+ @endcomponent +
+ +
+ @endsection @section('gateway_footer') diff --git a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php index 3d6df3deca32..ac47cda057cf 100644 --- a/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/forte/credit_card/pay.blade.php @@ -16,6 +16,8 @@ @section('gateway_content')
@csrf + + @@ -24,35 +26,33 @@ - -
- - @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) - {{ ctrans('texts.credit_card') }} - @endcomponent - - @include('portal.ninja2020.gateways.includes.payment_details') - - @component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Credit Card']) - - - @include('portal.ninja2020.gateways.forte.includes.credit_card') - - @endcomponent -
- -
+
+ + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) + {{ ctrans('texts.credit_card') }} + @endcomponent + + @include('portal.ninja2020.gateways.includes.payment_details') + + @component('portal.ninja2020.components.general.card-element', ['title' => 'Pay with Credit Card']) + @include('portal.ninja2020.gateways.forte.includes.credit_card') + @endcomponent + +
+ +
+ @endsection @section('gateway_footer')