Skip to content

Commit

Permalink
fix wechat redpack missing sign
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Jan 23, 2018
1 parent 2901572 commit 1160d0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Gateways/Wechat/GroupRedpackGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function pay($endpoint, array $payload): Collection

unset($payload['appid'], $payload['trade_type'], $payload['notify_url'], $payload['spbill_create_ip']);

$payload['sign'] = Support::generateSign($payload, $this->config->get('key'));

Log::debug('Paying A Groupredpack Order:', [$endpoint, $payload]);

return Support::requestApi(
Expand Down
2 changes: 2 additions & 0 deletions src/Gateways/Wechat/RedpackGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public function pay($endpoint, array $payload): Collection

unset($payload['appid'], $payload['trade_type'], $payload['notify_url'], $payload['spbill_create_ip']);

$payload['sign'] = Support::generateSign($payload, $this->config->get('key'));

Log::debug('Paying A Redpack Order:', [$endpoint, $payload]);

return Support::requestApi(
Expand Down

0 comments on commit 1160d0e

Please sign in to comment.