新增微信支付

This commit is contained in:
2026-04-13 17:25:33 +08:00
parent dca43a2d0d
commit d060e1b797
8 changed files with 165 additions and 29 deletions
+6 -1
View File
@@ -13,6 +13,10 @@ use Illuminate\Http\Client\Response;
use Illuminate\Support\Facades\Http;
use RuntimeException;
/**
* NovaLink 支付中心客户端
* 负责构建开放接口签名请求,并与远端支付中心完成下单和查单通信。
*/
class VipPaymentCenterClient
{
/**
@@ -65,7 +69,8 @@ class VipPaymentCenterClient
'subject' => $vipPaymentOrder->subject,
'body' => '聊天室 VIP 会员购买:'.$vipPaymentOrder->vip_name,
'amount' => number_format((float) $vipPaymentOrder->amount, 2, '.', ''),
'channel' => 'web',
// 支付中心要求商户显式指定 provider,不能依赖平台自动推断。
'provider' => $vipPaymentOrder->provider,
'business_type' => 'chatroom_vip',
'sync_return_url' => $syncReturnUrl,
'async_notify_url' => $asyncNotifyUrl,