public static function Braintree_Customer::createSignature in Commerce Braintree 7
creates a full array signature of a valid create request
Return value
array gateway create request format
2 calls to Braintree_Customer::createSignature()
- Braintree_Customer::create in braintree_php/
lib/ Braintree/ Customer.php - Creates a customer using the given +attributes+. If <tt>:id</tt> is not passed, the gateway will generate it.
- Braintree_TransparentRedirect::init in braintree_php/
lib/ Braintree/ TransparentRedirect.php - create signatures for different call types @ignore
File
- braintree_php/
lib/ Braintree/ Customer.php, line 146
Class
- Braintree_Customer
- Creates and manages Customers
Code
public static function createSignature() {
$creditCardSignature = Braintree_CreditCard::createSignature();
unset($creditCardSignature['customerId']);
$signature = array(
'id',
'company',
'email',
'fax',
'firstName',
'lastName',
'phone',
'website',
array(
'creditCard' => $creditCardSignature,
),
array(
'customFields' => array(
'_anyKey_',
),
),
);
return $signature;
}