Open jimmystridh opened 6 years ago
@jimmystridh hi, i have faced same problem. So i created a small pull request to resolve this issue
@ACOSW nice, that would work for my needs. @Andreyco what is your view on this ? Thanks
Looks like this project is dead and not maintained anymore =|
Problem: canMakePayments only checks if the system supports Apple Pay but does not check if the user has added a credit card. Sometimes you might want to behave differently if Apple Pay hasn't be set up yet.
Something like this works well in my tests (the added constant canMakeCcPayments):
however I'm not sure where the best place to put it is. I'm also not sure if there is an Android equivalent.
This seems to be related to #77 , and might be a solution to implementing that call (there doesn't seem to be another native equivalent to canMakePaymentsWithActiveCard).
What are your thoughts on implementing this ?
Docs for method canMakePaymentsUsingNetworks: