[API 指南] 自訂金額付款功能支援¶
PG 付款 API 中的折扣功能正在變更為自訂金額付款功能。「折扣券」術語正在變更為「比例折扣券」。
- 在 API 請求/回應中將
discount_type
→price_type
變更 - 更新網頁 PG 付款 API 參數結構
- 實作自訂金額付款時的必要安全驗證邏輯
主要變更事項¶
1. 欄位名稱變更¶
discount_type
→price_type
- 值:
none: 標準金額付款,custom_price: 自訂金額付款
2. 網頁 PG 付款 API 參數變更¶
移除的參數:discount_type
、discount_price
、total_price
、coupon
、point
新增的參數:custom_price
、discount_coupon
3. 自訂金額付款時的付款驗證¶
進行自訂金額付款時,必須透過 gameserver_price_verify_key
驗證金額/貨幣。