TokensRequest

public class TokensRequest : Codable

Request for tokenization of the buyer’s payment data for subsequent payment.

  • Payment amount, the nominal value of the order for the buyer.

    Declaration

    Swift

    public let amount: MonetaryAmount?
  • ThreatMetrix session ID.

    Declaration

    Swift

    public let tmxSessionId: String
  • Payment confirmation method.

    Declaration

    Swift

    public let confirmation: Confirmation?
  • Sign of saving payment data for repeated payments, confirmed by the user and allowed by the store settings.

    Declaration

    Swift

    public let savePaymentMethod: Bool?
  • Creates instance of TokensRequest.

    Declaration

    Swift

    public init(amount: MonetaryAmount?,
                tmxSessionId: String,
                confirmation: Confirmation?,
                savePaymentMethod: Bool?)

    Parameters

    amount

    Payment amount, the nominal value of the order for the buyer.

    tmxSessionId

    ThreatMetrix session ID.

    confirmation

    Payment confirmation method.

    Return Value

    Instance of TokensRequest.

  • Creates custom headers.

    Declaration

    Swift

    public func customHeaders() -> Headers