/home/kueuepay/public_html/storage/framework/views/57a1a4026aa4b51b6427425e68b6a5602dd31e52.php
<?php
    $app_local      = get_default_language_code();
    $slug           = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::FOOTER_SECTION);
    $footer         = App\Models\Admin\SiteSections::getData($slug)->first();
    $subscribe_slug = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::SUBSCRIBE_SECTION);
    $subscribe      = App\Models\Admin\SiteSections::getData($subscribe_slug)->first();
    $useful_links   = App\Models\Admin\UsefulLink::where('status',true)->get()
?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Start Footer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<footer class="footer-section bg_img" data-background="<?php echo e(asset('public/frontend/')); ?>/images/element/footer-bg.webp">
    <div class="container mx-auto">
        <div class="footer-content pt-60">
            <div class="row">
                <div class="col-xl-4 col-lg-4 mb-50">
                    <div class="footer-widget">
                        <div class="footer-text">
                            <a href="<?php echo e(setRoute('frontend.index')); ?>"><img src="<?php echo e(@$footer->value->footer->image ? get_image($footer->value->footer->image ?? '','site-section') : get_logo($basic_settings)); ?>" alt="image"></a>
                            <p><?php echo e($footer->value->footer->language->$app_local->description ??  $footer->value->footer->language->$default->description ?? ''); ?></p>
                        </div>
                        <div class="footer-social-icon">
                            <?php
                                $items = $footer->value->social_links ?? [];
                            ?>
                            <span><?php echo e(__("Follow us")); ?> :</span>
                            <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <a href="<?php echo e($item->link ?? ""); ?>" target="_blank"><i class="<?php echo e($item->icon ?? ""); ?>"></i></a>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>
                    </div>
                </div>
                <div class="col-xl-4 col-lg-4 col-md-6 mb-30">
                    <div class="footer-widget">
                        <div class="footer-widget-heading">
                            <h3><?php echo e(__("Useful Links")); ?></h3>
                        </div>
                        <ul>
                            <?php $__currentLoopData = $useful_links ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <li><a href="<?php echo e(setRoute('frontend.useful.links',$item->slug)); ?>"><?php echo e($item->title->language->$app_local->title ??$item->title->language->$default->title ?? ""); ?></a></li>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </ul>
                    </div>
                </div>
                <div class="col-xl-4 col-lg-4 col-md-6 mb-50">
                    <div class="footer-widget">
                        <div class="footer-widget-heading">
                            <h3><?php echo e($subscribe->value->language->$app_local->title ??  $subscribe->value->language->$default->title ?? ''); ?></h3>
                        </div>
                        <div class="footer-text mb-25">
                            <p><?php echo e($subscribe->value->language->$app_local->description ??  $subscribe->value->language->$default->description ?? ''); ?></p>
                        </div>
                        <div class="subscribe-form">
                            <form id="subscribe-form" action="<?php echo e(setRoute('frontend.subscribe')); ?> " method="POST">
                                <?php echo csrf_field(); ?>
                                <input type="email" name="email" placeholder="<?php echo e(__("Email Address")); ?>">
                                <button><i class="fab fa-telegram-plane"></i></button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="copyright-area">
        <div class="container">
            <div class="row">
                <div class="col-12 text-center text-lg-left">
                    <div class="copyright-text">
                        <p><?php echo e(__("Copyright")); ?> &copy; <?php echo e(date('Y')); ?>, <?php echo e(__("All Rights Reserved By")); ?> <a href="<?php echo e(setRoute('frontend.index')); ?>"><?php echo e($basic_settings->site_name); ?></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</footer>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    End Footer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--><?php /**PATH D:\xampp\htdocs\git\nfcpay\resources\views/frontend/partials/footer.blade.php ENDPATH**/ ?>
Initiate Payment

Initiate Payment

Initiates a new payment transaction.

Endpoint: POST create-order
Parameter Type Details
amount decimal Your Amount , Must be rounded at 2 precision.
currency string Currency Code, Must be in Upper Case (Alpha-3 code)
success_url string Enter your return or success URL
cancel_url string (optional) Enter your cancel or failed URL
                    
                        Request Example (guzzle)
                        

<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $base_url.'create-order', [
'headers' => [
  'Authorization' => 'Bearer '. $authorizationToken,
  'accept' => 'application/json',
  'content-type' => 'application/json',
 ],
'form_params' => [
  'amount' => '$amount',
  'currency' => 'currency',
  'success_url' => 'success_url',
  'cancel_url' => 'cancel_url',
 ],
]);
echo $response->getBody();
                    
                        
**Response: SUCCESS (200 OK)**
{
 "message": {
 "success": [
  "Order created successfully."
 ]
},
"data": {
 "redirect_url":"https://example.com/login/OISADFDFSDFSF",
 "order_details":{
 "amount" : "10",
 "fixed_charge" : 2,
 "percent_charge" : 1,
 "total_charge" : 3,
 "total_payable" : 13,
 "currency" : "USD",
 "expiry_time": "2024-04-25T06:48:35.984285Z",
 "success_url": "http://127.0.0.1/nfcpay/user/transaction/success",
 "cancel_url": "http://127.0.0.1/nfcpay/user/transaction/cancel"
}
},
"type": "success"
}
                    
                        
**Response: ERROR (400 FAILED)**
{
 "message": {
 "error": [
  "Invalid token."
 ]
},
"data": null,
"type": "error"
}