/home/kueuepay/public_html/storage/framework/views/d62e082fc9d45a4f8027326f52045f6ae0c29f02.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(__("Get Access Token")); ?></h1>
                <p><?php echo e(__("Get access token to initiates 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>generate-token</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(__("Comments")); ?></th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <th scope="row">client_id</th>
                            <td>string</td>
                            <td><?php echo e(__("Enter merchant API client/primary key")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">secret_id</th>
                            <td>string</td>
                            <td><?php echo e(__("Enter merchant API secret key")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">env</th>
                            <td>string</td>
                            <td><?php echo e(__("Enter merchant API environment")); ?></td>
                          </tr>
                          <tr>
                            <th scope="row">merchant_id</th>
                            <td>string</td>
                            <td><?php echo e(__("Enter merchant API merchant id")); ?></td>
                          </tr>
                        </tbody>
                      </table>
                </div>
            </div>
            <div class="col-lg-6 mb-30">
                <span class="mb-10"><?php echo e(__("Just request to that endpoint with all parameter listed below")); ?>:</span>
                <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. 'v1/generate-token', [
                            <br>'headers' => [
                            <br>&nbsp;&nbsp;'accept' => 'application/json',
                            <br>&nbsp;&nbsp;'content-type' => 'application/json',
                            <br>&nbsp;],
                            <br>'form_params' => [
                            <br>&nbsp;&nbsp;'client_id'     => '$client_id',
                            <br>&nbsp;&nbsp;'secret_id'     => 'secret_id',
                            <br>&nbsp;&nbsp;'env'           => 'env',
                            <br>&nbsp;&nbsp;'merchant_id'   => 'merchant_id',
                            <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;"Successfully token is generated"
                        <br>&nbsp;]
                        <br>},
                        <br>"data": {
                        <br>&nbsp;"token":"eyJpdiI6InpkczhjTjhQdVhUL2lKQ0pSUUx6aUE9P</br>SIsInZhbHVlIjoiVGVBTVBDTXltbjNZcEIvdEJveGpTSno3TU5NRUtn</br>VkhCZ1pHTFNCUnZGQ2UxMnYxN202cEE1YVRDTEFsc0ZERExoTjdtL0dTL2x</br>oU3QzeUJJOExiMUx5T0w1L0llUXhTUkU1cWVLWEdEbEplb0dKNXcwbTNRM0</br>VxdkUwYzZuNFdtNkhMQ0pRZysyNWkvdzBxSlBoSVBSOGFTekNnR2RXNHVtc</br>G9lMGZOTmNCcm1hR3c5Sk9KTnB4Y3ltZDl6cm90MThrR21Ca3B1azc3bXRi</br>Q0J6SW96UVo1elNkU1ZqeE05bTcwWGp1MEUxWlJFdnNWTmpSbnVpeW92b2U</br>4dXZkUGgyb1VmK0luaGdyaFlsVTZlcVpVRnZlTG1DeFF6Ykk2T2h6Z3Jzbn</br>IyNHpNdHowSE5JdDR0Y0pZT20zUm1XYW8iLCJtYWMiOiJlY2M4NGE1OGUzYz</br>kzYzk0YzljNmVmNjE0YWI0ZDIwOGI3NDQ2YWEyY2ZhNzc0NzE4ZmY1ZmYyMz</br>
                        IyZmQzNDY1IiwidGFnIjoiIn0=",
                        <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 credentials."
                        <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.base.url')); ?>" class="left"><i class="las la-arrow-left me-1"></i>  <?php echo e(__("Base URL")); ?></a>
            <a href="<?php echo e(setRoute('frontend.developer.initiate.payment')); ?>" class="right"><?php echo e(__("Initiate Payment")); ?> <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/access-token.blade.php ENDPATH**/ ?>
Journal Details
top
blog

Enhancing Payment Security: The Role of Encryption and Tokenization in Digital Transactions

As digital transactions proliferate, ensuring robust payment security is more critical than ever. Two foundational technologies that are pivotal in this effort are encryption and tokenization.
Encryption is a process that transforms data into a secure format, known as ciphertext, which can only be deciphered using a specific decryption key. This means that even if data is intercepted during transmission, it remains unreadable and protected from unauthorized access. Encryption is essential in safeguarding sensitive payment information, such as credit card details and personal data, during online transactions.
Tokenization, on the other hand, involves substituting sensitive data with unique identifiers or "tokens." These tokens serve as placeholders and have no value outside of the specific transaction context. If intercepted, tokens are meaningless and cannot be used to access the original sensitive data. This method significantly reduces the risk of fraud and data breaches, as the actual payment information is not stored or transmitted.
Together, encryption and tokenization form a powerful security framework. Encryption ensures that data is protected during transmission, while tokenization minimizes the risk of exposing sensitive information by replacing it with secure, non-sensitive tokens.
These technologies are integral to modern payment platforms, providing a robust defense against cyber threats. By implementing advanced encryption and tokenization techniques, businesses can enhance the security of digital transactions, ensuring that users' financial and personal information remains safe. This comprehensive approach not only builds user trust but also fortifies the overall security infrastructure of digital payment systems. As cyber threats evolve, the continued advancement of encryption and tokenization will be crucial in maintaining secure and reliable payment processes.

Tags