M2_Stripe_List

The Membership 2 M2 Stripe List class.

Defined (1)

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

/lib/stripe-php/lib/Stripe/List.php  
  1. class M2_Stripe_List extends M2_Stripe_Object 
  2. public function all($params=null) 
  3. $requestor = new M2_Stripe_ApiRequestor($this->_apiKey); 
  4. list($response, $apiKey) = $requestor->request( 
  5. 'get',  
  6. $this['url'],  
  7. $params 
  8. ); 
  9. return M2_Stripe_Util::convertToStripeObject($response, $apiKey); 
  10.  
  11. public function create($params=null) 
  12. $requestor = new M2_Stripe_ApiRequestor($this->_apiKey); 
  13. list($response, $apiKey) = $requestor->request( 
  14. 'post', $this['url'], $params 
  15. ); 
  16. return M2_Stripe_Util::convertToStripeObject($response, $apiKey); 
  17.  
  18. public function retrieve($id, $params=null) 
  19. $requestor = new M2_Stripe_ApiRequestor($this->_apiKey); 
  20. $base = $this['url']; 
  21. $id = M2_Stripe_ApiRequestor::utf8($id); 
  22. $extn = urlencode($id); 
  23. list($response, $apiKey) = $requestor->request( 
  24. 'get', "$base/$extn", $params 
  25. ); 
  26. return M2_Stripe_Util::convertToStripeObject($response, $apiKey); 
  27.