当前位置: 首页>>代码示例>>PHP>>正文


PHP Gateway::prepareRequest方法代码示例

本文整理汇总了PHP中Gateway::prepareRequest方法的典型用法代码示例。如果您正苦于以下问题:PHP Gateway::prepareRequest方法的具体用法?PHP Gateway::prepareRequest怎么用?PHP Gateway::prepareRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Gateway的用法示例。


在下文中一共展示了Gateway::prepareRequest方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: prepareRequest

 protected function prepareRequest($endpointType = 'xml')
 {
     $this->request['mid'] = $this->config('mid');
     $this->request['tid'] = $this->config('tid');
     //$this->request['tranDateRequired'] = '1';
     $endpoint = $this->config('endpoint');
     $this->endpoint = $endpoint[$endpointType];
     parent::prepareRequest();
     $this->requestBody = 'xmldata=' . urldecode($this->requestBody);
 }
开发者ID:refo,项目名称:payment,代码行数:10,代码来源:Yapikredi.php

示例2: prepareRequest

 protected function prepareRequest($endpointType = 'xml')
 {
     $endpoint = $this->config('endpoint');
     $this->endpoint = $endpoint[$endpointType];
     $this->request['Name'] = $this->config('username');
     $this->request['Password'] = $this->config('password');
     $this->request['ClientId'] = $this->config('merchant');
     parent::prepareRequest();
     $this->requestBody = 'data=' . urldecode($this->requestBody);
 }
开发者ID:refo,项目名称:payment,代码行数:10,代码来源:Akbank.php

示例3: prepareRequest

 protected function prepareRequest($endpointType = 'xml')
 {
     $endpoint = $this->config('endpoint');
     $this->endpoint = $endpoint[$endpointType];
     $this->request['Mode'] = $this->test ? 'TEST' : 'PROD';
     parent::prepareRequest();
     $request = $this->requestBody;
     //$request = preg_replace('/\n[ ]+/', "\n", $request);
     //die($request);
     //$this->requestBody = 'xmldata=' . urldecode($this->requestBody);
 }
开发者ID:refo,项目名称:payment,代码行数:11,代码来源:Garanti.php


注:本文中的Gateway::prepareRequest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。