Skip to content

refund function has void type but returns data #390

Description

@CedHild

What happened?

the "sumup.transactions.refund" function has a void return type, but for failed refunds it doesn't throw. checked the actual data returned, it actually returns something like this:

refundRes { amount: 100, currency: '..., payment_id: '...', id: '...', status: 'failed', response_code: '51' }

Relevant code or error output

SDK version

0.1.6

Runtime version

No response

Package manager

No response

Operating system

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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