跳轉至

[API 指南] 自訂金額付款功能支援

PG 付款 API 中的折扣功能正在變更為自訂金額付款功能。「折扣券」術語正在變更為「比例折扣券」。

  1. 在 API 請求/回應中將 discount_typeprice_type 變更
  2. 更新網頁 PG 付款 API 參數結構
  3. 實作自訂金額付款時的必要安全驗證邏輯

主要變更事項

1. 欄位名稱變更

  • discount_typeprice_type
  • 值:none: 標準金額付款,custom_price: 自訂金額付款

2. 網頁 PG 付款 API 參數變更

移除的參數discount_typediscount_pricetotal_pricecouponpoint 新增的參數custom_pricediscount_coupon

3. 自訂金額付款時的付款驗證

進行自訂金額付款時,必須透過 gameserver_price_verify_key 驗證金額/貨幣。

已變更的指南