<?php $__env->startSection('content'); ?>
<?php
$cross_icon = '<div class="doc-loader text-center">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.2 130.2">
<circle class="path circle" fill="none" stroke="#d63384" stroke-width="6" stroke-miterlimit="10" cx="65.1" cy="65.1" r="62.1"/>
<line class="path line" fill="none" stroke="#d63384" stroke-width="6" stroke-linecap="round" stroke-miterlimit="10" x1="34.4" y1="37.9" x2="95.8" y2="92.3"/>
<line class="path line" fill="none" stroke="#d63384" stroke-width="6" stroke-linecap="round" stroke-miterlimit="10" x1="95.8" y1="38" x2="34.4" y2="92.2"/>
</svg>
</div>';
$check_icon = '<div class="doc-loader text-center">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 130.2 130.2">
<circle class="path circle" fill="none" stroke="#328AF1" stroke-width="6" stroke-miterlimit="10" cx="65.1" cy="65.1" r="62.1"/>
<polyline class="path check" fill="none" stroke="#328AF1" stroke-width="6" stroke-linecap="round" stroke-miterlimit="10" points="100.2,40.2 51.5,88.8 29.8,67.5 "/>
</svg>
</div>';
?>
<div class="doc-inner">
<div class="doc-wrapper w-100">
<h2 class="inner-title"><?php echo e(__("Project Installation Server")); ?> <span><?php echo e(__("Requirements")); ?></span></h2>
<h4 class="mt-10 text--white fw-normal">PHP Version</h4>
<ul class="doc-list">
<li>
<div class="<?php echo e(($requirements['php']['version']['status'] == false) ? 'text-danger' : 'text-success'); ?> fw-bold">
<?php echo e($requirements['php']['version']['server_v']); ?>
</div>
<?php if($requirements['php']['version']['status'] == true): ?>
<?php echo $check_icon; ?>
<?php else: ?>
<?php echo $cross_icon; ?>
<?php endif; ?>
</li>
<?php if($requirements['php']['version']['status'] == false): ?>
<div class="text-sm text-danger"><?php echo e($requirements['php']['version']['message']); ?></div>
<?php endif; ?>
</ul>
<h4 class="mt-10 text--white fw-normal">PHP Extensions</h4>
<ul class="doc-list">
<?php $__currentLoopData = $requirements['php']['extensions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
<div class="<?php echo e(($item['status'] == false) ? 'text-danger' : 'text-success'); ?> fw-bold">
<?php echo e($item['name']); ?>
</div>
<?php if($item['status'] == true): ?>
<?php echo $check_icon; ?>
<?php else: ?>
<?php echo $cross_icon; ?>
<?php endif; ?>
</li>
<?php if($item['status'] == false): ?>
<div class="text-sm text-danger"><?php echo e($item['message']); ?></div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php if(count($requirements['server']) > 0): ?>
<h4 class="mt-10 text--white fw-normal">Server Information</h4>
<ul class="doc-list">
<?php $__currentLoopData = $requirements['server']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<li>
<div class="<?php echo e(($item['status'] == false) ? 'text-danger' : 'text-success'); ?> fw-bold">
<?php echo e($item['name']); ?>
</div>
<?php if($item['status'] == true): ?>
<?php echo $check_icon; ?>
<?php else: ?>
<?php echo $cross_icon; ?>
<?php endif; ?>
</li>
<?php if($item['status'] == false): ?>
<div class="text-sm text-danger"><?php echo e($item['message']); ?></div>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</ul>
<?php endif; ?>
<div class="doc-btn mt-20 d-flex align-items-center justify-content-between gap-3">
<a href="<?php echo e(route('project.install.welcome')); ?>" class="btn--base bg--primary">⋘ <?php echo e(__("Back")); ?></a>
<a href="<?php echo e(route('project.install.validation.form')); ?>" class="btn--base"><?php echo e(__("Next")); ?> ⋙</a>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('installer.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\xampp\htdocs\Projects\Version\nfcpay\v1.0.0\nfcpay-web-v1.0.0\resources\installer\src\views/installer/pages/requirements.blade.php ENDPATH**/ ?>
Initiates a new payment transaction.
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"
}