Merchant Payments
外部Applicationが注文単位のPaymentを作成し、D-Wallet公式Botの本人確認を経由して決済する仕組みです。
payment = await client.create_payment(
payer_discord_user_id="123456789012345678",
asset="LTC",
amount="0.01000000",
idempotency_key="order-1001",
merchant_reference="ORDER-1001",
description="Example order",
)
print(payment["payment_id"])
print(payment["status"])Public operations
create · read · cancel のみです。
支払いフロー
ApplicationがPaymentを作成すると、支払者へD-Walletから確認が届きます。支払い完了後はPayment状態の更新とWebhookイベントで結果を確認できます。
Idempotency
idempotency_key はApplication内で一意です。同じ注文の再送には同じKeyを利用し、別内容で同じKeyを再利用しないでください。
Status
CREATED / AWAITING_CONFIRMATION / PROCESSING / COMPLETED / CANCELLED / EXPIRED / FAILED / EXECUTION_UNKNOWN
Developer Dashboard
Application、API Key、Scope、Webhook、Usage、Audit、Payment履歴はDeveloper Dashboardから管理できます。
