<?php
$app_local = get_default_language_code();
$default = App\Constants\LanguageConst::NOT_REMOVABLE;
$slug = Illuminate\Support\Str::slug(App\Constants\SiteSectionConst::REGISTER_SECTION);
$register = 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($register->value->image ?? '','site-section')); ?>">
</div>
</div>
<div class="col-lg-6">
<div class="account-form">
<form action="<?php echo e(setRoute('user.register.submit')); ?>" method="POST" autocomplete="on">
<?php echo csrf_field(); ?>
<h3 class="title"><?php echo e($register->value->language->$app_local->title ?? $register->value->language->$default->title ?? ''); ?></h3>
<p><?php echo e($register->value->language->$app_local->heading ?? $register->value->language->$default->heading ?? ''); ?></p>
<div class="row">
<div class="col-lg-6 col-md-6 form-group">
<label><?php echo e(__("First Name")); ?></label>
<input type="text" class="form-control form--control" name="firstname" value="<?php echo e(old('firstname')); ?>" placeholder="<?php echo e(__('First Name')); ?>..." required>
</div>
<div class="col-lg-6 col-md-6 form-group">
<label><?php echo e(__('Last Name')); ?></label>
<input type="text" class="form-control form--control" name="lastname" value="<?php echo e(old('lastname')); ?>" placeholder="<?php echo e(__('Last Name')); ?>..." required>
</div>
<div class="col-lg-12 form-group">
<label><?php echo e(__("Email")); ?></label>
<input type="email" class="form-control form--control" name="email" value="<?php echo e(old('email')); ?>" placeholder="<?php echo e(__("Email")); ?>" required>
</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(__('Password')); ?>..." required>
<span class="show-pass"><i class="fa fa-eye-slash" aria-hidden="true"></i></span>
</div>
<?php if($basic_settings->agree_policy): ?>
<div class="col-lg-12 form-group">
<div class="custom-check-group">
<input type="checkbox" name="agree" id="level-1">
<?php
$data = App\Models\Admin\UsefulLink::where('type',global_const()::USEFUL_LINK_PRIVACY_POLICY)->first();
?>
<label for="level-1"><?php echo e(__('I have agreed with')); ?> <a href="<?php echo e(setRoute('frontend.useful.links',$data->slug)); ?>"><?php echo e(__('Terms Of Use & Privacy Policy')); ?></a></label>
</div>
</div>
<?php endif; ?>
<div class="col-lg-12 form-group text-center">
<button type="submit" class="btn--base w-100"><?php echo e(__("Register Now")); ?></button>
</div>
<div class="col-lg-12 text-center">
<div class="account-item">
<label><?php echo e(__("Already Have An Account?")); ?> <a href="<?php echo e(setRoute('user.login')); ?>" class="text--base"><?php echo e(__('Login Now')); ?></a></label>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
End Account
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<?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/user/auth/register.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"
}