feat(payment): 添加PayPal支付配置和订单状态更新功能

- 配置PayPal沙箱环境的Client ID和密钥
- 新增updatePaymentStatus方法用于更新订单支付状态
- 新增updateOrderStatus方法用于更新订单状态
- 实现支付状态更新时同步更新订单状态逻辑
- 添加详细的日志记录和异常处理机制
- 集成MyBatis Plus查询更新订单数据
This commit is contained in:
2025-12-23 10:18:15 +08:00
parent 84f74861bb
commit 13cf90d54b
3 changed files with 70 additions and 0 deletions

View File

@@ -65,3 +65,14 @@ pingpong:
gateway: https://sandbox-acquirer-payment.pingpongx.com
mode: sandbox
# PayPal支付配置开发环境使用沙箱
paypal:
# PayPal Client IDAPI密钥
client-id: AdGYUZpvLuHR30dybOApvM-RNB1pVKtd74SVfh-6TK52xV-1JEBddHVMCWuDdyyHri4DXd4kABBi7Icb
# PayPal Client Secret密钥
client-secret: ENblspyRmwsOU_PWFurlhEYUF5Da6aYKl0pjK4ehm7p3R5aSqvbpaF_YsIIs8v0ty1c9WJu15XP-Fe_1
# 环境模式sandbox沙箱或 production生产
mode: sandbox
# 是否启用PayPal支付
enabled: true