Skip to content

Commit

Permalink
jsapi支付(APP支付)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemao authored Jun 1, 2020
1 parent 2550fa3 commit a157336
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
$payAmount = 0.01; //付款金额,单位:元
$orderName = '支付测试'; //订单标题
$signType = 'RSA2'; //签名算法类型,支持RSA2和RSA,推荐使用RSA2
//商户私钥
$rsaPrivateKey='';
//商户私钥,填写对应签名算法类型的私钥,如何生成密钥参考:https://docs.open.alipay.com/291/105971和https://docs.open.alipay.com/200/105310
$rsaPrivateKey='xxxxx';
/*** 配置结束 ***/
$aliPay = new AlipayService();
$aliPay->setAppid($appid);
Expand Down Expand Up @@ -94,7 +94,7 @@ class AlipayService
protected $orderName;
public function __construct()
{
$this->charset = 'utf8';
$this->charset = 'utf-8';
}
public function setAppid($appid)
{
Expand Down

0 comments on commit a157336

Please sign in to comment.