BraintreeClientToken

The PayPal for WooCommerce Braintree ClientToken class.

Defined (1)

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

/classes/lib/Braintree/Braintree/ClientToken.php  
  1. class ClientToken 
  2. const DEFAULT_VERSION = 2; 
  3.  
  4.  
  5. // static methods redirecting to gateway 
  6.  
  7. /** 
  8. * @param array $params 
  9. * @return array 
  10. */ 
  11. public static function generate($params=[]) 
  12. return Configuration::gateway()->clientToken()->generate($params); 
  13.  
  14. /** 
  15. * @param type $params 
  16. * @throws InvalidArgumentException 
  17. */ 
  18. public static function conditionallyVerifyKeys($params) 
  19. return Configuration::gateway()->clientToken()->conditionallyVerifyKeys($params); 
  20.  
  21. /** 
  22. * @return string client token retrieved from server 
  23. */ 
  24. public static function generateWithCustomerIdSignature() 
  25. return Configuration::gateway()->clientToken()->generateWithCustomerIdSignature(); 
  26.  
  27. /** 
  28. * @return string client token retrieved from server 
  29. */ 
  30. public static function generateWithoutCustomerIdSignature() 
  31. return Configuration::gateway()->clientToken()->generateWithoutCustomerIdSignature();