divspace/chargeigniter

Changes to upgrade subscription

Closed this issue · 1 comments

The following changes to the chargify.php with fix the upgrade subscription function:

Line 287 currently:
public function upgrade_subscription($subcription_id, $data) {
Change line 287 to:
public function upgrade_subscription($subscription_id, $data) {
Notes:
Simple typo fix that was preventing the subscription_id from being set

Line 289 currently:
'subscription' => $data
Change line 289 to:
'product_id' => $data
Notes:
As per the API this value should be product_id or product_handle. The above example uses product_id.

This issue has been fixed. Thank you!