Skip to content

Feat: Failure reason for Payment Failure #207

@reez

Description

@reez

Reason: Would be nice to see as a user why a payment failed. We show a user their payment details in PaymentDetailView, leverages PaymentDetails which has PaymentStatus which looks like:

public enum PaymentStatus {
    
    case pending
    case succeeded
    case failed
}

Where user should see this: User goes to main view and taps on payment to see the details. Right now they can see failed but no additional context.

Opened an Issue and draft PR on LDK Node. My suggestion is to add an associated reason to failed where we'd have access to something like:

public enum PaymentStatus {
    
    case pending
    case succeeded
    case failed(<reason>)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    future: dependencyNeed from 3rd party dependency first.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions