Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentClient" /> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public PaymentClient(TransactionInfo config)
 {
     switch (config.Type)
     {
         case TransactionType.AliWebPayment:
             this.Payment = new AliWebPayment(config);
             break;
         case TransactionType.AliMobilePayment:
             this.Payment = new AliMobilePayment(config);
             break;
         case TransactionType.PaypalPayment:
             this.Payment = new PaypalPayment(config);
             break;
         default:
             break;
     }
 }
Exemple #2
0
 public PaypalPayment(TransactionInfo config)
     : base(config)
 { }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BasicService"/> class.
 /// </summary>
 public BasicService()
 {
     this.TransactionInfo = CreateDefaultTransactionInfo();
 }
Exemple #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseAliPayment" /> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public AliMobilePayment(TransactionInfo config)
     : base(config)
 { }
Exemple #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseAliPayment"/> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public BaseAliPayment(TransactionInfo config)
 {
     this.TransactionInfo = config;
 }
Exemple #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseAliPayment" /> class.
 /// </summary>
 /// <param name="config">The configuration.</param>
 public AliWebPayment(TransactionInfo config)
     : base(config)
 { }