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

Issue adding multiple components to a Subscription #16

Open raideus opened 10 years ago

raideus commented 10 years ago

I ran into an issue when trying to create a subscription with multiple components. The ChargifySubscription class doesn't properly format the XML related to the components which causes an error. The solution is to add the following code just after line 112 of ChargifySubscription.php:

$node->addAttribute('type', 'array');

Just figured I'd post this here in case anyone else has the same problem.