public static function Braintree_CreditCard::create in Commerce Braintree 7
25 calls to Braintree_CreditCard::create()
- Braintree_CreditCard::createNoValidate in braintree_php/
lib/ Braintree/ CreditCard.php - attempts the create operation assuming all data will validate returns a Braintree_CreditCard object instead of a Result
- Braintree_CreditCardTest::testCommercialCard in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testCreate in braintree_php/
tests/ integration/ CreditCardTest.php - Braintree_CreditCardTest::testCreate_throwsIfInvalidKey in braintree_php/
tests/ unit/ CreditCardTest.php - Braintree_CreditCardTest::testCreate_withBillingAddress in braintree_php/
tests/ integration/ CreditCardTest.php
File
- braintree_php/
lib/ Braintree/ CreditCard.php, line 81
Class
- Braintree_CreditCard
- Creates and manages Braintree CreditCards
Code
public static function create($attribs) {
Braintree_Util::verifyKeys(self::createSignature(), $attribs);
return self::_doCreate('/payment_methods', array(
'credit_card' => $attribs,
));
}