예제 #1
0
        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);
        }
예제 #2
0
 public ManagementBuilder WithPaymentMethodUsageMode(PaymentMethodUsageMode value)
 {
     PaymentMethodUsageMode = value;
     return(this);
 }
예제 #3
0
 string ITokenizable.Tokenize(bool validateCard, string configName, PaymentMethodUsageMode paymentMethodUsageMode)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 /// <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));
 }