Click2PayUserDetails

@objcMembers
public class Click2PayUserDetails : NSObject, Codable

User details required for Mastercard Click to Pay push provisioning

Since

2.4.0
  • Consumer-provided first name. Maximum character length must be 30.

    Declaration

    Swift

    public private(set) var firstName: String { get }
  • Consumer-provided last name. Maximum character length must be 30.

    Declaration

    Swift

    public private(set) var lastName: String { get }
  • Consumer preferred locale (language and country). This information will be useful to the Token Requestor to offer the best consumer experience during digitization. Format: Two letter ISO 639-1 language in lowercase, with a underscore (”_”), followed by two letter ISO 3166-1 country code in uppercase. Example : en_US

    Declaration

    Swift

    public private(set) var locale: String { get }
  • Phone number country code. International calling code format UIT-T E.164. Numbers only. Without the plus sign. Example : 65

    Declaration

    Swift

    public private(set) var phoneNumberCountryCode: String { get }
  • Phone number without country code. National Destination Code or Number Planning Area + Subscriber Number. Example : 99998888

    Declaration

    Swift

    public private(set) var phoneNumber: String { get }
  • Consumer email in RFC 5322. Example : myemail@mail.com

    Declaration

    Swift

    public private(set) var email: String { get }
  • Constructor for Click2PayUserDetails

    Declaration

    Swift

    public init(firstName: String,
                lastName: String,
                locale: String,
                phoneNumberCountryCode: String,
                phoneNumber: String,
                email: String)

    Parameters

    firstName

    Consumer-provided first name. Maximum character length must be 30.

    lastName

    Consumer-provided last name. Maximum character length must be 30.

    locale

    Consumer preferred locale (language and country). This information will be useful to the Token Requestor to offer the best consumer experience during digitization. Format: Two letter ISO 639-1 language in lowercase, with a underscore (”_”), followed by two letter ISO 3166-1 country code in uppercase. Example : en_US

    phoneNumberCountryCode

    Phone number country code. International calling code format UIT-T E.164. Numbers only. Without the plus sign. Example : 65

    phoneNumber

    Phone number without country code. National Destination Code or Number Planning Area + Subscriber Number. Example : 99998888

    email

    Consumer email in RFC 5322. Example : myemail@mail.com