PATH:
home
/
lab2454c
/
.trash
/
core
/
resources
/
views
/
templates
/
basic
/
user
/
payment
@extends($activeTemplate.'layouts.frontend') @section('content') <section class="dashboard-section pt-60 pb-60"> <div class="container"> <div class="pt-60 pb-60"> <div class="row"> <div class="col-xl-3"> @include($activeTemplate . 'partials.sidebar') </div> <div class="col-xl-9"> <div class="mb-4 d-xl-none text-end"> <div class="sidebar__init"> <i class="las la-columns"></i> </div> </div> <div class="card card-deposit custom--card"> <div class="card-body"> <div class="img"> <img src="{{$deposit->gatewayCurrency()->methodImage()}}" class="card-img-top" alt="@lang('Image')" class="w-100"> </div> <div class="text-center mt-4"> <h6>@lang('Please Pay') {{showAmount($deposit->final_amo)}} {{__($deposit->method_currency)}}</h6> <h6 class="my-3">@lang('To Get') {{showAmount($deposit->amount)}} {{__($general->cur_text)}}</h6> <button type="button" class="cmn--btn" id="btn-confirm" onClick="payWithRave()">@lang('Pay Now')</button> </div> </div> </div> </div> </div> </div> </div> </section> @endsection @push('script') <script src="https://api.ravepay.co/flwv3-pug/getpaidx/api/flwpbf-inline.js"></script> <script> "use strict" var btn = document.querySelector("#btn-confirm"); btn.setAttribute("type", "button"); const API_publicKey = "{{$data->API_publicKey}}"; function payWithRave() { var x = getpaidSetup({ PBFPubKey: API_publicKey, customer_email: "{{$data->customer_email}}", amount: "{{$data->amount }}", customer_phone: "{{$data->customer_phone}}", currency: "{{$data->currency}}", txref: "{{$data->txref}}", onclose: function () { }, callback: function (response) { var txref = response.tx.txRef; var status = response.tx.status; var chargeResponse = response.tx.chargeResponseCode; if (chargeResponse == "00" || chargeResponse == "0") { window.location = '{{ url('ipn/flutterwave') }}/' + txref + '/' + status; } else { window.location = '{{ url('ipn/flutterwave') }}/' + txref + '/' + status; } // x.close(); // use this to close the modal immediately after payment. } }); } </script> @endpush
[-] Razorpay.blade.php
[edit]
[-] StripeV3.blade.php
[edit]
[-] crypto.blade.php
[edit]
[+]
..
[-] redirect.blade.php
[edit]
[-] deposit.blade.php
[edit]
[-] Voguepay.blade.php
[edit]
[-] Stripe.blade.php
[edit]
[-] Flutterwave.blade.php
[edit]
[-] StripeJs.blade.php
[edit]
[-] Paystack.blade.php
[edit]
[-] preview.blade.php
[edit]