{"action":"closed","issue":{"url":"https://api.github.com/repos/paymill/paymill-php/issues/99","labels_url":"https://api.github.com/repos/paymill/paymill-php/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/paymill/paymill-php/issues/99/comments","events_url":"https://api.github.com/repos/paymill/paymill-php/issues/99/events","html_url":"https://github.com/paymill/paymill-php/issues/99","id":66339767,"number":99,"title":"How to deal with $transactionResponse after successful payment? How to parse the Transaction Object?","user":{"login":"q2apro","id":6764548,"avatar_url":"https://avatars.githubusercontent.com/u/6764548?v=3","gravatar_id":"","url":"https://api.github.com/users/q2apro","html_url":"https://github.com/q2apro","followers_url":"https://api.github.com/users/q2apro/followers","following_url":"https://api.github.com/users/q2apro/following{/other_user}","gists_url":"https://api.github.com/users/q2apro/gists{/gist_id}","starred_url":"https://api.github.com/users/q2apro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/q2apro/subscriptions","organizations_url":"https://api.github.com/users/q2apro/orgs","repos_url":"https://api.github.com/users/q2apro/repos","events_url":"https://api.github.com/users/q2apro/events{/privacy}","received_events_url":"https://api.github.com/users/q2apro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T16:44:08Z","updated_at":"2015-04-04T17:07:45Z","closed_at":"2015-04-04T17:07:45Z","body":"Hi, I am trying paymill for the first time. It is transparent so far, but I am stuck [here in payment.php](https://github.com/paymill/paymill-payment-form/blob/master/payment.php#L40): \r\n\r\n\t$result = print_r($transactionResponse, true);\r\n\r\nThe transactionResponse is printed in the demo, but how do I continue from here? \r\n\r\nThe $transactionResponse is not a JSON object as far as I can see: \r\n\r\n\tPaymill\\Models\\Response\\Transaction Object\r\n\t(\r\n\t\t[_amount:Paymill\\Models\\Response\\Transaction:private] => 7491\r\n\t\t[_originAmount:Paymill\\Models\\Response\\Transaction:private] => 7491\r\n\t\t[_mandateReference:Paymill\\Models\\Response\\Transaction:private] => \r\n\t\t[_status:Paymill\\Models\\Response\\Transaction:private] => closed\r\n\t\t[_description:Paymill\\Models\\Response\\Transaction:private] => Test Transaction\r\n\t\t... \r\n\r\nInstead of printing the object, I guess I need to parse it. How can I get the boolean if the payment was successful? Is this a JSON object, can I parse it? \r\n\r\nThanks in advance.\r\n\r\n<br />\r\n**Update:**\r\n\r\nI found the success response: \r\n\r\n\t[_responseCode:Paymill\\Models\\Response\\Transaction:private] => 20000\r\n\r\n20000 is \"General success response\" according to the [API docs](https://developers.paymill.com/en/reference/api-reference/#document-statuscodes).\r\n\r\nBut how do it get it into a php boolean?"}}