== More information == For more detailed information on Customers, see {@link http://www.braintreepayments.com/gateway/customer-api http://www.braintreepaymentsolutions.com/gateway/customer-api}
Example #1
0
 public function testCreateSignature_doesNotIncludeCustomerIdOnCreditCard()
 {
     $signature = Braintree\CustomerGateway::createSignature();
     $creditCardSignatures = array_filter($signature, 'Test\\Unit\\CustomerTest::findCreditCardArray');
     $creditCardSignature = array_shift($creditCardSignatures)['creditCard'];
     $this->assertNotContains('customerId', $creditCardSignature);
 }
 /**
  * create signatures for different call types
  * @ignore
  */
 public static function init()
 {
     self::$_createCustomerSignature = [self::$_transparentRedirectKeys, ['customer' => CustomerGateway::createSignature()]];
     self::$_updateCustomerSignature = [self::$_transparentRedirectKeys, 'customerId', ['customer' => CustomerGateway::updateSignature()]];
     self::$_transactionSignature = [self::$_transparentRedirectKeys, ['transaction' => TransactionGateway::createSignature()]];
     self::$_createCreditCardSignature = [self::$_transparentRedirectKeys, ['creditCard' => CreditCardGateway::createSignature()]];
     self::$_updateCreditCardSignature = [self::$_transparentRedirectKeys, 'paymentMethodToken', ['creditCard' => CreditCardGateway::updateSignature()]];
 }