⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
resources
/
views
/
invoice
/
View File Name :
paymentwall.blade.php
<head> <meta name="csrf-token" content="{{ csrf_token() }}"> </head> @php $invoice = $data['invoice_id']; $invoice_id = \Illuminate\Support\Facades\Crypt::decrypt($invoice); $price = $data['amount']; @endphp <script src="https://api.paymentwall.com/brick/build/brick-default.1.5.0.min.js"> </script> <div id="payment-form-container"> </div> <script> var brick = new Brick({ public_key: '{{ $company_payment_setting['paymentwall_public_key'] }}', // please update it to Brick live key before launch your project amount: '{{ $price }}', currency: '{{App\Models\Utility::getValByName('site_currency')}}', container: 'payment-form-container', action: '{{route("invoice.pay.with.paymentwall",[$data["invoice_id"],"amount" => $data["amount"]])}}', form: { merchant: 'Paymentwall', product: '{{$invoice_id}}', pay_button: 'Pay', show_zip: true, // show zip code show_cardholder: true // show card holder name } }); brick.showPaymentForm(function(data) { if(data.flag == 1){ window.location.href ='{{route("error.invoice.show",[1, 'invoice_id'])}}'.replace('invoice_id',data.invoice); }else{ window.location.href ='{{route("error.invoice.show",[2, 'invoice_id'])}}'.replace('invoice_id',data.invoice); } }, function(errors) { if(errors.flag == 1){ window.location.href ='{{route("error.invoice.show",[1,'invoice_id'])}}'.replace('invoice_id',errors.invoice); }else{ window.location.href ='{{route("error.invoice.show",[2, 'invoice_id'])}}'.replace('invoice_id',errors.invoice); } }); </script>