Skip to content

Pay plugin showing success for failed apple pay transaction in flutter app on apple pay sheet #248

@khanawansocialb

Description

@khanawansocialb

I have successfully implemented apple pay using the pay plugin in my e-commerce flutter app and it works just fine. The only problem is that the apple pay sheet, upon the completion of transaction, shows done (success) for both failed and successful transactions. I am showing an alert dialog when failure occurs, but still this issue is misleading and unfriendly to the users. I have tested this with Sandbox and real apple wallets and the result is same. There's no issue in my backend either as I have tested a transaction without invoking my backend endpiont and the result is no different. I am using final res = await _payClient.showPaymentSelector(PayProvider.apple_pay, _paymentItems); to get the token and send this to backend. It seems that my Apple Pay configuration files are also without issues; if there had been any problems, transactions wouldn't have been completed in the first place. My pay plugin version is 1.1.2 and my dart sdk is >=3.0.3 <4.0.0. I have provided the screenshot for a failed transaction below:

76cc346f-f8e9-40c3-8613-0d420ec66e0d

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