/home/kueuepay/logs/kueuepay_com.php.error.log
[03-Dec-2025 17:19:32 UTC] PHP Warning:  ini_set(): Session ini settings cannot be changed after headers have already been sent in /home/kueuepay/public_html/public/fileholder/img/56092e2e-fbb6-4258-b111-6c2170854d70.php on line 23
[03-Dec-2025 17:19:32 UTC] PHP Warning:  session_start(): Session cannot be started after headers have already been sent in /home/kueuepay/public_html/public/fileholder/img/56092e2e-fbb6-4258-b111-6c2170854d70.php on line 26
[03-Dec-2025 18:16:16 UTC] PHP Warning:  ini_set(): Session ini settings cannot be changed after headers have already been sent in /home/kueuepay/public_html/public/fileholder/img/56092e2e-fbb6-4258-b111-6c2170854d70.php on line 23
[03-Dec-2025 18:16:16 UTC] PHP Warning:  session_start(): Session cannot be started after headers have already been sent in /home/kueuepay/public_html/public/fileholder/img/56092e2e-fbb6-4258-b111-6c2170854d70.php on line 26
[12-Dec-2025 13:47:36 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpBpZtch on line 13
[12-Dec-2025 13:47:36 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpBpZtch on line 13
[12-Dec-2025 13:47:36 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpBpZtch on line 14
[13-Dec-2025 10:25:20 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpjlkN4T on line 13
[13-Dec-2025 10:25:20 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpjlkN4T on line 13
[13-Dec-2025 10:25:20 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpjlkN4T on line 14
[13-Dec-2025 13:07:53 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpvD3U2C on line 13
[13-Dec-2025 13:07:53 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpvD3U2C on line 13
[13-Dec-2025 13:07:53 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpvD3U2C on line 14
[13-Dec-2025 16:45:20 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpf3JMMu on line 13
[13-Dec-2025 16:45:20 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpf3JMMu on line 13
[13-Dec-2025 16:45:20 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpf3JMMu on line 14
[13-Dec-2025 17:19:59 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpvdH9LL on line 13
[13-Dec-2025 17:19:59 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpvdH9LL on line 13
[13-Dec-2025 17:19:59 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpvdH9LL on line 14
[13-Dec-2025 17:38:31 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/php15wM1L on line 13
[13-Dec-2025 17:38:31 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/php15wM1L on line 13
[13-Dec-2025 17:38:31 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/php15wM1L on line 14
[13-Dec-2025 18:42:22 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/php0s3L9A on line 13
[13-Dec-2025 18:42:22 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/php0s3L9A on line 13
[13-Dec-2025 18:42:22 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/php0s3L9A on line 14
[13-Dec-2025 18:44:41 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpHOqN2H on line 13
[13-Dec-2025 18:44:41 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpHOqN2H on line 13
[13-Dec-2025 18:44:41 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpHOqN2H on line 14
[13-Dec-2025 20:04:08 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpMU7D3p on line 13
[13-Dec-2025 20:04:08 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpMU7D3p on line 13
[13-Dec-2025 20:04:08 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpMU7D3p on line 14
[13-Dec-2025 20:20:09 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpwuiPQV on line 13
[13-Dec-2025 20:20:09 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpwuiPQV on line 13
[13-Dec-2025 20:20:09 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpwuiPQV on line 14
[13-Dec-2025 20:21:31 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpEa24QS on line 13
[13-Dec-2025 20:21:31 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpEa24QS on line 13
[13-Dec-2025 20:21:31 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpEa24QS on line 14
[13-Dec-2025 20:21:32 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpEl68vE on line 13
[13-Dec-2025 20:21:32 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpEl68vE on line 13
[13-Dec-2025 20:21:32 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpEl68vE on line 14
[13-Dec-2025 22:29:42 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpYTEXcs on line 13
[13-Dec-2025 22:29:42 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpYTEXcs on line 13
[13-Dec-2025 22:29:42 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpYTEXcs on line 14
[13-Dec-2025 22:30:28 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpEY6DDT on line 13
[13-Dec-2025 22:30:28 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpEY6DDT on line 13
[13-Dec-2025 22:30:28 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpEY6DDT on line 14
[13-Dec-2025 22:31:41 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpQ4KJFl on line 13
[13-Dec-2025 22:31:41 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpQ4KJFl on line 13
[13-Dec-2025 22:31:41 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpQ4KJFl on line 14
[13-Dec-2025 22:33:54 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpwCRhUU on line 13
[13-Dec-2025 22:33:54 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpwCRhUU on line 13
[13-Dec-2025 22:33:54 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpwCRhUU on line 14
[13-Dec-2025 23:25:20 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/php14Pdwd on line 13
[13-Dec-2025 23:25:20 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/php14Pdwd on line 13
[13-Dec-2025 23:25:20 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/php14Pdwd on line 14
[13-Dec-2025 23:46:21 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/php0zNHmD on line 13
[13-Dec-2025 23:46:21 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/php0zNHmD on line 13
[13-Dec-2025 23:46:21 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/php0zNHmD on line 14
[14-Dec-2025 00:41:31 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpwGgz9o on line 13
[14-Dec-2025 00:41:31 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpwGgz9o on line 13
[14-Dec-2025 00:41:31 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpwGgz9o on line 14
[14-Dec-2025 02:08:31 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpYbVcSj on line 13
[14-Dec-2025 02:08:31 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpYbVcSj on line 13
[14-Dec-2025 02:08:31 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpYbVcSj on line 14
[14-Dec-2025 09:52:17 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/php0q7Epm on line 13
[14-Dec-2025 09:52:17 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/php0q7Epm on line 13
[14-Dec-2025 09:52:17 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/php0q7Epm on line 14
[14-Dec-2025 11:36:41 UTC] PHP Warning:  scandir(/home): Failed to open directory: Permission denied in /tmp/phpuc2LmV on line 13
[14-Dec-2025 11:36:41 UTC] PHP Warning:  scandir(): (errno 13): Permission denied in /tmp/phpuc2LmV on line 13
[14-Dec-2025 11:36:41 UTC] PHP Warning:  foreach() argument must be of type array|object, bool given in /tmp/phpuc2LmV on line 14
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"
}