Package com.thalesgroup.gemalto.d1.card
Interface D1ClickToPay
public interface D1ClickToPay
Deprecated.
Main interface for Click to Pay operations.
- Since:
- 4.2.0
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidenrol(String cardID, ConsumerInfo consumerInfo, String name, BillingAddress billingAddress, D1Task.Callback<D1ClickToPay.Status> callback) voidoptOutCard(String cardID, D1Task.Callback<D1ClickToPay.Status> callback) Deprecated.Please use new API:ClickToPayService.optOutCard(String, D1Task.Callback)
-
Method Details
-
enrol
void enrol(@NonNull String cardID, @NonNull ConsumerInfo consumerInfo, @Nullable String name, @Nullable BillingAddress billingAddress, @NonNull D1Task.Callback<D1ClickToPay.Status> callback) Deprecated.Enrols the card to the Click to Pay service. The enrolment status in the issuer application will be updated via a push notification. Before calling this Click to Pay API, the integrator should display the default value of `consumerInfo` and `billingAddress` to collect the inputs of `consumerInfo` given by the end user.- Parameters:
cardID- The card identifier.consumerInfo-ConsumerInfoThe `consumerInfo` object is initialised using the first name,middle name, last name, language, phone number, country code and email entered by the end user.name- The cardholder name as present on the card. This is applicable only to Visa.billingAddress- The billing address that is associated to the card enroled to Click to Pay. This is mandatory for Visa.callback- The callback for the result. When it is successful, the returned argument of theD1Task.Callback.onSuccess(Object)isD1ClickToPay.Status.
Possible errors:
D1Exception.ErrorCode.ERROR_NOT_LOGGED_IND1Exception.ErrorCode.ERROR_NOT_AUTHORIZEDD1Exception.ErrorCode.ERROR_CARD_NOT_FOUNDD1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFED1Exception.ErrorCode.ERROR_CLICKTOPAYD1Exception.ErrorCode.ERROR_INVALID_ARGUMENTD1Exception.ErrorCode.ERROR_NOT_ACTIVED1Exception.ErrorCode.ERROR_CARD_OPERATION_NOT_ALLOWEDD1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_FIRST_NAMED1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_LAST_NAMED1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_LANGUAGED1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_PHONE_NUMBER_COUNTRY_CODED1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_PHONE_NUMBERD1Exception.ErrorCode.ERROR_CLICKTOPAY_INVALID_BILLING_ADDRESS_COUNTRY_CODED1Exception.ErrorCode.ERROR_CLICKTOPAY_SCHEME_AMBIGUOUS_PROFILED1Exception.ErrorCode.ERROR_CLICKTOPAY_SCHEME_RESOURCE_EXISTSD1Exception.ErrorCode.ERROR_CLICKTOPAY_SCHEME_CARD_INELIGIBLE
- Since:
- 4.2.0
-
optOutCard
Deprecated.Please use new API:ClickToPayService.optOutCard(String, D1Task.Callback)Opts out the card from the Click to Pay service. The enrolment status in the issuer application will be updated via a push notification.- Parameters:
cardID- The card identifier.callback- The callback for the result. When it is successful, the returned argument of theD1Task.Callback.onSuccess(Object)isD1ClickToPay.Status.
Possible errors:
- Since:
- 4.2.0
-
ClickToPayService.