feat: order payment function is ready

This commit is contained in:
RockYang
2023-11-08 17:48:07 +08:00
parent e221b1eed4
commit 2ebff2623f
11 changed files with 118 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ func NewAlipayService(appConfig *types.AppConfig) (*AlipayService, error) {
return nil, fmt.Errorf("error with read App Private key: %v", err)
}
xClient, err := alipay.New(config.AppId, priKey, !config.SandBox)
xClient, err := alipay.New(config.AppId, priKey, false)
if err != nil {
return nil, fmt.Errorf("error with initialize alipay service: %v", err)
}