Wait for PayPay Payment
wait_for_paymentPolls PayPay until a payment reaches a terminal state or timeout, then returns the final status and full payment details.
Instructions
Poll PayPay until a payment reaches a terminal state (COMPLETED, AUTHORIZED, REFUNDED, FAILED, CANCELED) or the timeout elapses. Uses PayPay's recommended 2–3s polling interval by default. Returns the final status and full payment detail.
取引が終了状態(COMPLETED / AUTHORIZED / REFUNDED / FAILED / CANCELED)に達するかタイムアウトするまで、PayPayをポーリングします。 PayPay推奨の2〜3秒間隔をデフォルトで使用します。 最終ステータスと取引詳細を返します。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_seconds | No | Give up after this many seconds. Default: 120. | |
| merchant_payment_id | Yes | The merchantPaymentId of the payment to wait on. | |
| poll_interval_seconds | No | How often to poll (seconds). PayPay recommends 2–3s. |