function testCreateSignature() { $expected = array('customerId', 'paymentMethodNonce', 'token', 'billingAddressId', array('options' => array('makeDefault', 'verifyCard', 'failOnDuplicatePaymentMethod', 'verificationMerchantAccountId')), array('billingAddress' => Braintree_Address::createSignature())); $this->assertEquals($expected, Braintree_PaymentMethod::CreateSignature()); }
private static function baseSignature($options) { $billingAddressSignature = Braintree_Address::createSignature(); return array('customerId', 'paymentMethodNonce', 'token', 'billingAddressId', array('options' => $options), array('billingAddress' => $billingAddressSignature)); }