{"action":"opened","issue":{"url":"https://api.github.com/repos/paymill/paymill-php/issues/120","labels_url":"https://api.github.com/repos/paymill/paymill-php/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/paymill/paymill-php/issues/120/comments","events_url":"https://api.github.com/repos/paymill/paymill-php/issues/120/events","html_url":"https://github.com/paymill/paymill-php/issues/120","id":127103040,"number":120,"title":"failed transaction -  '' is less than 1 characters long ","user":{"login":"harolato","id":3879710,"avatar_url":"https://avatars.githubusercontent.com/u/3879710?v=3","gravatar_id":"","url":"https://api.github.com/users/harolato","html_url":"https://github.com/harolato","followers_url":"https://api.github.com/users/harolato/followers","following_url":"https://api.github.com/users/harolato/following{/other_user}","gists_url":"https://api.github.com/users/harolato/gists{/gist_id}","starred_url":"https://api.github.com/users/harolato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harolato/subscriptions","organizations_url":"https://api.github.com/users/harolato/orgs","repos_url":"https://api.github.com/users/harolato/repos","events_url":"https://api.github.com/users/harolato/events{/privacy}","received_events_url":"https://api.github.com/users/harolato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-17T15:37:05Z","updated_at":"2016-01-17T15:37:05Z","closed_at":null,"body":"Hi,\r\n\r\nI got stuck with this error for quite a while and I can't figure out how to solve this problem. I double, even triple, checked data passed to transaction object and still can't find out why it keeps throwing me this \" '' is less than 1 characters long \" error message. I couldn't even find documentation for that error message on the internet.\r\n\r\nBrief overview of current state of my code:\r\n\r\n1. My transaction object creation is wrapped in try..catch statement (\\Paymill\\Services\\PaymillException)\r\n\r\n2. Client and Payment objects created correctly. I can see those two on my paymill control panel.\r\n\r\n3. I'm passing shopping cart array to Transaction object as well\r\n\r\n4. Item description is being derived using this sequence:  trim(substr(html_entity_decode($item['description']), 0, 123)) . \"...\",\r\n\r\n5. Payment is being made via credit card\r\n\r\n6. First payment was successful second one fails\r\n\r\nhere's partial exception object output: \r\n\r\n[__PHP_Incomplete_Class_Name] => Paymill\\Services\\PaymillException\r\n            [_errorMessage:Paymill\\Services\\PaymillException:private] => '' is less than 1 characters long\r\n            [_responseCode:Paymill\\Services\\PaymillException:private] => \r\n            [_httpStatusCode:Paymill\\Services\\PaymillException:private] => 400\r\n            [_rawObject:Paymill\\Services\\PaymillException:private] => \r\n            [message:protected] => '' is less than 1 characters long\r\n            [string:Exception:private] => \r\n            [code:protected] => 400\r\n...\r\n[__PHP_Incomplete_Class_Name] => Paymill\\Models\\Request\\Transaction\r\n                                            [_amount:Paymill\\Models\\Request\\Transaction:private] => 6613\r\n                                            [_description:Paymill\\Models\\Request\\Transaction:private] => Order ID: 111111-11111-1111\r\n                                            [_currency:Paymill\\Models\\Request\\Transaction:private] => EUR\r\n                                            [_payment:Paymill\\Models\\Request\\Transaction:private] => pay_1234566789\r\n                                            [_client:Paymill\\Models\\Request\\Transaction:private] => client_123456\r\n                                            [_preauthorization:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_token:Paymill\\Models\\Request\\Transaction:private] => 123456\r\n                                            [_feeAmount:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_feePayment:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_feeCurrency:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_source:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_shippingAddress:Paymill\\Models\\Request\\Transaction:private] => Array\r\n                                                (\r\n                                                    [name] => Full name\r\n                                                    [street_address] => full address\r\n                                                    [street_address_addition] => N/A\r\n                                                    [city] => full city\r\n                                                    [state] => state as well\r\n                                                    [postal_code] => 123456\r\n                                                    [country] => CC\r\n                                                )\r\n\r\n                                            [_billingAddress:Paymill\\Models\\Request\\Transaction:private] => Array\r\n                                                (\r\n                                                    [name] => Full name\r\n                                                    [street_address] => full address\r\n                                                    [street_address_addition] => N/A\r\n                                                    [city] => full city\r\n                                                    [state] => state as well\r\n                                                    [postal_code] => 123456\r\n                                                    [country] => CC\r\n                                                    [phone] => 123456\r\n                                                )\r\n\r\n                                            [_items:Paymill\\Models\\Request\\Transaction:private] => Array\r\n                                                (\r\n                                                    [0] => Array\r\n                                                        (\r\n                                                            [name] => full item name\r\n                                                            [amount] => 123456\r\n                                                            [description] => full description\r\n                                                            [quantity] => 1\r\n                                                            [item_number] => 123456-1\r\n                                                            [url] => https://123123.html\r\n                                                        )\r\n...\r\n[_shipping_amount:Paymill\\Models\\Request\\Transaction:private] => 400\r\n                                            [_handling_amount:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_mandateReference:Paymill\\Models\\Request\\Transaction:private] => \r\n                                            [_id:protected] => \r\n                                            [_serviceResource:protected] => Transactions/\r\n                                            [_filter:protected] => \r\n                                        )\r\n\r\n                                    [1] => create\r\n                                )\r\n\r\n                        )"}}