public string Tokenize(bool verifyCard, string configName = "default", PaymentMethodUsageMode paymentMethodUsageMode = PaymentMethodUsageMode.Multiple) { TransactionType type = verifyCard ? TransactionType.Verify : TransactionType.Tokenize; var response = new AuthorizationBuilder(type, this) .WithRequestMultiUseToken(verifyCard) .WithPaymentMethodUsageMode(paymentMethodUsageMode) .Execute(configName); return(response.Token); }
public ManagementBuilder WithPaymentMethodUsageMode(PaymentMethodUsageMode value) { PaymentMethodUsageMode = value; return(this); }
string ITokenizable.Tokenize(bool validateCard, string configName, PaymentMethodUsageMode paymentMethodUsageMode) { throw new NotImplementedException(); }
/// <summary> /// Tokenizes the payment method, verifying the payment method /// with the issuer in the process. /// </summary> /// <returns>AuthorizationBuilder</returns> public string Tokenize(string configName = "default", PaymentMethodUsageMode paymentMethodUsageMode = PaymentMethodUsageMode.Multiple) { return(Tokenize(true, configName, paymentMethodUsageMode)); }