Stripe

The WordPress Core Stripe class.

Defined (1)

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

/lib/stripe-php/lib/Stripe/Stripe.php  
  1. abstract class Stripe 
  2. /** 
  3. * @var string The Stripe API key to be used for requests. 
  4. */ 
  5. public static $apiKey; 
  6. /** 
  7. * @var string The base URL for the Stripe API. 
  8. */ 
  9. public static $apiBase = 'https://api.stripe.com'; 
  10. /** 
  11. * @var string|null The version of the Stripe API to use for requests. 
  12. */ 
  13. public static $apiVersion = null; 
  14. /** 
  15. * @var boolean Defaults to true. 
  16. */ 
  17. public static $verifySslCerts = true; 
  18. const VERSION = '1.16.0'; 
  19.  
  20. /** 
  21. * @return string The API key used for requests. 
  22. */ 
  23. public static function getApiKey() 
  24. return self::$apiKey; 
  25.  
  26. /** 
  27. * Sets the API key to be used for requests. 
  28. * @param string $apiKey 
  29. */ 
  30. public static function setApiKey($apiKey) 
  31. self::$apiKey = $apiKey; 
  32.  
  33. /** 
  34. * @return string The API version used for requests. null if we're using the 
  35. * latest version. 
  36. */ 
  37. public static function getApiVersion() 
  38. return self::$apiVersion; 
  39.  
  40. /** 
  41. * @param string $apiVersion The API version to use for requests. 
  42. */ 
  43. public static function setApiVersion($apiVersion) 
  44. self::$apiVersion = $apiVersion; 
  45.  
  46. /** 
  47. * @return boolean 
  48. */ 
  49. public static function getVerifySslCerts() 
  50. return self::$verifySslCerts; 
  51.  
  52. /** 
  53. * @param boolean $verify 
  54. */ 
  55. public static function setVerifySslCerts($verify) 
  56. self::$verifySslCerts = $verify;