How to hide 'Apple Cash' option from the list of payment options on Apple Pay side for my application users? Do we have any configuration available to specify this to Apple Pay API?
On our application, we implemented providing 'Apple Pay' payment option to our users. Apple Pay is listing all the cards added to Apple Wallet along with 'Apple Cash' if available. But transactions against 'Apple Cash' are not allowed. In that case, we like to restrict or hide 'Apple Cash' option to our users. How can we specify this to Apple Pay API to fulfill our wish while establishing the Apple Pay session? We did something like this (hiding AMEX credit cards) in the past making use of 'supportedNetworks' configuration parameter. Not sure how to achieve to do the same for 'Apple Cash' now. Here is the code snippet how we establish Apple Pay Session -
config = {
"countryCode" : "US",
"currencyCode" : "840",
"merchantCapabilities" : [ "supports3DS" ],
"supportedNetworks" : [ "visa", "masterCard", "discover" ],
"total" : {
"type" : "D",
"amount" : "25.00"
}
const session = new ApplePaySession(12, config);
session.onvalidatemerchant =getOnValidateMerchant(resolve, reject, session);
session.onpaymentauthorized = getOnPaymentAuthorized(resolve, reject, session);
session.oncancel = onCancelTransaction(resolve, reject, session);
session.begin();