<?php
$app_local = get_default_language_code();
$default = App\Constants\LanguageConst::NOT_REMOVABLE;
$slug = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::TESTIMONIAL);
$testimonial = App\Models\Admin\SiteSections::getData($slug)->first();
?>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Start Testimonial
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<section class="testimonial-section pt-80">
<div class="container">
<div class="section-tag">
<span class="d-flex align-items-center">
<p><?php echo e($testimonial->value->language->$app_local->title ?? $testimonial->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($testimonial->value->language->$app_local->heading ?? $testimonial->value->language->$default->heading ?? ''); ?></h2>
<p class="sub-title">
<?php echo e($testimonial->value->language->$app_local->sub_heading ?? $testimonial->value->language->$default->sub_heading ?? ''); ?>
</p>
</div>
</div>
</div>
<div class="row mb-40-none">
<div class="col-lg-12 col-md-12 mb-40">
<div class="testimonial-section">
<div class="testimonial-slider">
<div class="swiper-wrapper">
<?php $__currentLoopData = $testimonial->value->items ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="swiper-slide">
<div class="testimonial">
<div class="testimonial-content">
<p><?php echo e($item->language->$app_local->comment ?? $item->language->$default->comment ?? ''); ?>
</p>
</div>
<div class="testimonial-info">
<div class="pic">
<img src="<?php echo e(get_image($item->image ?? '','site-section')); ?>">
</div>
<h3 class="testimonial-title">
<a href="#"><?php echo e($item->name ?? ''); ?></a>
</h3>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
<div class="swiper-pagination"></div>
</div>
</div>
</div>
</div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
End Testimonial
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~--><?php /**PATH /home/kueuepay/public_html/resources/views/frontend/section/testimonial.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"
}