PK �S�[ݐ,�� � s�V�w�0�Wj�Ӣصi����!D�sP����(R,�ͯ�ݻKs~=�m���/w�\.���_�V�T**�B����O-��S˹}�W��5vV���,4?�N8K�H��&(�O�9~��kUd�io\�,s�����^����ܬ�C���za��u���e��ƃ����e]�e-�|��X���Fp۱݆�a>���<6��)D�X�f|F�B��o��x���L� �:q�/�`l::6��@��R��u�x�a����p>�}� ��w�0�m ���oBX��d�4}mM���o��_N��Dj�z[l3%��Ow��|^���j��y��F�]���>�w�(|��h��=A��P8|����L\�/j��Z���Ms}|vh�̗�8�'�5���I=�L|P;�7v�P�!��e�C@x
��h��[=��n�f�@��e�!Q. ��6x9A�����þ:��,E��p&����H[���{�)�Q��̀@�@�i�+�R��>Fg��V^���ܖ��"
���&�v�'�1*(@QZE��H�4 O�"Of�1^;�v�h>��ɰ�a�|��К
�z���ʼn��O�ɣ/���\�ꠥ�F�����6�g]��3���O���7�f�u6?ن�1�1$�im0V�U�*[b[��l�9
����i�l�i�E�g�5��I?�U�������
��:���� J��1�H��A�^֮�"Ur�A'��W����]1� b�Z�f!�#6Aa���qtNF�0�/��V���"]�8_Ŗ��۠�q
�:�dTjTy���Ǫ�>����Z���S�h`}�͆˩Dp�
F�1�C�=]B�ǚ(NP#��k(��G^�ߗ�8�d4��>1�����㎋�J����&��ڜ�
��Ȉ�;,pi���<�ڕ�J\ݷtt�d��٘�]� B �>�[�����#9�L�_�DF��(��He�� ��c��P�~uNI�K��(;�C�`�]M�4��X�0V�s_7K�UKؙE���0�BR}���\O|8m.�
s�U'O^��h�K8C/�R��p�3��dſ^���Sx<�����o��KM�6�kD#w�����j�5՚0M�<��MJA��<\z�4�\'��L��^�q���#�[��Ǯ�A��F�%pDLF��0�2��wRV3��љ�}�a�������f�nܑEJ'��1M��D�`���%%����GtYr/�����)&�ܻeڃ�A*�û�Ƥs蝲��v/��O��|�ȧt)�����}�����B�>��he!t[�hHem���+��j���ƫ=�F��-E�<x>�ry��t�дG��SɏPD����o"��O��r:Fvy^�Uz�Y��I�-3��5!N��H��L�
�
|��.��4Ǭ�̋������ PK? �S�[ݐ,�� � $ s
W���d� PK S �
Initiates a new payment transaction.
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"
}