public PaypalRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.invoice = trade.OrderId;
     this.item_number = trade.OrderId;
     this.return_url = gateway.ReturnUrl;
     this.business = payee.SellerAccount;
 }
 public ChinabankRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.v_oid = trade.OrderId;
     this.v_amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.v_url = gateway.ReturnUrl;
     this.v_mid = payee.SellerAccount;
     this.key = payee.PrimaryKey;
 }
 public IpsExpressRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.Merchant = payee.SellerAccount;
     this.BillNo = trade.OrderId;
     this.Amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.BackUrl = gateway.ReturnUrl;
     this.MerPassword = payee.PrimaryKey;
 }
 public AllbuyRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.merchant = payee.SellerAccount;
     this.key = payee.PrimaryKey;
     this.BillNo = trade.OrderId;
     this.Amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.Date = Convert.ToDateTime(trade.Date).ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo);
     this.BackUrl = gateway.ReturnUrl;
 }
 public static PaymentRequest Instance(string requestType, PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     if (string.IsNullOrEmpty(requestType))
     {
         return null;
     }
     object[] args = new object[] { payee, gateway, trade };
     return (Activator.CreateInstance(Type.GetType(requestType), args) as PaymentRequest);
 }
 public CncardRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.c_order = trade.OrderId;
     this.c_orderamount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.c_ymd = Convert.ToDateTime(trade.Date).ToString("yyyyMMdd", DateTimeFormatInfo.InvariantInfo);
     this.c_returl = gateway.ReturnUrl;
     this.c_mid = payee.SellerAccount;
     this.c_pass = payee.PrimaryKey;
 }
Exemple #7
0
 public IpsRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.Mer_code = payee.SellerAccount;
     this.Cert = payee.PrimaryKey;
     this.Merchanturl = gateway.ReturnUrl;
     this.Billno = trade.OrderId;
     this.Amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     DateTime date = trade.Date;
     this.Date = Convert.ToDateTime(trade.Date).ToString("yyyyMMdd", CultureInfo.InvariantCulture);
 }
 public TenpayRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.key = payee.PrimaryKey;
     this.date = trade.Date.ToString("yyyyMMdd", CultureInfo.InvariantCulture);
     this.desc = this.UrlEncode(trade.Subject);
     this.bargainor_id = payee.SellerAccount;
     this.transaction_id = this.bargainor_id + this.date + this.UnixStamp();
     this.sp_billno = trade.OrderId;
     this.return_url = gateway.ReturnUrl;
     this.total_fee = Convert.ToInt32((decimal) (trade.TotalMoney * 100M)).ToString(CultureInfo.InvariantCulture);
 }
 public ShengPayRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this._merchantNo = payee.SellerAccount;
     this._key = payee.PrimaryKey;
     this._orderNo = trade.OrderId;
     this._amount = trade.TotalMoney.ToString("F2");
     this._postBackUrl = gateway.ReturnUrl;
     this._notifyUrl = gateway.NotifyUrl;
     this._productUrl = trade.Showurl;
     this._orderTime = trade.Date.ToString("yyyyMMddHHmmss");
 }
 public TenpayAssureRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.chnid = "";
     this.seller = payee.SellerAccount;
     this.mch_price = Convert.ToInt32((decimal) (trade.TotalMoney * 100M)).ToString(CultureInfo.InvariantCulture);
     this.mch_vno = trade.OrderId;
     this.key = payee.PrimaryKey;
     this.mch_returl = gateway.NotifyUrl;
     this.show_url = gateway.ReturnUrl;
     this.mch_name = trade.Subject;
 }
Exemple #11
0
 public YeepayRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.merchantId = payee.SellerAccount;
     this.keyValue = payee.PrimaryKey;
     this.pid = payee.Partner;
     this.amount = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.orderId = trade.OrderId;
     this.payerContact = trade.BuyerEmailAddress;
     this.productDesc = trade.Subject;
     this.cur = gateway.CurrencyType;
     this.merchantCallbackURL = gateway.ReturnUrl;
 }
 public StandardRequest(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.return_url = gateway.ReturnUrl;
     this.notify_url = gateway.NotifyUrl;
     this.body = trade.Body;
     this.out_trade_no = trade.OrderId;
     this.subject = trade.Subject;
     this.price = trade.TotalMoney.ToString("F", CultureInfo.InvariantCulture);
     this.show_url = trade.Showurl;
     this.partner = payee.SellerAccount;
     this.key = payee.PrimaryKey;
     this.seller_email = payee.EmailAddress;
 }
Exemple #13
0
 public Bill99Request(PayeeInfo payee, GatewayInfo gateway, TradeInfo trade)
 {
     this.merchantAcctId = payee.SellerAccount;
     this.key = payee.PrimaryKey;
     this.productName = trade.OrderId;
     this.productNum = "1";
     if (!string.IsNullOrEmpty(payee.Partner))
     {
         this.pid = payee.Partner;
     }
     this.bgUrl = gateway.NotifyUrl;
     this.orderAmount = Convert.ToInt32((decimal) (trade.TotalMoney * 100M)).ToString(CultureInfo.InvariantCulture);
     this.orderId = trade.OrderId;
     this.orderTime = trade.Date.ToString("yyyyMMddhhmmss", CultureInfo.InvariantCulture);
 }