diff --git a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php index 913673f9592a..dcb862520a91 100644 --- a/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php +++ b/app/PaymentDrivers/Authorize/AuthorizeCreditCard.php @@ -12,6 +12,7 @@ namespace App\PaymentDrivers\Authorize; +use App\Models\ClientGatewayToken; use App\PaymentDrivers\AuthorizePaymentDriver; /** @@ -30,7 +31,15 @@ class AuthorizeCreditCard public function processPaymentView($data) { + $tokens = ClientGatewayToken::where('client_id', $this->authorize->client->id) + ->where('company_gateway_key', $this->authorize->company_gateway->gateway_key) + ->where('gateway_type_id', $this->authorize->payment_method_id) + ->get(); + $data['tokens'] = $tokens; + $data['gateway'] = $this->authorize->company_gateway; + + return render('portal.ninja202.gateways.authorize.credit_card_payment', $data); } } \ No newline at end of file diff --git a/resources/views/portal/ninja2020/gateways/authorize/credit_card_payment.blade.php b/resources/views/portal/ninja2020/gateways/authorize/credit_card_payment.blade.php new file mode 100644 index 000000000000..5b0a6fc04a98 --- /dev/null +++ b/resources/views/portal/ninja2020/gateways/authorize/credit_card_payment.blade.php @@ -0,0 +1,67 @@ +@extends('portal.ninja2020.layout.app') +@section('meta_title', ctrans('texts.add_credit_card')) + +@push('head') + + +@endpush + +@section('body') +
+