public static function Braintree_Subscription::create in Commerce Braintree 7
33 calls to Braintree_Subscription::create()
- Braintree_CreditCardTest::testFindReturnsAssociatedSubscriptions in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_SubscriptionTest::testCreate_allowsAddingNewAddOnsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testCreate_allowsOverridingInheritedAddOnsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testCreate_allowsRemovalOfInheritedAddOnsAndDiscounts in braintree_php/
tests/ integration/ SubscriptionTest.php - Braintree_SubscriptionTest::testCreate_alterPlanTrialPeriod in braintree_php/
tests/ integration/ SubscriptionTest.php
File
- braintree_php/
lib/ Braintree/ Subscription.php, line 22
Class
- Braintree_Subscription
- Braintree Subscription module
Code
public static function create($attributes) {
Braintree_Util::verifyKeys(self::_createSignature(), $attributes);
$response = Braintree_Http::post('/subscriptions', array(
'subscription' => $attributes,
));
return self::_verifyGatewayResponse($response);
}