Skip to content

Getting configuration: exception when exception #34

@phena109

Description

@phena109

So I was trying to get the configuration without the right credential (still applying. i used something like 'abc', '123' as the merchant id and secret). The result from the request should throw me something like:

Client error: GET https://api-sandbox.secure-afterpay.com.au/v1/configuration resulted in a 401 Unauthorized response:
Credentials are required to access this resource

Instead I got (from JMS/Serializer/JsonDeserializationVisitor):

Could not decode JSON, syntax error - malformed JSON.

I believe it is to do with how CultureKings\Afterpay\Service\Merchant\Configuration construct additional exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions