Error -25 - Printable Version +- WuBook Community Forum (https://en.wubook.net/forum) +-- Forum: WuBook Suite (https://en.wubook.net/forum/forumdisplay.php?fid=1) +--- Forum: Support for the Channel Manager (https://en.wubook.net/forum/forumdisplay.php?fid=3) +--- Thread: Error -25 (/showthread.php?tid=484) |
Error -25 - HN031 - 03-30-2018 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); RE: Error -25 - white - 03-30-2018 Hello there. As I see you already conctacted us by email, the devel team will answer directly from there. Anyway I'd like to ask you to not put in clear personal details in the future. Even if fake. :) Thanks a lot. Regards RE: Error -25 - HN031 - 03-30-2018 Thank you)) Of course they were fake but no problem)))))) RE: Error -25 - white - 03-30-2018 :D |