Search code examples
androidnfcandroid-paygoogle-paywallet

Is it possible to switch a payment card in wallet without user interaction?


Is the following scenario in Android technically possible?

  1. User has an Android wallet with two payment cards, A and B. Where A is the default payment card.
  2. User tries to pay contactless at a merchants terminal.
  3. Payment fails for any reason.
  4. The app which holds/manages the wallet (an alternative to Google Pay) detects the failed attempt and switches the payment method automatically from card A to B, without the need for the user to interact.
  5. User can try again to pay contactless with card B.

Is this possible without the user confirming or triggering this change of payment card? The whole point of this is to quickly allow a secondary card to be used as payment alternative, without manually switching for the user.


Solution

  • I am guessing you are trying to make an app like described and you are not talking about an existing app.

    This is only possible if you "are a bank". (clearification below)

    Because paying with NFC on your phone is like paying directly per card. The merchend charges the given card (which is presented via NFC).

    If you are a bank or have the ability to implement a system like the following it would be possible.

    1. Phone gets scanned at the merchand
    2. You (your banking system) gets the request for charging a specific amount
    3. On your backend you will try to charge the given card from the user if that failes you try to charge the users paypal or any other given payment method from the user
    4. If charging the user is successful you will authorize the transaction from the merchant

    I do not know if the merchant will wait long enough for your backend.

    Take a look at https://www.solarisbank.com/, they offer banking service for other companies and have a "straight forward API".