chargebee / chargebee-php

PHP library for the Chargebee API.

Home Page:https://apidocs.chargebee.com/docs/api?lang=php

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Suggestion] Add a __toString() method to ChargeBee_Model to support attempts saving it as a string

claw68 opened this issue · comments

On ChargeBee_Model class

public function __toString() { return json_encode($this->_values); }

Thanks for this. A simple return $this->_values function has been needed for so long. Anyone using this as part of their restAPI would largely benefit from this. Please consider adding it to the master version.

Hi,
The method 'toJson()' has been added to master version.