TokensRequestPaymentMethodId

public final class TokensRequestPaymentMethodId : TokensRequest

Request tokenization of saved payment method data.

  • The ID of the saved payment method.

    Declaration

    Swift

    public let paymentMethodId: String
  • csc

    CVC2/CVV2/CVP2, 3 or 4 symbols printed on the back of the card. You need to pass, if required for payment is retained by credit card (sign csc_required).

    Declaration

    Swift

    public let csc: String?
  • Creates instance of TokensRequestPaymentMethodId.

    Declaration

    Swift

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

    Parameters

    amount

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

    tmxSessionId

    ThreatMetrix session ID.

    confirmation

    Payment confirmation method.

    paymentMethodId

    csc

    CVC2/CVV2/CVP2, 3 or 4 symbols printed on the back of the card. You need to pass, if required for payment is retained by credit card (sign csc_required).

    Return Value

    Instance of TokensRequestPaymentMethodId

  • Undocumented

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws
  • Creates a new instance by decoding from the given decoder. This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.