/home/kueuepay/public_html/storage/framework/views/a0e68471f00c5100502949ad1ec5f84e9f08a077.php
<?php
    $app_local  = get_default_language_code();
    $slug       = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::LOGIN_SECTION);
    $login      = App\Models\Admin\SiteSections::getData($slug)->first();
?>


<?php $__env->startPush('css'); ?>
    
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Start Account
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="account-section ptb-80">
    <div class="container">
        <div class="account-wrapper">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="account-img">
                        <img src="<?php echo e(get_image($login->value->image ?? '','site-section')); ?>">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="account-form">
                        <form action="<?php echo e(setRoute('login.submit',$data->identifier)); ?>" class="account-form" method="POST">
                            <?php echo csrf_field(); ?>
                            <h3 class="title"><?php echo e($login->value->language->$app_local->title ?? $login->value->language->$default->title ?? ''); ?></h3>
                            <p><?php echo e($login->value->language->$app_local->heading ?? $login->value->language->$default->heading ?? ''); ?></p>
                            <div class="row">
                                <div class="col-lg-12 form-group">
                                    <label><?php echo e(__("Email")); ?></label>
                                    <input type="email" class="form-control form--control" name="credentials" placeholder="<?php echo e(__("Enter Email")); ?>...">
                                </div>
                                <div class="col-lg-12 form-group show_hide_password">
                                    <label><?php echo e(__("Password")); ?></label>
                                    <input type="password" class="form-control form--control" name="password" placeholder="<?php echo e(__("Enter Password")); ?>...">
                                    <span class="show-pass"><i class="fa fa-eye-slash" aria-hidden="true"></i></span>
                                </div>
                                <div class="col-lg-12 form-group text-center">
                                    <button type="submit" class="btn--base w-100"><?php echo e(__("Login Now")); ?></button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    End Account
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script'); ?>
    
<?php $__env->stopPush(); ?>
<?php echo $__env->make('frontend.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\git\nfcpay\resources\views/order/auth/login.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"
}