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();

Posted on Aug 31, 2023 10:40 AM

Reply

Similar questions

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.