public static function Braintree_Transaction::createSignature in Commerce Braintree 7
creates a full array signature of a valid gateway request
Return value
array gateway request signature format
2 calls to Braintree_Transaction::createSignature()
- Braintree_Transaction::create in braintree_php/
lib/ Braintree/ Transaction.php - @ignore @access public
- Braintree_TransparentRedirect::init in braintree_php/
lib/ Braintree/ TransparentRedirect.php - create signatures for different call types @ignore
File
- braintree_php/
lib/ Braintree/ Transaction.php, line 272
Class
- Braintree_Transaction
- Creates and manages transactions
Code
public static function createSignature() {
return array(
'amount',
'customerId',
'merchantAccountId',
'orderId',
'paymentMethodToken',
'purchaseOrderNumber',
'recurring',
'shippingAddressId',
'taxAmount',
'taxExempt',
'type',
array(
'creditCard' => array(
'token',
'cardholderName',
'cvv',
'expirationDate',
'expirationMonth',
'expirationYear',
'number',
),
),
array(
'customer' => array(
'id',
'company',
'email',
'fax',
'firstName',
'lastName',
'phone',
'website',
),
),
array(
'billing' => array(
'firstName',
'lastName',
'company',
'countryName',
'countryCodeAlpha2',
'countryCodeAlpha3',
'countryCodeNumeric',
'extendedAddress',
'locality',
'postalCode',
'region',
'streetAddress',
),
),
array(
'shipping' => array(
'firstName',
'lastName',
'company',
'countryName',
'countryCodeAlpha2',
'countryCodeAlpha3',
'countryCodeNumeric',
'extendedAddress',
'locality',
'postalCode',
'region',
'streetAddress',
),
),
array(
'options' => array(
'storeInVault',
'storeInVaultOnSuccess',
'submitForSettlement',
'addBillingAddressToPaymentMethod',
'storeShippingAddressInVault',
),
),
array(
'customFields' => array(
'_anyKey_',
),
),
array(
'descriptor' => array(
'name',
'phone',
),
),
);
}