관리-도구
편집 파일: bbca69f494a17b7fc69c696ec6248d3a59f705f0.php
<button type="button" class="pay-now-btn" onclick="payWithPaystack()"> <?php echo e(_lang('Pay Now')); ?></button> <script src="https://js.paystack.co/v1/inline.js"></script> <script type="text/javascript"> function payWithPaystack(e) { let handler = PaystackPop.setup({ key: '<?php echo e(get_option('paystack_public_key')); ?>', email: '<?php echo e($order->customer_email); ?>', amount: <?php echo e(convert_currency_2(1, $order->currency_rate, ($order->total * 100))); ?>, currency: '<?php echo e($order->currency); ?>', firstname: '<?php echo e($order->customer_name); ?>', ref: '<?php echo e($order->id); ?>', callback: function(response){ window.location = "<?php echo e(url('gateway/paystack_payment_authorize/'.$order->id)); ?>/" + response.reference; } }); handler.openIframe(); } </script> <?php /**PATH /home/customamgdigital/saintsaccessories.custom.amgdigitalagency.com/resources/views/theme/default/gateways/paystack.blade.php ENDPATH**/ ?>