public static function Braintree_Subscription::update in Commerce Braintree 7
15 calls to Braintree_Subscription::update()
- Braintree_SubscriptionTest::testUpdate_canAddAndRemoveAddOnsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testUpdate_cannotUpdateCanceledSubscription in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testUpdate_canReplaceEntireSetOfAddonsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testUpdate_canUpdateAddOnsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testUpdate_canUpdatePaymentMethodToken in braintree_php/
tests/ integration/ SubscriptionTest.php
File
- braintree_php/
lib/ Braintree/ Subscription.php, line 86
Class
- Braintree_Subscription
- Braintree Subscription module
Code
public static function update($subscriptionId, $attributes) {
Braintree_Util::verifyKeys(self::_updateSignature(), $attributes);
$response = Braintree_Http::put('/subscriptions/' . $subscriptionId, array(
'subscription' => $attributes,
));
return self::_verifyGatewayResponse($response);
}