/home/kueuepay/public_html/storage/framework/views/989c4e1d6b21b0af5b80960310a776bb49b61316.php

<?php $__env->startSection('content'); ?>
<div class="developer-body-wrapper">
    <div class="developer-main-wrapper">
        <div class="row mb-30-none">
            <div class="col-lg-6 mb-30">
                <h1 class="heading-title mb-20"><?php echo e(__("Initiate Payment")); ?></h1>
                <p><?php echo e(__("Initiates a new payment transaction.")); ?></p>
                <div class="mb-10">
                    <strong><?php echo e(__("Endpoint")); ?>:</strong> <span class="badge custom rounded-pill bg-primary">POST</span> <code class="fw-bold fs-6" style="color: #EE8D1D;"><code></code>create-order</code>
                </div>
                <div class="table-responsive">
                    <table class="table table-striped token-table">
                        <thead>
                          <tr>
                            <th scope="col"><?php echo e(__("Parameter")); ?></th>
                            <th scope="col"><?php echo e(__("Type")); ?></th>
                            <th scope="col"><?php echo e(__("Details")); ?></th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <th scope="row">amount</th>
                            <td>decimal</td>
                            <td><?php echo e(__("Your Amount , Must be rounded at 2 precision.")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">currency</th>
                            <td>string</td>
                            <td><?php echo e(__("Currency Code, Must be in Upper Case (Alpha-3 code)")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">success_url</th>
                            <td>string</td>
                            <td><?php echo e(__("Enter your return or success URL")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">cancel_url</th>
                            <td>string (optional)</td>
                            <td><?php echo e(__("Enter your cancel or failed URL")); ?></td>
                          </tr>
                        </tbody>
                      </table>
                </div>
            </div>
            <div class="col-lg-6 mb-30">
                <pre class="prettyprint mt-0" style="white-space: normal;">
                    <span class="code-show-list">
                        <span>Request Example (guzzle)</span>
                        <br>
                        <span>
                            <br>&lt;?php
                            <br> require_once('vendor/autoload.php');
                            <br> $client = new \GuzzleHttp\Client();
                            <br> $response = $client->request('POST', $base_url.'create-order', [
                            <br>'headers' => [
                            <br>&nbsp;&nbsp;'Authorization' => 'Bearer '. $authorizationToken,
                            <br>&nbsp;&nbsp;'accept' => 'application/json',
                            <br>&nbsp;&nbsp;'content-type' => 'application/json',
                            <br>&nbsp;],
                            <br>'form_params' => [
                            <br>&nbsp;&nbsp;'amount'        => '$amount',
                            <br>&nbsp;&nbsp;'currency'      => 'currency',
                            <br>&nbsp;&nbsp;'success_url'   => 'success_url',
                            <br>&nbsp;&nbsp;'cancel_url'    => 'cancel_url',
                            <br>&nbsp;],
                            
                            <br>]);
                            <br>echo $response->getBody();
                        </span>
                    </span>
                </pre>
                <pre class="prettyprint mt-0" style="white-space: normal;">
                    <span class="code-show-list">
                        <br>**Response: SUCCESS (200 OK)**
                        <br>{
                        <br>&nbsp;"message": {
                        <br>&nbsp;"success": [
                        <br>&nbsp;&nbsp;"Order created successfully."
                        <br>&nbsp;]
                        <br>},
                        <br>"data": {
                            <br>&nbsp;"redirect_url":"https://example.com/login/OISADFDFSDFSF",
                            <br>&nbsp;"order_details":{
                                <br>&nbsp;"amount" : "10",
                                <br>&nbsp;"fixed_charge" : 2,
                                <br>&nbsp;"percent_charge" : 1,
                                <br>&nbsp;"total_charge" : 3,
                                <br>&nbsp;"total_payable" : 13,
                                <br>&nbsp;"currency" : "USD",
                                <br>&nbsp;"expiry_time": "2024-04-25T06:48:35.984285Z",
                                <br>&nbsp;"success_url": "http://127.0.0.1/nfcpay/user/transaction/success",
                                <br>&nbsp;"cancel_url": "http://127.0.0.1/nfcpay/user/transaction/cancel"
                                <br>}
                            <br>},
                        <br>"type": "success"
                        <br>}
                    </span>
                </pre>
                <pre class="prettyprint mt-0" style="white-space: normal;">
                    <span class="code-show-list">
                        <br>**Response: ERROR (400 FAILED)**
                        <br>{
                        <br>&nbsp;"message": {
                        <br>&nbsp;"error": [
                        <br>&nbsp;&nbsp;"Invalid token."
                        <br>&nbsp;]
                        <br>},
                        <br>"data": null,
                        <br>"type": "error"
                        <br>}
                    </span>
                </pre>
            </div>
        </div>
    </div>
    <div class="page-change-area">
        <div class="navigation-wrapper">
            <a href="<?php echo e(setRoute('frontend.developer.access.token')); ?>" class="left"><i class="las la-arrow-left me-1"></i>  <?php echo e(__("Access Token")); ?></a>
            <a href="<?php echo e(setRoute('frontend.developer.check.payment')); ?>" class="right"><?php echo e(__("Check Payment Status")); ?> <i class="las la-arrow-right ms-1"></i></a>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('developer.layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/kueuepay/public_html/resources/views/developer/pages/initiate-payment.blade.php ENDPATH**/ ?>
Journal Details
top
blog

The Future of Digital Wallets: How Mobile Payments are Shaping the Financial Landscape

Digital wallets have fundamentally transformed how we manage money, offering a streamlined, secure, and highly efficient method for handling payments and transactions. By consolidating credit, debit, and loyalty card information into a single app, digital wallets simplify the payment process and eliminate the need for physical cards, enhancing both convenience and security.
As digital wallets evolve, they are integrating advanced features that push the boundaries of traditional payment methods. Biometric authentication, such as fingerprint and facial recognition, adds an extra layer of security, ensuring that only authorized users can access their payment information. Real-time transaction alerts provide instant notifications for every transaction, allowing users to monitor their spending and detect any unauthorized activity swiftly. Budgeting tools within digital wallets offer personalized insights and financial management capabilities, helping users track their expenses and plan their budgets more effectively.
The growing adoption of digital wallets is fueled by their ease of use and the increasing demand for contactless payment solutions. As technology advances, digital wallets are likely to incorporate even more innovative features, such as artificial intelligence for personalized financial advice, integrated loyalty programs for seamless rewards management, and cross-border transaction capabilities for global shopping convenience.
The integration of these features is reshaping the financial landscape by making transactions not only faster but also more secure and user-friendly. The future of digital wallets is set to further revolutionize how we handle our finances, offering an all-encompassing solution that caters to the evolving needs of modern consumers. As digital wallets continue to advance, they will play an increasingly central role in shaping the future of financial interactions, driving the global shift towards a more digital and cashless economy.

Tags