From 6435725d0f37dfd327ac6bf0ac68add1ea81445d Mon Sep 17 00:00:00 2001 From: = Date: Sat, 19 Jun 2021 11:18:57 +1000 Subject: [PATCH] Payment layout for wepay credit card --- app/PaymentDrivers/WePay/CreditCard.php | 2 +- .../gateways/wepay/credit_card/pay.blade.php | 169 ++++++++++++++++++ 2 files changed, 170 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/WePay/CreditCard.php b/app/PaymentDrivers/WePay/CreditCard.php index fb5b1fe56c75..b88da429fa89 100644 --- a/app/PaymentDrivers/WePay/CreditCard.php +++ b/app/PaymentDrivers/WePay/CreditCard.php @@ -99,7 +99,7 @@ class CreditCard public function paymentResponse(PaymentResponseRequest $request) { - +nlog($request->all()); // // charge the credit card // $response = $wepay->request('checkout/create', array( // 'account_id' => $account_id, diff --git a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php index e69de29bb2d1..dc0163c5bfd9 100644 --- a/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/wepay/credit_card/pay.blade.php @@ -0,0 +1,169 @@ +@extends('portal.ninja2020.layout.payments', ['gateway_title' => ctrans('texts.credit_card'), 'card_title' => ctrans('texts.credit_card')]) + +@section('gateway_head') + + + +@endsection + +@section('gateway_content') +
+ @csrf + + + + + + + + +
+ + + + @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' => ctrans('texts.pay_with')]) + @if(count($tokens) > 0) + @foreach($tokens as $token) + + @endforeach + @endisset + + + @endcomponent + + @include('portal.ninja2020.gateways.includes.save_card') + + @include('portal.ninja2020.gateways.wepay.includes.credit_card') + + @include('portal.ninja2020.gateways.includes.pay_now') +@endsection + +@section('gateway_footer') + + + +@endsection