コード例 #1
0
ファイル: StripeClient.php プロジェクト: Daltonmedia/stripe
 /**
  * Constructs a new Stripe instance
  * @param string $environment		'sandbox' or 'production'
  * @param mixed $merchant_attr		Account ID, ElggEntity or entity guid of the merchant on whose behalf the requests are to be made
  * @return StripeClient
  */
 function __construct($environment = null, $merchant_attr = null)
 {
     StripeClientFactory::stageEnvironment($environment);
     $merchant = new StripeMerchant($merchant_attr);
     $access_token = $merchant->getAccessToken();
     $this->setAccessToken($access_token);
 }