Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

feat: More specific error messages #6

Open
mariusbolik opened this issue Oct 11, 2022 · 2 comments
Open

feat: More specific error messages #6

mariusbolik opened this issue Oct 11, 2022 · 2 comments

Comments

@mariusbolik
Copy link

Hi, thank you for this awesome plugin! I faced the issue, that the payment sheet wasn't showing up. It turned out, that I missed to add the Apple Pay Capability to the Debug Section in Xcode. I only added it to the Release Section. The error that showed up was the following:

Bildschirmfoto 2022-10-11 um 11 25 37

Also merchantCapabilities is set to optional in typescript, but if it's missing, another error appears.
I had no clue, that merchantCapabilities could be the problem here:

Bildschirmfoto 2022-10-11 um 11 02 23

This error messages aren't very specific. Also, the messages are displayed in the language of the device. Instead of using error.localizedDescription, please use a more specific way to display error messages. This would make this plugin perfect! :)

This was a good support for me: https://stackoverflow.com/a/53231548

Best regards,
Marius

@kondratk
Copy link
Member

kondratk commented Oct 11, 2022

Hey @mariusbolik,
thank you for your feedback! I will try to find time to improve error handling at these cases later this month. However, contributions are also welcome!

@3adeling
Copy link

@kondratk also supportedNetworks should not be optional.. I used the stackoverflow link provided by @mariusbolik and it was really helpful..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants