WalletConstants.CardNetwork
Stay organized with collections
Save and categorize content based on your preferences.
Credit card networks. Different APIs may support only a subset of these.
Available options:
When used with Google Pay, the following networks use EMV cryptograms instead of 3DS
cryptograms as part of the payment credentials:
Inherited Method Summary
From interface java.lang.annotation.Annotation
abstract Class<? extends Annotation>
|
annotationType()
|
abstract boolean |
|
abstract int |
hashCode()
|
abstract String
|
toString()
|
Constants
public static final int
AMEX
public static final int
DISCOVER
public static final int
INTERAC
public static final int
JCB
public static final int
MASTERCARD
public static final int
OTHER
public static final int
VISA
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eWalletConstants.CardNetwork\u003c/code\u003e defines an annotation for specifying supported credit card networks within different APIs.\u003c/p\u003e\n"],["\u003cp\u003eSupported networks include Amex, Discover, JCB, Mastercard, Visa, Interac, and other.\u003c/p\u003e\n"],["\u003cp\u003eWhen using Google Pay, Interac utilizes EMV cryptograms instead of 3DS cryptograms for payment credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe constants such as \u003ccode\u003eAMEX\u003c/code\u003e, \u003ccode\u003eDISCOVER\u003c/code\u003e, \u003ccode\u003eINTERAC\u003c/code\u003e, etc., are deprecated; use their corresponding \u003ccode\u003eWalletConstants.CARD_NETWORK_*\u003c/code\u003e counterparts instead.\u003c/p\u003e\n"]]],["WalletConstants.CardNetwork defines credit card networks, including AMEX, Discover, JCB, Mastercard, Visa, Interac, and Other. These are supported by various APIs, which may only support some of them. Interac utilizes EMV cryptograms instead of 3DS cryptograms with Google Pay. Each network has a corresponding deprecated constant integer value, recommending the use of the newer `CARD_NETWORK_` alternatives. This interface also inherits methods from the Annotation interface like `annotationType()`, `equals()`, `hashCode()`, and `toString()`.\n"],null,["# WalletConstants.CardNetwork\n\npublic static abstract @interface **WalletConstants.CardNetwork** implements [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html) \nCredit card networks. Different APIs may support only a subset of these.\n\nAvailable options:\n\n- [WalletConstants.CARD_NETWORK_AMEX](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_AMEX)\n- [WalletConstants.CARD_NETWORK_DISCOVER](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_DISCOVER)\n- [WalletConstants.CARD_NETWORK_JCB](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_JCB)\n- [WalletConstants.CARD_NETWORK_MASTERCARD](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_MASTERCARD)\n- [WalletConstants.CARD_NETWORK_VISA](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_VISA)\n- [WalletConstants.CARD_NETWORK_INTERAC](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_INTERAC)\n- [WalletConstants.CARD_NETWORK_OTHER](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_OTHER)\n\nWhen used with Google Pay, the following networks use EMV cryptograms instead of 3DS\ncryptograms as part of the payment credentials:\n\n- [WalletConstants.CARD_NETWORK_INTERAC](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_INTERAC)\n\n##### See Also\n\n- [EMV (Wikipedia)](//en.wikipedia.org/wiki/EMV)\n- [3-D_Secure (Wikipedia)](//en.wikipedia.org/wiki/3-D_Secure) \n\n### Constant Summary\n\n|-----|-------------------------------------------------------------------------------------------------------|-------------|\n| int | [AMEX](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#AMEX) | Deprecated. |\n| int | [DISCOVER](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#DISCOVER) | Deprecated. |\n| int | [INTERAC](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#INTERAC) | Deprecated. |\n| int | [JCB](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#JCB) | Deprecated. |\n| int | [MASTERCARD](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#MASTERCARD) | Deprecated. |\n| int | [OTHER](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#OTHER) | Deprecated. |\n| int | [VISA](/android/reference/com/google/android/gms/wallet/WalletConstants.CardNetwork#VISA) | Deprecated. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| abstract [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c? extends [Annotation](//developer.android.com/reference/java/lang/annotation/Annotation.html)\\\u003e | annotationType() |\n| abstract boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| abstract int | hashCode() |\n| abstract [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n\nConstants\n---------\n\n#### public static final int\n**AMEX**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_AMEX](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_AMEX) instead. \nConstant Value: 1 \n\n#### public static final int\n**DISCOVER**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_DISCOVER](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_DISCOVER) instead. \nConstant Value: 2 \n\n#### public static final int\n**INTERAC**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_INTERAC](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_INTERAC) instead. \nConstant Value: 6 \n\n#### public static final int\n**JCB**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_JCB](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_JCB) instead. \nConstant Value: 3 \n\n#### public static final int\n**MASTERCARD**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_MASTERCARD](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_MASTERCARD) instead. \nConstant Value: 4 \n\n#### public static final int\n**OTHER**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_OTHER](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_OTHER) instead. \nConstant Value: 1000 \n\n#### public static final int\n**VISA**\n\nDeprecated. Use [WalletConstants.CARD_NETWORK_VISA](/android/reference/com/google/android/gms/wallet/WalletConstants#CARD_NETWORK_VISA) instead. \nConstant Value: 5"]]