You are here

public static function Braintree_Subscription::cancel in Commerce Braintree 7

6 calls to Braintree_Subscription::cancel()
Braintree_MultipleValueNodeTest::testIn_multipleValues in braintree_php/tests/integration/MultipleValueNodeTest.php
Braintree_MultipleValueNodeTest::testIn_singleValue in braintree_php/tests/integration/MultipleValueNodeTest.php
Braintree_SubscriptionTest::testCancel_returnsErrorIfCancelingCanceledSubscription in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCancel_returnsSuccessIfCanceled in braintree_php/tests/integration/SubscriptionTest.php
Braintree_SubscriptionTest::testCancel_throwsErrorIfRecordNotFound in braintree_php/tests/integration/SubscriptionTest.php

... See full list

File

braintree_php/lib/Braintree/Subscription.php, line 110

Class

Braintree_Subscription
Braintree Subscription module

Code

public static function cancel($subscriptionId) {
  $response = Braintree_Http::put('/subscriptions/' . $subscriptionId . '/cancel');
  return self::_verifyGatewayResponse($response);
}