Posts

Post not yet marked as solved
1 Replies
755 Views
Hi folks, On the web, I want to display the apple pay button when the user has active cards that are of the card networks we support in a certain checkout session. How can I achieve that? In the app, canMakePayments(usingNetworks:[]) can be used to detect if the user has set up a card that is of specific card networks before you provide the Apple Pay button to the user, however, I can't find the same function in the web version. Apple pay on the web provides a method canMakePaymentsWithActiveCard(DOMString merchantIdentifier); but it doesn't indicate what card networks the merchant is supported. It seems the only way to specify the card networks is inside a payment session at the supportedNetworks field of the payment request. But creating an ApplePaySession is required to inside of a gesture handler which means you have had to display the apple pay button ahead of it.
Posted
by xinmiao.
Last updated
.