Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tioncico authored May 17, 2019
1 parent 10cd035 commit 7f3a710
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,9 @@ $aliConfig->setPublicKey('阿里公钥');
$aliConfig->setPrivateKey('阿里私钥');
$pay = new \EasySwoole\Pay\Pay();

if (isset($param['sign_type'])) {
unset($param['sign_type']);
}
$param = [];//param为post的数据
$order = new \EasySwoole\Pay\AliPay\RequestBean\NotifyRequest($param, true);
$param = [];//伪代码,post数据
unset($param['sign_type']);//需要忽略sign_type组装
$order = new \EasySwoole\Pay\AliPay\RequestBean\NotifyRequest($param,true);
$aliPay = $pay->aliPay($aliConfig);
$result = $aliPay->verify($order);
var_dump($result);
Expand Down

0 comments on commit 7f3a710

Please sign in to comment.