You are here

private static function Braintree_CreditCard::baseSignature in Commerce Braintree 7

2 calls to Braintree_CreditCard::baseSignature()
Braintree_CreditCard::createSignature in braintree_php/lib/Braintree/CreditCard.php
Braintree_CreditCard::updateSignature in braintree_php/lib/Braintree/CreditCard.php

File

braintree_php/lib/Braintree/CreditCard.php, line 424

Class

Braintree_CreditCard
Creates and manages Braintree CreditCards

Code

private static function baseSignature($options) {
  return array(
    'billingAddressId',
    'cardholderName',
    'cvv',
    'number',
    'expirationDate',
    'expirationMonth',
    'expirationYear',
    'token',
    array(
      'options' => $options,
    ),
    array(
      'billingAddress' => array(
        'firstName',
        'lastName',
        'company',
        'countryCodeAlpha2',
        'countryCodeAlpha3',
        'countryCodeNumeric',
        'countryName',
        'extendedAddress',
        'locality',
        'region',
        'postalCode',
        'streetAddress',
      ),
    ),
  );
}