subscriptions->updatePaymentMode( $id, give_is_test_mode() ? SubscriptionMode::TEST() : SubscriptionMode::LIVE() ); } }