BraintreeCreditCardVerification

The PayPal for WooCommerce Braintree CreditCardVerification class.

Defined (1)

The class is defined in the following location(s).

/classes/lib/Braintree/Braintree/CreditCardVerification.php  
  1. class CreditCardVerification extends Result\CreditCardVerification 
  2. public static function factory($attributes) 
  3. $instance = new self($attributes); 
  4. return $instance; 
  5.  
  6. // static methods redirecting to gateway 
  7. // 
  8. public static function create($attributes) 
  9. Util::verifyKeys(self::createSignature(), $attributes); 
  10. return Configuration::gateway()->creditCardVerification()->create($attributes); 
  11.  
  12. public static function fetch($query, $ids) 
  13. return Configuration::gateway()->creditCardVerification()->fetch($query, $ids); 
  14.  
  15. public static function search($query) 
  16. return Configuration::gateway()->creditCardVerification()->search($query); 
  17.  
  18. public static function createSignature() 
  19. return [ 
  20. ['options' => ['amount', 'merchantAccountId']],  
  21. ['creditCard' => 
  22. 'cardholderName', 'cvv', 'number',  
  23. 'expirationDate', 'expirationMonth', 'expirationYear',  
  24. ['billingAddress' => CreditCardGateway::billingAddressSignature()] 
  25. ]];