public ActionResult MarketPlaceWDTicketMpSale3dSecWithUrl(int subPartnerId) { MarketPlaceMPSale3DSECRequest request = new MarketPlaceMPSale3DSECRequest(); request.ServiceType = "WDTicket"; request.OperationType = "MPSale3DSECWithUrl"; request.Price = 1; //0,01 TL request.MPAY = "01"; request.Description = "Bilgisayar"; request.CommissionRate = 1; //komisyon oranı 1. 100 ile çarpılıp gönderiliyor request.ExtraParam = ""; request.PaymentContent = "BLGSYR01"; request.SubPartnerId = subPartnerId; request.ErrorURL = "http://localhost:32123/Home/Fail"; request.SuccessURL = "http://localhost:32123/Home/Success"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion var response = MarketPlaceMPSale3DSECRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult MarketPlaceMPSale(string creditCardNo, string ownerName, int expireYear, int expireMonth, string cvv, int installmentCount, int subPartnerId) { MarketPlaceSale3DSecOrMpSaleRequest request = new MarketPlaceSale3DSecOrMpSaleRequest(); request.ServiceType = "CCMarketPlace"; request.OperationType = "MPSale"; request.Price = 1; //0,01 TL request.MPAY = "01"; request.IPAddress = "127.0.0.1"; request.Port = "123"; request.Description = "Bilgisayar"; request.InstallmentCount = installmentCount; request.CommissionRate = 1; //komisyon oranı 1. 100 ile çarpılıp gönderiliyor request.ExtraParam = ""; request.PaymentContent = "BLGSYR01"; request.SubPartnerId = subPartnerId; request.ErrorURL = "http://localhost:32123/Home/Fail"; request.SuccessURL = "http://localhost:32123/Home/Success"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion #region CreditCardInfo request.CreditCardInfo = new CreditCardInfo(); request.CreditCardInfo.CreditCardNo = creditCardNo; request.CreditCardInfo.OwnerName = ownerName; request.CreditCardInfo.ExpireYear = expireYear; request.CreditCardInfo.ExpireMonth = expireMonth; request.CreditCardInfo.Cvv = cvv; #endregion #region CardTokenization request.CardTokenization = new CardTokenization(); request.CardTokenization.RequestType = 0; request.CardTokenization.CustomerId = Guid.NewGuid().ToString(); request.CardTokenization.ValidityPeriod = 0; request.CardTokenization.CCTokenId = String.Empty; #endregion var response = MarketPlaceSale3DSecOrMpSaleRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult MarketPlaceAddSubPartner(SubPartnerTypeEnum subPartnerType, string name, string mobilePhoneNumber, string identityNumber, string email) { MarketPlaceAddOrUpdateRequest request = new MarketPlaceAddOrUpdateRequest(); request.ServiceType = "CCMarketPlace"; request.OperationType = "AddSubPartner"; request.UniqueId = Guid.NewGuid().ToString().Replace("-", ""); request.SubPartnerType = subPartnerType; request.Name = name; request.BranchName = name; #region Token Bilgileri request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion #region ContactInfo Bilgileri request.ContactInfo = new ContactInfo(); request.ContactInfo.Country = "TR"; request.ContactInfo.City = "34"; request.ContactInfo.Address = "Gayrettepe Mh. Yıldız Posta Cd. D Plaza No:52 K:6 34349 Beşiktaş / İstanbul"; request.ContactInfo.MobilePhone = mobilePhoneNumber; request.ContactInfo.BusinessPhone = "2121111111"; request.ContactInfo.Email = email; request.ContactInfo.InvoiceEmail = email; #endregion #region FinancialInfo Bilgileri request.FinancialInfo = new FinancialInfo(); request.FinancialInfo.IdentityNumber = identityNumber; request.FinancialInfo.TaxOffice = "İstanbul"; request.FinancialInfo.TaxNumber = "11111111111"; request.FinancialInfo.BankName = "0012"; request.FinancialInfo.IBAN = "TR330006100519786457841326"; #endregion var response = MarketPlaceAddOrUpdateRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult CCProxySale3D(string creditCardNo, string ownerName, int expireYear, int expireMonth, string cvv, int installmentCount) { var request = new CCProxySale3DRequest(); request.ServiceType = "CCProxy"; request.OperationType = "Sale3DSEC"; request.MPAY = "001"; request.Port = "001"; request.IPAddress = "127.0.0.1"; request.PaymentContent = "Bilgisayar"; request.InstallmentCount = installmentCount; request.Description = "Bilgisayar Ödemesi"; request.ExtraParam = ""; request.ErrorURL = "http://localhost:32123/Home/Fail"; request.SuccessURL = "http://localhost:32123/Home/Success"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion #region CreditCardInfo request.CreditCardInfo = new CreditCardInfo(); request.CreditCardInfo.CreditCardNo = creditCardNo; request.CreditCardInfo.OwnerName = ownerName; request.CreditCardInfo.ExpireMonth = expireMonth; request.CreditCardInfo.ExpireYear = expireYear; request.CreditCardInfo.Cvv = cvv; request.CreditCardInfo.Price = 1;//0,01 TL #endregion #region CardTokenization request.CardTokenization = new CardTokenization(); request.CardTokenization.RequestType = 0; request.CardTokenization.CustomerId = Guid.NewGuid().ToString(); request.CardTokenization.ValidityPeriod = 0; request.CardTokenization.CCTokenId = string.Empty; #endregion var response = CCProxySale3DRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult MarketPlaceDeactiveSubPartner(string uniqueId) { MarketPlaceDeactiveRequest request = new MarketPlaceDeactiveRequest(); request.ServiceType = "CCMarketPlace"; request.OperationType = "DeactivateSubPartner"; request.UniqueId = uniqueId; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; var response = MarketPlaceDeactiveRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; #endregion return(View(responseMessage)); }
public ActionResult ChangePriceBySubScriber(string subscriberId, string price) { var validFrom = DateTime.Now.AddDays(10).ToString("yyyyMMdd"); var request = new ChangePriceBySubscriberRequest(); request.ServiceType = "SubscriberManagementService"; request.OperationType = "ChangePriceBySubscriber"; request.SubscriberId = subscriberId; request.ValidFrom = validFrom; request.Price = price; request.Description = "Ödeme Güncelleme"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion var response = ChangePriceBySubscriberRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult TokenizeCCURL(string customerId) { var request = new TokenizeCCURLRequest(); request.ServiceType = "WDTicket"; request.OperationType = "TokenizeCCURL"; request.SuccessURL = "http://localhost:32123/Home/CardTokenizeSuccess"; request.ErrorURL = "http://localhost:32123/Home/CardTokenizeFail"; request.CustomerId = customerId; request.IPAddress = ""; request.ValidityPeriod = "20"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion var response = TokenizeCCURLRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult MarketPlaceReleasePayment(int subPartnerId) { var request = new MarketPlaceReleasePaymentRequest(); request.ServiceType = "CCMarketPlace"; request.OperationType = "ReleasePayment"; request.SubPartnerId = subPartnerId; request.CommissionRate = 100; //%1 request.MPAY = ""; request.OrderId = Guid.NewGuid(); request.Description = "Bilgisayar ödemesi"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion var response = MarketPlaceReleasePaymentRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }
public ActionResult TokenizeCC(string creditCardNo, string ownerName, int expireYear, int expireMonth, string cvv, string customerId) { var request = new TokenizeCCRequest(); request.ServiceType = "CCTokenizationService"; request.OperationType = "TokenizeCC"; request.CustomerId = customerId; request.CreditCardNumber = creditCardNo; request.NameSurname = ownerName; request.ExpiryDate = expireMonth + "/" + expireYear; request.CVV = cvv; request.Port = ""; request.IPAddress = ""; request.ValidityPeriod = "20"; #region Token request.Token = new Token(); request.Token.UserCode = settings.UserCode; request.Token.Pin = settings.Pin; #endregion var response = TokenizeCCRequest.Execute(request, settings); ServicesXmlResponse responseMessage = new ServicesXmlResponse(); responseMessage.XmlResponse = response; return(View(responseMessage)); }