当前位置: 首页>>代码示例>>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;未经允许,请勿转载。