BraintreePaymentMethodNonce

Creates and manages Braintree PaymentMethodNonces.

Defined (1)

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

/classes/lib/Braintree/Braintree/PaymentMethodNonce.php  
  1. class PaymentMethodNonce extends Base 
  2. // static methods redirecting to gateway 
  3.  
  4. public static function create($token) 
  5. return Configuration::gateway()->paymentMethodNonce()->create($token); 
  6.  
  7. public static function find($nonce) 
  8. return Configuration::gateway()->paymentMethodNonce()->find($nonce); 
  9.  
  10. public static function factory($attributes) 
  11. $instance = new self(); 
  12. $instance->_initialize($attributes); 
  13. return $instance; 
  14.  
  15. protected function _initialize($nonceAttributes) 
  16. $this->_attributes = $nonceAttributes; 
  17. $this->_set('nonce', $nonceAttributes['nonce']); 
  18. $this->_set('type', $nonceAttributes['type']); 
  19.  
  20. if(isset($nonceAttributes['threeDSecureInfo'])) { 
  21. $this->_set('threeDSecureInfo', ThreeDSecureInfo::factory($nonceAttributes['threeDSecureInfo']));