/home/kueuepay/public_html/storage/framework/views/ec00e109203ac0d2d5a338a203901e507222f150.php
<?php
    $app_local  = get_default_language_code();
    $default    = App\Constants\LanguageConst::NOT_REMOVABLE;
    $slug       = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::CHOOSE_US_SECTION);
    $choose_us  = App\Models\Admin\SiteSections::getData($slug)->first();
?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Why Choice Us Section
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="why-choice-us-section pt-80">
    <div class="container">
        <div class="section-tag">
            <span class="d-flex align-items-center">
                <p><?php echo e($choose_us->value->language->$app_local->title ?? $choose_us->value->language->$default->title ?? ''); ?></p> <i class="las la-cog"></i>
            </span>
            <div class="section-element">
                <img src="<?php echo e(asset('public/frontend')); ?>/images/element/section-element.webp">
            </div>
        </div>
        <div class="row">
            <div class="col-xl-8 col-lg-10"> 
                <div class="section-title mb-40">
                    <h2 class="title"><?php echo e($choose_us->value->language->$app_local->heading ?? $choose_us->value->language->$default->heading ?? ''); ?></h2>
                    <p class="sub-title"><?php echo e($choose_us->value->language->$app_local->sub_heading ?? $choose_us->value->language->$default->sub_heading ?? ''); ?>

                    </p>
                </div>
            </div>
        </div>
        <div class="choice-us-wrapper mb-30-none">
            <?php
                $step = 1;
            ?>
            <?php $__currentLoopData = $choose_us->value->items ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="choice-us-card mb-30">
                    <div class="card-number">
                        <span><?php echo e($step++); ?></span>
                    </div>
                    <div class="card-details-wrapper">
                        <div class="content">
                            <h3 class="title"><?php echo e($item->language->$app_local->item_title ?? $item->language->$default->item_title ?? ''); ?></h3>
                            <p><?php echo e($item->language->$app_local->item_heading ?? $item->language->$default->item_heading ?? ''); ?></p>
                        </div>
                        <div class="icon">
                            <i class="<?php echo e($item->icon); ?>"></i>
                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
    </div>
</section>

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<?php /**PATH D:\xampp\htdocs\git\nfcpay\resources\views/frontend/section/choice-us.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"
}