src/Gateways/Alipay/Alipay.php 1 location
|
@@ 83-92 (lines=10) @@
|
| 80 |
|
* |
| 81 |
|
* @return [type] [description] |
| 82 |
|
*/ |
| 83 |
|
public function pay(array $config_biz = []) |
| 84 |
|
{ |
| 85 |
|
$config_biz['product_code'] = $this->getPayProductCode(); |
| 86 |
|
|
| 87 |
|
$this->config['method'] = $this->getPayMethod(); |
| 88 |
|
$this->config['biz_content'] = json_encode($config_biz, JSON_UNESCAPED_UNICODE); |
| 89 |
|
$this->config['sign'] = $this->getSign(); |
| 90 |
|
|
| 91 |
|
return $this->buildPayHtml(); |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
/** |
| 95 |
|
* 对外接口 - 退款. |
src/Gateways/Alipay/AppGateway.php 1 location
|
@@ 49-58 (lines=10) @@
|
| 46 |
|
* |
| 47 |
|
* @return [type] [description] |
| 48 |
|
*/ |
| 49 |
|
public function pay(array $config_biz = []) |
| 50 |
|
{ |
| 51 |
|
$config_biz['product_code'] = $this->getPayProductCode(); |
| 52 |
|
|
| 53 |
|
$this->config['method'] = $this->getPayMethod(); |
| 54 |
|
$this->config['biz_content'] = json_encode($config_biz, JSON_UNESCAPED_UNICODE); |
| 55 |
|
$this->config['sign'] = $this->getSign(); |
| 56 |
|
|
| 57 |
|
return http_build_query($this->config); |
| 58 |
|
} |
| 59 |
|
} |
| 60 |
|
|