/home/kueuepay/www/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**/ ?>
Access Token

Get Access Token

Get access token to initiates payment transaction.

Endpoint: POST generate-token
Parameter Type Comments
client_id string Enter merchant API client/primary key
secret_id string Enter merchant API secret key
env string Enter merchant API environment
merchant_id string Enter merchant API merchant id
Just request to that endpoint with all parameter listed below:
                    
                        Request Example (guzzle)
                        

<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', $base_url. 'v1/generate-token', [
'headers' => [
  'accept' => 'application/json',
  'content-type' => 'application/json',
 ],
'form_params' => [
  'client_id' => '$client_id',
  'secret_id' => 'secret_id',
  'env' => 'env',
  'merchant_id' => 'merchant_id',
 ],
]);
echo $response->getBody();
                    
                        
**Response: SUCCESS (200 OK)**
{
 "message": {
 "success": [
  "Successfully token is generated"
 ]
},
"data": {
 "token":"eyJpdiI6InpkczhjTjhQdVhUL2lKQ0pSUUx6aUE9P
SIsInZhbHVlIjoiVGVBTVBDTXltbjNZcEIvdEJveGpTSno3TU5NRUtn
VkhCZ1pHTFNCUnZGQ2UxMnYxN202cEE1YVRDTEFsc0ZERExoTjdtL0dTL2x
oU3QzeUJJOExiMUx5T0w1L0llUXhTUkU1cWVLWEdEbEplb0dKNXcwbTNRM0
VxdkUwYzZuNFdtNkhMQ0pRZysyNWkvdzBxSlBoSVBSOGFTekNnR2RXNHVtc
G9lMGZOTmNCcm1hR3c5Sk9KTnB4Y3ltZDl6cm90MThrR21Ca3B1azc3bXRi
Q0J6SW96UVo1elNkU1ZqeE05bTcwWGp1MEUxWlJFdnNWTmpSbnVpeW92b2U
4dXZkUGgyb1VmK0luaGdyaFlsVTZlcVpVRnZlTG1DeFF6Ykk2T2h6Z3Jzbn
IyNHpNdHowSE5JdDR0Y0pZT20zUm1XYW8iLCJtYWMiOiJlY2M4NGE1OGUzYz
kzYzk0YzljNmVmNjE0YWI0ZDIwOGI3NDQ2YWEyY2ZhNzc0NzE4ZmY1ZmYyMz
IyZmQzNDY1IiwidGFnIjoiIn0=",
},
"type": "success"
}
                    
                        
**Response: ERROR (400 FAILED)**
{
 "message": {
 "error": [
  "Invalid credentials."
 ]
},
"data": null,
"type": "error"
}