jforrest / Chargify-PHP-Client

PHP client for Chargify
Please let me know if you have any questions.
MIT License
19 stars 16 forks source link

No way to populate ChargifyConnector object in ChargifyCustomer #3

Closed brandonsavage closed 13 years ago

brandonsavage commented 14 years ago

The ChargifyCustomer::__construct() method creates an instance of ChargifyConnector, but does not allow for the passing of any configuration options (such as the API key and the domain). This results in certain failure when using the $customer->create() method.

Proposed solution: require that the ChargifyConnector object be injected into the constructor, or add a method that allows its introduction and throws an exception if one is not present before attempting to send data to Chargify.

jforrest commented 14 years ago

Are you using multiple Chargify keys/domains in the same code?

brandonsavage commented 14 years ago

No, we're using the same chargify key and domain for the whole codebase.