D1PushToECommerce
public class D1PushToECommerce
Main interface of the push provisioning to eCommerce.
Since
3.3.0-
Push Digital Card to Mastercard Click to Pay TokenRequestor. When it is successful, the tokenization process is completed. Integrator may call
D1Task.digitalCardList(_:completion:)
to confirm. Before calling this Click to Pay API, integrator should display the default value of consumerInfo, collect the end user inputs of consumerInfo, show privacy and T&C contents, and ensure that the end user accepts the contents.Declaration
Swift
public func pushToClick2PayMC(_ cardID: String, consumerInfo: ConsumerInfo, privacyURL: String, tncURL: String, completion: @escaping (D1Error?) -> Void)
Parameters
cardID
The card identifier.
consumerInfo
The
ConsumerInfo
object that contains user inputs for first name, last name, language, phone number, country code and email.privacyURL
The URL container for consumer’s privacy consent status.
tncURL
The URL container for the consumer’s consent status to the Terms and Conditions.
completion
The callback for the result. When the callback is successful, no error will be returned. Otherwise, the error details will be returned. These are the possible errors: