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.
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:
Instead I got (from JMS/Serializer/JsonDeserializationVisitor):
I believe it is to do with how CultureKings\Afterpay\Service\Merchant\Configuration construct additional exception.