Interface PushProvisioningService
- Since:
- 4.4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidSamsung Pay only.addDigitalCardToOEM(String cardID, OEMPayType oemType, Activity activity, int options) Adds a digital card to OEM wallet for a givencardID.addDigitalCardToScheme(String cardID, TokenRequestor tokenRequestor, String appURL, boolean tcsAccepted) Adds a digital card to scheme for a givencardID.getCardDigitizationState(OEMPayType oemType, String last4) Gets the digitization state of a card using the last 4 digits.getCardDigitizationState(String cardID, OEMPayType oemType) Gets the digitization state of a card in an OEM wallet.getTokenRequestorList(String cardID) Retrieves the eligible token requestor list for a givencardID.voidSamsung Pay only.
-
Method Details
-
addDigitalCardToScheme
Task<String> addDigitalCardToScheme(@NonNull String cardID, @NonNull TokenRequestor tokenRequestor, @NonNull String appURL, boolean tcsAccepted) Adds a digital card to scheme for a givencardID.Possible errors reported when executing the returned
Task:- Parameters:
cardID- The card identifier.tokenRequestor- The token requestor that end user has selected.appURL- The issuer app's custom URL that is used by the token requestor to redirect the end user back to the issuer app after completing the digitization flow.tcsAccepted- The terms and conditions accepted by end user.- Returns:
- a
Taskthat performs the operation and returns a non-null result on success. - Since:
- 4.4.0
-
addDigitalCardToOEM
Task<Object> addDigitalCardToOEM(@NonNull String cardID, @NonNull OEMPayType oemType, @Nullable Activity activity, int options) Adds a digital card to OEM wallet for a givencardID.This API provisions a digital card to an OEM wallet (Google Pay or Samsung Pay). The integrator must override
Activity.onActivityResult(int, int, android.content.Intent)and pass the result back to SDK using theD1Task.handleCardResult(int, int, android.content.Intent)API.Possible errors reported when executing the returned
Task:D1Exception.ErrorCode.ERROR_NOT_LOGGED_IND1Exception.ErrorCode.ERROR_NOT_AUTHORIZEDD1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFED1Exception.ErrorCode.ERROR_GPAY_NOT_SUPPORTEDD1Exception.ErrorCode.ERROR_SPAY_NOT_SUPPORTEDD1Exception.ErrorCode.ERROR_CORED1Exception.ErrorCode.ERROR_SPAYD1Exception.ErrorCode.ERROR_GPAYD1Exception.ErrorCode.ERROR_CARD
- Parameters:
cardID- The card identifieroemType- The OEM wallet type (Google Pay or Samsung Pay).activity- The caller activity. Set this value if the 'activity' value in the deprecatedConfigParams.buildConfigCard(Activity, OEMPayType, String, String)is null or they are different. Otherwise, you can set it tonull.options- This variable is added for future use.- Returns:
- a
Taskthat performs the operation and returnsnullon success. - Throws:
IllegalArgumentException- when one of the required parameters is null or empty.IllegalStateException- when core module has not been configured.- Since:
- 4.4.0
-
getCardDigitizationState
Task<CardDigitizationState> getCardDigitizationState(@NonNull String cardID, @NonNull OEMPayType oemType) Gets the digitization state of a card in an OEM wallet.This API requires a backend call to retrieve the card details before checking the digitization state. Use this API to determine if the Add to Wallet button should be shown in the application.
Possible errors reported when executing the returned
Task:D1Exception.ErrorCode.ERROR_NOT_LOGGED_IND1Exception.ErrorCode.ERROR_NOT_AUTHORIZEDD1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFED1Exception.ErrorCode.ERROR_GPAY_NOT_SUPPORTEDD1Exception.ErrorCode.ERROR_SPAY_NOT_SUPPORTEDD1Exception.ErrorCode.ERROR_CORED1Exception.ErrorCode.ERROR_SPAYD1Exception.ErrorCode.ERROR_GPAYD1Exception.ErrorCode.ERROR_CARD
- Parameters:
cardID- The card identifier.oemType- The OEM wallet type (Google Pay or Samsung Pay).- Returns:
- a
Taskthat performs the operation and returns a non-nullCardDigitizationStateon success. - Throws:
IllegalArgumentException- when one of the required parameters is null or empty.IllegalStateException- when core module has not been configured.- Since:
- 4.4.0
-
getCardDigitizationState
Task<CardDigitizationState> getCardDigitizationState(@NonNull OEMPayType oemType, @NonNull String last4) Gets the digitization state of a card using the last 4 digits.This is a pure offline API that does not require any network call to the D1 backend, providing a quicker response compared to
getCardDigitizationState(String, OEMPayType). Use this API to determine if the Add to Wallet button should be shown in the application.Possible errors reported when executing the returned
Task:- Parameters:
oemType- The OEM wallet type (Google Pay or Samsung Pay).last4- The last 4 digits of the card.- Returns:
- a
Taskthat performs the operation and returns a non-nullCardDigitizationStateon success. - Throws:
IllegalArgumentException- when one of the required parameters is null or empty.IllegalStateException- when core module has not been configured.- Since:
- 4.4.0
-
activateSamsungPay
Samsung Pay only.An utility function to bring the Samsung Pay app to a state in which cards can be added. End user needs to sign in to Samsung Pay app.
- Throws:
D1Exception- when Samsung Pay is not supported or app is misconfigured- Since:
- 4.4.0
-
updateSamsungPay
Samsung Pay only.An utility function to bring a user to update their Samsung Pay app.
- Throws:
D1Exception- when Samsung Pay is not supported or app is misconfigured- Since:
- 4.4.0
-
getTokenRequestorList
Retrieves the eligible token requestor list for a givencardID.Possible errors reported when executing the returned
Task:- Parameters:
cardID- The card identifier.- Returns:
- a
Taskthat performs the operation and returns a non-null result on success. - Since:
- 4.4.0
-