[API指南] 自定义金额支付功能支持¶
PG支付API中的折扣功能正在更改为自定义金额支付功能。"折扣券"术语正在更改为"比例折扣券"。
- 在API请求/响应中将
discount_type→price_type更改 - 更新Web PG支付API参数结构
- 实现自定义金额支付时的必需安全验证逻辑
主要变更¶
1. 字段名称更改¶
discount_type→price_type- 值:
none: 标准金额支付,custom_price: 自定义金额支付
2. Web PG支付API参数更改¶
删除的参数:discount_type、discount_price、total_price、coupon、point 添加的参数:custom_price、discount_coupon
3. 自定义金额支付时的支付验证¶
进行自定义金额支付时,必须通过gameserver_price_verify_key验证金额/货币。