/home/kueuepay/public_html/.rnd
;r[89��Jd�ؘ�f"�&2
�� 
��>޼���uȡ�ׁ_=�	�բ�|?�lD~�妛�Ui�6��N��u��ݑ�6-;����]�(4^+���Qǹ4�l�JU���_Vj�b�A�x!)�_NV���PhI��.����Ȩ3;��0�cb�[Oc����8N����}O����t#��h�^e�����R�Y��/�zO��!�����)���3��X�bΣđ��+o�$�^�r>.��G2ī,�/���ϸ"�NO�h��2�3I�AtC�q͞��`��+����6��h����-��cL�S|���7ֺ�~��2Ɂ����B�J	�Z3�<�;^Ԫ����z10bUC�h� H�w$%�6��FX��3x%)�g�X*�����.I�dԃ�=h"�bKE����J=
ô>b�
����~Q�c�c��Q�sɥ��+��slp�А�޲X��lCvv�����EXz�9�X�4p�����ښߠdeAəH،&{�f�3�DJ|Qp���IYp�ף��Z&�t1�\�!7�h�ߙ��k����
`
�H@�� �R��\0pIp0��*=m�1F`�>��K���D4��鷈;(U���Ɉ�hPa�b���j�f�62��}ކ�
Փ�C���w�����̫�N��3���7=���%�K߶��L� �N�/u�G���r��v�6�L�%���G7'�q]
G�0
hӍ��Y7YX�R�(������w�;�QOB�2��Q�nў�M�H����\Q�6�0n�0+n�)mp��f�������BQ���/�R<���3̴m���*�Tk���[��۬?%�
y��f�+c��V	�*녦Ln(���a1����2���cI}|X�I!$�?�3�0�Qos�[Z�4p�^N��of�j(�q����t5tc��+I��c����`�.�}�s���d�~0ΐ��ɟPC���_#���B����"e���N�M)J�
Initiate Payment

Initiate Payment

Initiates a new payment transaction.

Endpoint: POST 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"
}