Ejemplo n.º 1
0
 function testCreateSignature_doesNotIncludeCustomerIdOnCreditCard()
 {
     $signature = Braintree_CustomerGateway::createSignature();
     $creditCardSignatures = array_filter($signature, 'Braintree_CustomerTest::findCreditCardArray');
     $creditCardSignature = array_shift($creditCardSignatures)['creditCard'];
     $this->assertNotContains('customerId', $creditCardSignature);
 }
 /**
  * create signatures for different call types
  * @ignore
  */
 public static function init()
 {
     self::$_createCustomerSignature = array(self::$_transparentRedirectKeys, array('customer' => Braintree_CustomerGateway::createSignature()));
     self::$_updateCustomerSignature = array(self::$_transparentRedirectKeys, 'customerId', array('customer' => Braintree_CustomerGateway::updateSignature()));
     self::$_transactionSignature = array(self::$_transparentRedirectKeys, array('transaction' => Braintree_TransactionGateway::createSignature()));
     self::$_createCreditCardSignature = array(self::$_transparentRedirectKeys, array('creditCard' => Braintree_CreditCardGateway::createSignature()));
     self::$_updateCreditCardSignature = array(self::$_transparentRedirectKeys, 'paymentMethodToken', array('creditCard' => Braintree_CreditCardGateway::updateSignature()));
 }