Exemplo n.º 1
0
 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_upacp', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_upacp', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
 }
Exemplo n.º 2
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_unionpay_server', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_unionpay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     // 按照相应要求请求接口网关改为一下地址
     //$this->submit_url = 'https://www.epay.lxdns.com/UpopWeb/api/Pay.action';
     $this->submit_url = 'https://unionpaysecure.com/api/Pay.action';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 3
0
 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpay_server', 'callback');
     $this->notify_url = kernel::base_url(1) . '/index.php/openapi/weixin/wxpay';
     #test
     // $this->notify_url = kernel::base_url(1).'/index.php/wap/paycenter-wxpay.html';
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     // $this->submit_url = $this->gateway;
     // $this->submit_method = 'GET';
     $this->submit_charset = 'UTF-8';
     $this->signtype = 'sha1';
 }
Exemplo n.º 4
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_ibankinginner_server', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_ibankinginner', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     $this->submit_url = 'https://pay3.chinabank.com.cn/PayGate?encoding=UTF-8';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 5
0
 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_alipay_server', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_alipay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     //$this->submit_url = 'https://www.alipay.com/cooperate/gateway.do?_input_charset=utf-8';
     //ajx  按照相应要求请求接口网关改为一下地址
     $this->submit_url = 'https://mapi.alipay.com/gateway.do?_input_charset=utf-8';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 6
0
 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_malipay_server', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_malipay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     $this->submit_url = $this->gateway;
     $this->submit_method = 'GET';
     $this->submit_charset = $this->_input_charset;
 }
Exemplo n.º 7
0
 /**
  * 构造方法
  * @param object 传递应用的app
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_paypal_server', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->notify_url, $matches)) {
         $this->notify_url = str_replace('http://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "http://" . $this->notify_url;
     } else {
         $this->notify_url = str_replace('https://', '', $this->notify_url);
         $this->notify_url = preg_replace("|/+|", "/", $this->notify_url);
         $this->notify_url = "https://" . $this->notify_url;
     }
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_paypal', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     $this->submit_url = 'https://www.paypal.com/cgi-bin/webscr';
     // $this->submit_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr'; //test
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 8
0
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = kernel::api_url('api.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_alipay', 'callback');
     $this->submit_url = 'https://www.alipay.com/cooperate/gateway.do?_input_charset=utf-8';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 9
0
 /**
  * 构造方法
  * @param object 传递应用的app
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = "";
     $this->submit_url = '';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 10
0
 /**
  * 构造方法
  * @param null
  * @return boolean
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // $this->notify_url = kernel::openapi_url('openapi.ectools_payment/parse/weixin/weixin_payment_plugin_wxpayjsapi', 'callback');
     $this->notify_url = url::to('wap/wxpayjsapi.html');
     #test
     $this->submit_charset = 'UTF-8';
     $this->signtype = 'sha1';
 }
Exemplo n.º 11
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->callback_url = kernel::api_url('api.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_paypal', 'callback');
     $this->callback_url = str_replace("//", "/", $this->callback_url);
     $this->submit_url = 'https://www.paypal.com/cgi-bin/webscr';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 12
0
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = kernel::api_url('api.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_tenpay', 'callback');
     $this->submit_url = 'https://www.tenpay.com/cgi-bin/v1.0/pay_gate.cgi';
     $this->submit_method = 'POST';
     $this->submit_charset = 'gb2312';
 }
Exemplo n.º 13
0
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = kernel::api_url('api.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_99bill', 'callback');
     $this->submit_url = 'https://www.99bill.com/gateway/recvMerchantInfoAction.htm';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 14
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->callback_url = app::get('site')->router()->gen_url(array('app' => 'chinapay', 'ctl' => 'site_request', 'act' => 'index', 'full' => 1));
     $this->servercallback_url = app::get('site')->router()->gen_url(array('app' => 'chinapay', 'ctl' => 'site_request', 'act' => 'serverCallback', 'full' => 1));
     $this->submit_url = 'https://payment.ChinaPay.com/pay/TransGet';
     if (defined('CHINAPAY')) {
         $this->submit_url = "http://payment-test.ChinaPay.com/pay/TransGet";
         //测试
     }
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }
Exemplo n.º 15
0
 public function __construct($app)
 {
     $this->payment_plugin_ecstoreappabcwap_skv();
     parent::__construct($app);
     $this->callback_url = app::get('site')->router()->gen_url(array('app' => 'ecstoreappabcwap', 'ctl' => 'site_request', 'act' => 'index', 'full' => 1));
     $this->servercallback_url = app::get('site')->router()->gen_url(array('app' => 'ecstoreappabcwap', 'ctl' => 'site_request', 'act' => 'serverCallback', 'full' => 1));
     $this->submit_url = 'https://www.95599.cn/b2c/trustpay/ReceiveMerchantIERequestServlet';
     if (defined('ecstoreappabcwap')) {
         $this->submit_url = "https://www.95599.cn/b2c/trustpay/ReceiveMerchantIERequestServlet";
         //测试
     }
     $this->submit_method = 'POST';
     $this->submit_charset = 'gbk';
 }
Exemplo n.º 16
0
 /**
  * 构造方法
  * @param object 传递应用的app
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_tenpay', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     $this->submit_url = 'https://www.tenpay.com/cgi-bin/v1.0/pay_gate.cgi';
     $this->submit_method = 'POST';
     $this->submit_charset = 'gb2312';
 }
Exemplo n.º 17
0
 /**
  * 构造方法
  * @param object 传递应用的app
  * @return null
  */
 public function __construct($app)
 {
     parent::__construct($app);
     //$this->callback_url = $this->app->base_url(true)."/apps/".basename(dirname(__FILE__))."/".basename(__FILE__);
     $this->callback_url = kernel::openapi_url('openapi.ectools_payment/parse/' . $this->app->app_id . '/ectools_payment_plugin_99bill', 'callback');
     if (preg_match("/^(http):\\/\\/?([^\\/]+)/i", $this->callback_url, $matches)) {
         $this->callback_url = str_replace('http://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "http://" . $this->callback_url;
     } else {
         $this->callback_url = str_replace('https://', '', $this->callback_url);
         $this->callback_url = preg_replace("|/+|", "/", $this->callback_url);
         $this->callback_url = "https://" . $this->callback_url;
     }
     $this->submit_url = 'https://www.99bill.com/gateway/recvMerchantInfoAction.htm';
     $this->submit_method = 'POST';
     $this->submit_charset = 'utf-8';
 }