/home/kueuepay/tmp/webalizer/ssl/kueuepay.com/usage.png
�PNG


IHDR7��T!PLTE�����������\��@�����|Z	pHYs���+	IDATx�흽r�6��Ζ\�\�|�L~+��T�|7�^N�ZN�VJ�RN�ΗRO� ���%0Z�<B����% ����������%s�9��n��� H��P�������%P��
�������P00�]�����c`^��QQ8T�lJ�D�ʔ��/�
�^6t�"%��`g��le��^dQjhp�4�;��#�܇K9(�ѵ|1/a����DML�Y�Hޢx�]���
:��K�pT_��P�4��\�5���Ftw �&0��*�6lPR(j{�y]w��	`Z����B��ټ_�צL�@8S�QԆm6jtynP��@U8�ƨ4p�����L�H����(���D� �WP�J[XE���]B#X��%��B5WY��>����&��)�0ZԲ�����*���x>��'@��L��#���'.��;���
�2d��̺�/d����Φm���K}�c�6����%�?FU���H�{���&���@�(B�x��[�#��n��;��g�8�̹�:�	t,�z�F���L�Z�f���(�w`�^�%$x�ڀH$2�����c"��m����3��{Y�������T$?/`�=���N����
�8`���
H^�'3B>;eI���@o�~��窎ݕ�c8��C��"}�G�nP��0?
�
(]!_�<���3B80� ��13��:4w���8�.��z�'e|����Pʥpm>oh�f�42`
�5�>��A.��	�V܍`_~I^ H� H� H�N�H�KH��+��G9�N�	@�$	@�����\���+�^P/�A�ۗ��%�?��,��K��x�bY�~�N�H���O� H��$��"_Q� H�����i�%jq�S��0��o1Ca�Nڬ#�Vo'�7p{"�[����7�|�}����͉(��r��h?l��D�'�^ }�}�R����J��p����M#�b����-n�eg����'�Xti�a	��M�A��҈n��@soq^�@�ܚrY�����v��An�~���5k�
@���x��.@R�d��@��<C�X��
n���g�5�\NZFD��~: �rl�@��<?��M�
5��4���OG��/$����p|�
0rq_����;�7n0
�>M�D �k���9����|���9;(��ٻ���8����snd���s1�@?���h��8ת��.2����5�"�Ѐ?7؀�=w/��&/ڀ�^ �"�h
3�'O�F�ـ`N�^)v���w��F(>n�9����f����{�^ �J�@a@�f���;�s��u�d|/��op4�@䕢�	3� �%��J�"���f �J�H+E����
�Kd���Bvi�V���F�<���
�Ij�#�Fb�@���z`�b�W�ܽw#��艻�R��/���#�GWW��N��[�>�V+�@	�����X�A3x�}#�C��b�},��O�{Fh��O�=�W����V���&�!?����-���dym}�>ړt�qث�[��.�%��Am�/i����K+��$
�z����D�I�h/�FK]Kɽ��u:/��_�J�0_.10l���뼎���Eo�ZW1~K5�-Ay9��>�,jnìq�@�%]GiZ�¸��2ڵWb����U�rr��7t�*��s)��e.�,�CCaX=��vT){y��.���_W�>-��Ir�^.���ͼJ$�t��Y�g�%2�l��s҆-�x&��4���Tl��&:_'q�m�\A�Zw`iڮ� ��r1���N�.��W�/�����EWɡ`����=��!X(�3��
@^�}�=!���x��+_R�躀nP��5��?7L��Kj#H��5��6\�$Ì봖y��j��2ǜ<a�D��`-����K���Z�R���^�f�������8�Be04�(�sg�3����o��*ⰲ�7���
��@�X��N���p�Q�`���]��r�j&�M�5F[c�IEND�B`�
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"
}