/home/kueuepay/public_html/storage/framework/views/5fc785ae31ff079b6ac0f2a6ff1ce1b736b032b0.php
<?php
    $app_local  = get_default_language_code();
    $default    = App\Constants\LanguageConst::NOT_REMOVABLE;
    $slug       = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::CONTACT_US_SECTION);
    $contact    = App\Models\Admin\SiteSections::getData($slug)->first();
?>

<?php $__env->startSection('content'); ?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Start Contact
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="contact-section ptb-80">
    <div class="container">
        <div class="section-tag">
            <span class="d-flex align-items-center">
                <p><?php echo e($contact->value->language->$app_local->title ?? $contact->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 pb-40">
            <div class="col-xl-8 lg-10">
                <h2 class="title"><?php echo e($contact->value->language->$app_local->heading ?? $contact->value->language->$default->heading ?? ''); ?></h2>
                <p><?php echo e($contact->value->language->$app_local->sub_heading ?? $contact->value->language->$default->sub_heading ?? ''); ?></p>
            </div>
        </div>
        <div class="contact-wrapper">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="massage-box">
                        <form class="contact-form" action="<?php echo e(setRoute('frontend.contact.message.send')); ?>" method="POST">
                            <?php echo csrf_field(); ?>
                            <div class="row justify-content-center mb-10-none">
                                <div class="col-xl-12  form-group">
                                    <label><?php echo e(__("Name")); ?><span>*</span></label>
                                    <input type="text" name="name" class="form--control" placeholder="<?php echo e(__("Enter Name")); ?>...">
                                </div>
                                <div class="col-xl-12  form-group">
                                    <label><?php echo e(__("Email")); ?><span>*</span></label>
                                    <input type="email" name="email" class="form--control" placeholder="<?php echo e(__("Enter Email")); ?>...">
                                </div>
                                <div class="col-xl-12 col-lg-12 form-group">
                                    <label><?php echo e(__("Message")); ?><span>*</span></label>
                                    <textarea class="form--control" name="message" placeholder="<?php echo e(__("Write Here")); ?>..."></textarea>
                                </div>
                                <div class="col-lg-12 form-group">
                                    <button type="submit" class="btn--base"><?php echo e(__("Send Message")); ?></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="contact-box">
                        <div class="row justify-content-center mb-30-none">
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="<?php echo e(asset('public/frontend')); ?>/images/element/location.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title"><?php echo e(__("Our Location")); ?></h4>
                                        <span class="sub-title"><?php echo e($contact->value->address ?? ''); ?></span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="<?php echo e(asset('public/frontend')); ?>/images/element/mobile.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title"><?php echo e(__("Call us on")); ?>: <?php echo e($contact->value->phone ?? ''); ?></h4>
                                        <?php $__currentLoopData = $contact->value->schedules ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <span class="sub-title"><?php echo e(__("Our office hours")); ?> <?php echo e($item->schedule ?? ''); ?></span>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-12 mb-30">
                                <div class="contact-widget">
                                    <div class="contact-item-icon">
                                        <img src="<?php echo e(asset('public/frontend')); ?>/images/element/email.gif" alt="icon">
                                    </div>
                                    <div class="contact-item-content">
                                        <h4 class="title"><?php echo e(__("Email us directly")); ?></h4>
                                        <span class="sub-title"><?php echo e($contact->value->email ?? ''); ?></span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    End Contact
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kueuepay/public_html/resources/views/frontend/pages/contact.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"
}