赞
踩
/** * Schedule an order. * * @author yansongda <me@yansongda.cn> * * @param array $payload * * @throws GatewayException * @throws InvalidArgumentException * @throws InvalidSignException */ protected function preOrder($payload): Collection { $payload['sub_openid'] = $payload['openid']; unset($payload['openid']); $payload['sign'] = Support::generateSign($payload); Events::dispatch(new Events\MethodCalled('Wechat', 'PreOrder', '', $payload)); return Support::requestApi('pay/unifiedorder', $payload); }
至此就可以用 小程序进行支付啦!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。