Skip to content

Commit

Permalink
add support for qr_pay_mode.
Browse files Browse the repository at this point in the history
即支持扫码支付,qr_pay_mode有4个值可选,具体参考支付宝官方文档。
  • Loading branch information
ThreeAt authored and ThreeAt committed Aug 14, 2015
1 parent a35de51 commit 829d60c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Latrell/Alipay/Web/SdkPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class SdkPayment

private $cacert;

private $qr_pay_mode;

public function __construct()
{
$this->cacert = getcwd() . '\\cacert.pem';
Expand All @@ -70,7 +72,8 @@ public function getPayLink()
'show_url' => $this->show_url,
'anti_phishing_key' => $this->anti_phishing_key,
'exter_invoke_ip' => $this->exter_invoke_ip,
'_input_charset' => strtolower($this->_input_charset)
'_input_charset' => strtolower($this->_input_charset),
'qr_pay_mode' => $this->qr_pay_mode
);

$para = $this->buildRequestPara($parameter);
Expand Down Expand Up @@ -181,6 +184,12 @@ public function setExterInvokeIp($exter_invoke_ip)
return $this;
}

public function setQrPayMode($qr_pay_mode)
{
$this->qr_pay_mode = $qr_pay_mode;
return $this;
}

/**
* 生成要请求给支付宝的参数数组
* @param $para_temp 请求前的参数数组
Expand Down

0 comments on commit 829d60c

Please sign in to comment.