Skip to content

Method _handle_response returns multiple object types #49

@artemijan

Description

@artemijan

return string

return raw_response

and here return object
return AdyenResult(message=response, status_code=status_code,

This method should not return multiple object types, it should return AdyenResponse only or raise an exception
Use case:
if you will try to authorize this card: 3569 9900 1009 5841
then method will return string
if you will try to authorize 2223 0000 4841 0010 with cvc 7371
then method will raise an exception
if you will try to authorize 2223 0000 4841 0010 with valid cvc (737)
then AdyenResponse object will be returned.

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