Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
冪等キーを使用して二重課金を防止し、決済の安全性を確保します。
paymentRequestId
subscriptionRequest
// 1. 32文字以内の一意な冪等キーを生成 const paymentRequestId = generateUniqueRequestId(); // 2. 永続化(リクエスト送信前に!) await db.order.create({ paymentRequestId, status: 'PENDING' }); // 3. リクエスト送信 try { const response = await waffo.order().create({ paymentRequestId, ... }); } catch (e) { if (e instanceof WaffoUnknownStatusException) { // 4. ステータス不明: create を再試行せず、照会すること const inquiry = await waffo.order().inquiry({ paymentRequestId }); } }
このページは役に立ちましたか?