/home/kueuepay/tmp/analog/org.png
�PNG


IHDRX�wt�*PLTE�������������������������z�	IDATx���[v�8`k�<�r���9,`x�}x��0�d�.��r�*�7���`��%th�����|��%ԓS�׫_C-��4�RZĜ:�O-!��c���%X��"X@�`, �D���"X@�`, �D����X*�k)>;���d~�WV`���>]L�\m�f�̉X�w�.K��{u�`���}u%`����ꪋ����V+,ֽ�b)����^<�4 �z��WV���a�Ί���t�CX�����q��_K)c�� `]Y�-�� �ʱ�X�aq�D2���o�;�Sʺ�X�c�ۃ�buV���X�}�X�>�z�Hc���+��a)c5�!�2�&���E٧]IX꜈E[��b�5X��V+>�fX�T�[P
��'c���KU_Y�i5�!�[3���y���bck��֎55�!�H#NX�nNK�wbEq�U���r�(V�+	��İ�ه��5,uwb= ,6'k"X�5�-��ɚ0֦���4bkSX��E�bRZ/�2����˝ �zS8�!����	K�b����mBXۉ�Z$,�q��
����a��E%��h±a,o#α��I�#��OU[e9�p;��X��5ai��V2gUyg X��J��cf�'�*���Ї8���X�-6X�ðF��f���>ı<}8a�,��o ִ��-�d,wiMXC���)	X�����x��]��U�Ѵ+PX���/�d��`=�Bۇ	X��+TX�X��2����9���Z��T�ߑva2��XE�e��…e�0�QZ3,]�w�)X��X����.,V�m�`9�p�U���<�Xߧ�Xe�Ú'
k>��a�yk'Vld��J����ְ�sX�8�\�/�-k[Z�g�[\�����R�kT+��iVTkZ���!oW��{Vէi�X����Xj\���-k݇f��
�I+����d�\yA��>LJV6,��ʰ����J�Z-FX��XZw����y���k�C+sei�]d�m��j�Z�iX���mî���(X^�ð�=���zۮ�[kZ(֪WXm;\Jˣ����2oRVeN,"�˹{����а�;�vh�Ī)T,����cm6�~�D�zOiѱZfh	MK���ֺ�v,�|wj��c�;�1��ֻ`�΂5��Z��CK��Z�+�1th��`U�9L��kuCK��Z7��k	�՞+��Z��X��M��Z7%Xt--Xt-��nZ��Z��h	�����gh�Z�#�=G���¦�+�"X@�`, �D���"X@�`��E�?���,$�D���}�yR��P���?�˗jG�`!, �D��~F�Ի1,$�ܓ=�v�`!, �cw@*Y��D����O�=&�w��>(5�`!, ���a�<�=%s�UՅ%XHܟ�tXV݅��D��x>�� ��G��cF*��K���>��ʻ��ۇ�V�%XH|XG�a�]��:��j/,�B���߇�w�+iU_X��ď�����V�Ҫ��I+o2��V��bPXA���š�~��O�D�j~B�',
+��ojq�X1�\�ȣ�I+W���V��b�)l�XY6�L�0����4!k#�)����2�X����"`�Zl&	k_#�iB֮FdԄ4���Ũ	�X*Y��
+ylqX
+ql�X
+il�X
+elq�"c%�-f����m`5V��N����>����� X@'2�Ģv��lP,�O*�Q�V�,�U+ڊ_l�R�­��g���}���N�!)X]�\�;�$��z�UU�'�tc�7����k\B��R|�c���"X@�`, �D���"X@6�ɪ���8x��>۠V�>x}���K��`�����_��2��􀖀�z�_�a	X�%ׁ��9�ٻuW�6�7v�Ow����\�;�ۭ���Y�f��=��fQ���C�>�����Vd(���{��0�jm-�߷�-�\�c�֎�����ZW��4�6�V��Rfޫ�;��`��
���
빴f�5nF�ǚ�\?W��z�8,{�_�g}5v���Ӫ.*��ai��iis���X��j���ˬ��2�5o&�a$�X�e~�Ɩ����g>�m²O4>��ߒэ5L�9��l��a��+s�
��t�P�m.�0�����2��s���x�?�|}_�Ԓ��[~8��ϗ7�"�Q��&rlD���"X@�`, �D���"X@�`�XZBJ��q��r�N�~��ϥ��"��Ha����4��s7zIEND�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"
}