update: alipay f2f sdk

This commit is contained in:
tokumeikoi 2022-02-24 23:26:51 +08:00
parent 33b59d126e
commit 1813fdca5d

View File

@ -71,7 +71,7 @@ class AlipayF2F {
public function send()
{
$response = Http::get('https://openapi.alipay.com', $this->buildParam())->json();
$response = Http::get('https://openapi.alipay.com/gateway.do', $this->buildParam())->json();
$resKey = str_replace('.', '_', $this->method) . '_response';
if (!isset($response[$resKey])) throw new \Exception('从支付宝请求失败');
$response = $response[$resKey];