You are here

public static function Braintree_TransparentRedirect::init in Commerce Braintree 7

create signatures for different call types @ignore

1 call to Braintree_TransparentRedirect::init()
TransparentRedirect.php in braintree_php/lib/Braintree/TransparentRedirect.php

File

braintree_php/lib/Braintree/TransparentRedirect.php, line 81

Class

Braintree_TransparentRedirect
Static class providing methods to build Transparent Redirect urls

Code

public static function init() {
  self::$_createCustomerSignature = array(
    self::$_transparentRedirectKeys,
    array(
      'customer' => Braintree_Customer::createSignature(),
    ),
  );
  self::$_updateCustomerSignature = array(
    self::$_transparentRedirectKeys,
    'customerId',
    array(
      'customer' => Braintree_Customer::updateSignature(),
    ),
  );
  self::$_transactionSignature = array(
    self::$_transparentRedirectKeys,
    array(
      'transaction' => Braintree_Transaction::createSignature(),
    ),
  );
  self::$_createCreditCardSignature = array(
    self::$_transparentRedirectKeys,
    array(
      'creditCard' => Braintree_CreditCard::createSignature(),
    ),
  );
  self::$_updateCreditCardSignature = array(
    self::$_transparentRedirectKeys,
    'paymentMethodToken',
    array(
      'creditCard' => Braintree_CreditCard::updateSignature(),
    ),
  );
}