Skip to content

Error handling #23

@michaelgobbers

Description

@michaelgobbers

Hi there,

I noticed that the error handling this plugin could be improved a bit... Currently there is no way to detect if a user cancelled a payment or if an error occurred.

I would love to change that behaviour by forking and making a PR. But unfortunately, I believe this might be a breaking change...

The way I'd tackle this is by making the plugin throw a flutter pay error when there is a paymentError. However, this will required developers to be aware of this and handle this exception appropriately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions