Register


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error -25
03-30-2018, 01:08 AM (This post was last modified: 03-30-2018 02:58 AM by HN031.)
Post: #1
Error -25
I`ve registered a test free account at wubook.I have no other account at the moment.

I send a test request from the website just to check that everything works. The code is below (I am using Drupal 7). It gives me a response (for example if I write a wrong expiry date of a card I get ""Invalid Credit Card Data or Credit Card Rejected" - that`s ok). But every time I get the answer:

{"rcode": {}, "error": [-25, "Rooms not available"]}

Though I have a room with such number in my account (if I have added it correctly)
Could you please give a look at my code and tell why I get this response?

Thank you in advance!


$data = [
'dto' => '30/03/2018',
'dfrom' => '29/03/2018',
'rooms' => [1 => [1, 'fb']],
'customer' => [
'lname' => 'Mary',
'email' => 'my@email.com',
'fname' => 'Clare',
'city' => 'Dolo',
'street' => 'v+33',
'country' => 'RU',
'lang' => 'IT',
'phone' => '',
'arrival_hour' => '14=>00',
'notes' => 'some+notes!!!'
],
'ancillary_data' => ['Smoking' => 'Yes', 'Paid' => '60+Euro'],
'origin' => 'My+service+name',
'ccard' => [
'cc_exp_year' => '',
'cc_exp_month' => '',
'cc_type' => '1',
'cc_owner' => ' ',
'cc_number' => '',
'cc_cvv' => ''
],
'alien_code' => '*************',
'lcode' => '*************',
'amount' => '10.00'
];

$headers = array(
'Content-Type' => 'application/x-www-form-urlencoded',
'Cache-Control' => 'no-cache',
'Access-Control-Allow-Origin' => 'https://wubook.net/wbkd/alien'
);

$dataObject = array(
'data' => json_encode($data),
'_kscs_' => '',
'_wbCurrentLcode_' => '*************'
);


$url = 'https://wubook.net/wbkd/alien';
$options = array(
'method' => 'POST',
'data' => drupal_http_build_query($dataObject),
'timeout' => 150,
'headers' => $headers,
);

$response = drupal_http_request($url, $options);
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Error -25 - HN031 - 03-30-2018 01:08 AM
RE: Error -25 - white - 03-30-2018, 01:50 AM
RE: Error -25 - HN031 - 03-30-2018, 03:07 AM
RE: Error -25 - white - 03-30-2018, 03:20 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)