當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Stripe_ApiRequestor::request方法代碼示例

本文整理匯總了PHP中Stripe_ApiRequestor::request方法的典型用法代碼示例。如果您正苦於以下問題:PHP Stripe_ApiRequestor::request方法的具體用法?PHP Stripe_ApiRequestor::request怎麽用?PHP Stripe_ApiRequestor::request使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Stripe_ApiRequestor的用法示例。


在下文中一共展示了Stripe_ApiRequestor::request方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: upcoming

 public static function upcoming($params = null, $apiKey = null)
 {
     $requestor = new Stripe_ApiRequestor($apiKey);
     $url = self::classUrl(get_class()) . '/upcoming';
     list($response, $apiKey) = $requestor->request('get', $url, $params);
     return Stripe_Util::convertToStripeObject($response, $apiKey);
 }
開發者ID:ilaro-org,項目名稱:processing-docs,代碼行數:7,代碼來源:Invoice.php

示例2: deleteDiscount

 /**
  * @return Stripe_Subscription The updated subscription.
  */
 public function deleteDiscount()
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/discount';
     list($response, $apiKey) = $requestor->request('delete', $url);
     $this->refreshFrom(array('discount' => null), $apiKey, true);
 }
開發者ID:vilmark,項目名稱:vilmark_main,代碼行數:10,代碼來源:Subscription.php

示例3: transactions

 public function transactions($params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/transactions';
     list($response, $apiKey) = $requestor->request('get', $url, $params);
     return Stripe_Util::convertToStripeObject($response, $apiKey);
 }
開發者ID:neevan1e,項目名稱:Done,代碼行數:7,代碼來源:Transfer.php

示例4: updateDispute

 public function updateDispute($params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/dispute';
     list($response, $apiKey) = $requestor->request('post', $url, $params);
     $this->refreshFrom(array('dispute' => $response), $apiKey, true);
     return $this->dispute;
 }
開發者ID:lintonrentfro,項目名稱:simpleconvention,代碼行數:8,代碼來源:Charge.php

示例5: closeDispute

 public function closeDispute()
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/dispute/close';
     list($response, $apiKey) = $requestor->request('post', $url);
     $this->refreshFrom($response, $apiKey);
     return $this;
 }
開發者ID:Friends-School-Atlanta,項目名稱:Deployable-WordPress,代碼行數:8,代碼來源:Charge.php

示例6: capture

 public function capture($params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/capture';
     list($response, $apiKey) = $requestor->request('post', $url, $params);
     $this->refreshFrom($response, $apiKey);
     return $this;
 }
開發者ID:vilmark,項目名稱:vilmark_main,代碼行數:8,代碼來源:Charge.php

示例7: cancelSubscription

 public function cancelSubscription($params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl() . '/subscription';
     list($response, $apiKey) = $requestor->request('delete', $url, $params);
     $this->refreshFrom(array('subscription' => $response), $apiKey, true);
     return $this->subscription;
 }
開發者ID:ilaro-org,項目名稱:processing-docs,代碼行數:8,代碼來源:Customer.php

示例8: retrieve

 public function retrieve($id, $params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $base = $this['url'];
     $id = Stripe_ApiRequestor::utf8($id);
     $extn = urlencode($id);
     list($response, $apiKey) = $requestor->request('get', "{$base}/{$extn}", $params);
     return Stripe_Util::convertToStripeObject($response, $apiKey);
 }
開發者ID:danielcoats,項目名稱:schoolpress,代碼行數:9,代碼來源:List.php

示例9: retrieve

 public function retrieve($id, $params = null)
 {
     list($url, $params) = $this->extractPathAndUpdateParams($params);
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $id = Stripe_ApiRequestor::utf8($id);
     $extn = urlencode($id);
     list($response, $apiKey) = $requestor->request('get', "{$url}/{$extn}", $params);
     return Stripe_Util::convertToStripeObject($response, $apiKey);
 }
開發者ID:hyrmedia,項目名稱:builderengine,代碼行數:9,代碼來源:List.php

示例10: markAsSafe

 public function markAsSafe()
 {
     $params = array('fraud_details' => array('user_report' => 'safe'));
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl();
     list($response, $apiKey) = $requestor->request('post', $url, $params);
     $this->refreshFrom($response, $apiKey);
     return $this;
 }
開發者ID:rodhoff,項目名稱:MNW,代碼行數:9,代碼來源:Charge.php

示例11: _scopedDelete

 protected function _scopedDelete($class, $params = null, $options = null)
 {
     self::_validateCall('delete', $params, $options);
     $opts = Stripe_RequestOptions::parse($options);
     $key = $opts->apiKey ? $opts->apiKey : $this->_apiKey;
     $requestor = new Stripe_ApiRequestor($key, self::baseUrl());
     $url = $this->instanceUrl();
     list($response, $apiKey) = $requestor->request('delete', $url, $params);
     $this->refreshFrom($response, $apiKey);
     return $this;
 }
開發者ID:q0821,項目名稱:esportshop,代碼行數:11,代碼來源:ApiResource.php

示例12: _scopedDelete

 protected function _scopedDelete($class, $params = null)
 {
     self::_validateCall('delete');
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     $url = $this->instanceUrl();
     list($response, $apiKey) = $requestor->request('delete', $url, $params);
     $this->refreshFrom($response, $apiKey);
     return $this;
 }
開發者ID:macconsultinggroup,項目名稱:WordPress,代碼行數:9,代碼來源:ApiResource.php

示例13: all

 public function all($params = null)
 {
     $requestor = new Stripe_ApiRequestor($this->_apiKey);
     list($response, $apiKey) = $requestor->request('get', $this['url'], $params);
     return Stripe_Util::convertToStripeObject($response, $apiKey);
 }
開發者ID:sgh1986915,項目名稱:php-crm,代碼行數:6,代碼來源:List.php


注:本文中的Stripe_ApiRequestor::request方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。