diff --git a/resources/js/clients/payments/alipay.js b/resources/js/clients/payments/alipay.js index 029db7af49ea..a59699482c24 100644 --- a/resources/js/clients/payments/alipay.js +++ b/resources/js/clients/payments/alipay.js @@ -31,9 +31,7 @@ class ProcessAlipay { }, }; - document.getElementById('pay-now').addEventListener('submit', (e) => { - e.preventDefault(); - + document.getElementById('pay-now').addEventListener('click', (e) => { document.getElementById('pay-now-button').disabled = true; document.querySelector('#pay-now-button > svg').classList.add('hidden'); document.querySelector('#pay-now-button > span').classList.remove('hidden'); diff --git a/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php index f7167bbd0f4c..3964bd88ff87 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/alipay/pay.blade.php @@ -1,61 +1,25 @@ -@extends('portal.ninja2020.layout.app') -@section('meta_title', ctrans('texts.alipay')) +@extends('portal.ninja2020.layout.payments', ['gateway_title' => 'Alipay (Stripe)', 'card_title' => 'Alipay (Stripe)']) -@push('head') +@section('gateway_head') -@endpush +@endsection -@section('body') -
-
-
- -
-
-

- {{ ctrans('texts.pay_now') }} -

-

- {{ ctrans('texts.complete_your_payment') }} -

-
-
-
-
- {{ ctrans('texts.payment_type') }} -
-
- {{ ctrans('texts.alipay') }} -
-
-
-
- {{ ctrans('texts.amount') }} -
-
- {{ App\Utils\Number::formatMoney($amount, $client) }} -
-
-
- -
-
-
-
-
-
+@section('gateway_content') + + + @include('portal.ninja2020.gateways.includes.payment_details') + + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) + {{ ctrans('texts.alipay') }} + @endcomponent + + @include('portal.ninja2020.gateways.includes.pay_now') @endsection @push('footer') - -@endpush \ No newline at end of file + +@endpush diff --git a/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php b/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php index 3393a87c75b7..29b99a5fef2e 100644 --- a/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php +++ b/resources/views/portal/ninja2020/gateways/stripe/sofort/pay.blade.php @@ -10,6 +10,8 @@ @section('gateway_content') + @include('portal.ninja2020.gateways.includes.payment_details') + @component('portal.ninja2020.components.general.card-element', ['title' => ctrans('texts.payment_type')]) {{ ctrans('texts.sofort') }} ({{ ctrans('texts.bank_transfer') }}) @endcomponent diff --git a/webpack.mix.js b/webpack.mix.js index 6a2fd6e37d05..86da49543d66 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -27,8 +27,8 @@ mix.js("resources/js/app.js", "public/js") "public/js/clients/payments/stripe-sofort.js" ) .js( - "resources/js/clients/payments/alipay.js", - "public/js/clients/payments/alipay.js" + "resources/js/clients/payments/stripe-alipay.js", + "public/js/clients/payments/stripe-alipay.js" ) .js( "resources/js/clients/payments/checkout.com.js",