Skip to content

client.Payment.capture_payment() で特定のパラメータが不足している場合のエラーメッセージが不正確 #86

@kouki3000

Description

@kouki3000

Describe the bug
client.Payment.capture_payment(request_payload) を使用する際、merchantPaymentId, merchantCaptureId, orderDescription のパラメータが存在しない場合、すべての ValueError が「MISSING REQUEST PARAMS for merchantPaymentId」と表示されます。

To Reproduce
Steps to reproduce the behavior:

  1. client.Payment.capture_payment(request_payload) を呼び出します。
  2. request_payload に merchantPaymentId, merchantCaptureId, orderDescription のいずれかを含まないようにします。
  3. エラーを確認します。

Expected behavior
merchantPaymentId, merchantCaptureId, orderDescription の各パラメータが存在しない場合、それぞれに対応した適切なエラーメッセージが表示されるべきです。

Screenshots

Environment (please complete the following information):

  • OS: macOS Monterey 12.4
  • Version: 1.7

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions