Skip to content

[iOS] didFail navigation + declined, but user completed payment #21

@Jack25apr

Description

@Jack25apr

Hi!

We experienced non-ambiguous situation:

we got "declined" status from webview delegate

public func webView(_ webView: WKWebView, didFail navigation

And app sent "declined" status to our backend.
But user somehow finished payment, backend got "success" payment status after some seconds,
backend ignored it - because we got "declined" status previously.

Can be SDK fixed somehow, because it looks strange from backend perspective.

  • Maybe SDK should not trigger "declined" callback on "didFail navigation"
  • Or if we got 'didFail navigation" in webview, try to start over payment again (reload page?) or show alert "Something went wrong "reload" / "cancel"

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