WallesterPay

平台运维 / 商户后台

WallesterPay

支付订单

payment_id 商户订单号 金额 支付 结算 收银台 创建时间 操作

Wallester API 与回调

① 入站 Webhook(Wallester → 本平台)

在 Wallester 后台订阅 Account adjustment 等事件,URL 与 Basic Auth 如下。 生产环境请填写公网 public_base_url(如 https://pay.example.com)。


② Backend API(官方 REST,对账 / 查 adjustments)

与 Portal Token 不同:用于 api.wallester.com 的 JWT(RS256 私钥 + Product Code)。 创单收银台仍用「Portal 通道」的 access/refresh。

使用下方 Portal 通道的 User JWT,读取 products[].code 填入 Backend 配置。


            

Portal 通道(Top-Up / pay_url)

已配置通道

名称 account_id 状态 权重 access 过期 操作

添加通道(粘贴 session 的 access / refresh)

创建商户

API 说明

独立站服务端调用(API Key 在创建商户时获得,遗失需联系平台重新开户):

POST /v1/payments
Authorization: Bearer sk_live_...
Content-Type: application/json

{
  "out_trade_no": "ORDER-001",
  "amount": "100.00",
  "currency": "EUR",
  "notify_url": "https://your-shop.com/wpay/notify"
}

响应 pay_url 跳转买家付款;total_amount 为含手续费总额。

Webhook 验签:Header X-WPay-Signature,算法 HMAC-SHA256(whsec, timestamp + "." + body)。