Skip to content

deprecated code in APIException has no equal replacement #61

@csaundersz

Description

@csaundersz

Description of the Bug

code is deprecated in APIException with the message to use apiErrorCode instead. apiErrorCode does not convey the same level of granularity of the failure. See screenshot.

Image

Steps to reproduce

Attempt to create a hosted page checkout with an invalid coupon code.

Expected Behavior

I should be able to determine the specific cause of an error, e.g. coupon_not_applicable without using deprecated accessors

Code Snippets (if applicable)

Operating System

Mac

Language version

21

Library version

3.38.0

Additional context

No response

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