/** * 构造方法. * * @param null * * @return bool */ public function __construct($app) { parent::__construct($app); $this->callback_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('ectools_payment_applications_alipay' => 'callback')); $this->notify_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('ectools_payment_applications_alipay' => 'notify')); $this->submit_url = 'https://mapi.alipay.com/gateway.do?_input_charset=utf-8'; $this->submit_method = 'POST'; $this->submit_charset = 'utf-8'; }
/** * 构造方法. * * @param null * * @return bool */ public function __construct($app) { parent::__construct($app); $this->callback_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('ectools_payment_applications_chinapay' => 'callback')); $this->notify_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('ectools_payment_applications_chinapay' => 'notify')); $this->submit_url = 'https://payment.ChinaPay.com/pay/TransGet'; if (constant('CHINAPAY_TEST')) { $this->submit_url = 'http://payment-test.ChinaPay.com/pay/TransGet'; } $this->submit_method = 'POST'; $this->submit_charset = 'utf-8'; }
/** * 构造方法. * * @param null * * @return bool */ public function __construct($app) { parent::__construct($app); $this->callback_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('wechat_payment_applications_wxpay' => 'callback')); $this->notify_url = vmc::openapi_url('openapi.ectools_payment', 'getway_callback', array('wechat_payment_applications_wxpay' => 'notify')); }