예제 #1
0
 public PaymentMethodPaypal(Control parent, TypeOfPurchase typeOfPurchase, double costPerSelection, int numberOfItemsSelected, string email, string URL, SessionVariableManager svm, HttpResponse httpResponse, string URLReturnPaymentAccepted, string URLReturnCancel,
                            string URLReturnPaymentDenied, string businessIdentifier, decimal totalCost, string customVariable, string notifyURL)
     :
     base(parent, typeOfPurchase, costPerSelection, numberOfItemsSelected, email, URLReturnPaymentAccepted, URLReturnCancel, URLReturnPaymentDenied, URL, svm, httpResponse, totalCost)
 {
     _businessIdentifier = businessIdentifier;
     _customVariable     = customVariable;
     _notifyURL          = notifyURL;
 }
예제 #2
0
 public PaymentManager(Control parent, TypeOfPurchase typeOfPurchase, double costPerSelection, int numberOfItemsSelected, string email,
                       string URLReturnPaymentAccepted, string URLReturnCancel, string URLReturnPaymentDenied)
 {
     _parent = parent;
     _numberOfItemsSelected = numberOfItemsSelected;
     _costPerSelection      = costPerSelection;
     _email                    = email;
     _URLReturnCancel          = URLReturnCancel;
     _URLReturnPaymentAccepted = URLReturnPaymentAccepted;
     _URLReturnPaymentDenied   = URLReturnPaymentDenied;
     _typeOfPurchase           = typeOfPurchase;
 }
예제 #3
0
 public PaymentManagerURL(Control parent, TypeOfPurchase typeOfPurchase, double costPerSelection, int numberOfItemsSelected, string email,
                          string URLReturnPaymentAccepted, string URLReturnCancel, string URLReturnPaymentDenied, string URL, SessionVariableManager svm, HttpResponse httpResponse,
                          decimal totalCost)
     :
     base(parent, typeOfPurchase, costPerSelection, numberOfItemsSelected, email, URLReturnPaymentAccepted, URLReturnCancel,
          URLReturnPaymentDenied)
 {
     _URL          = URL;
     _svm          = svm;
     _httpResponse = httpResponse;
     _svm.TypeOfPurchaseBeingMade = _typeOfPurchase;
     _totalCost = totalCost;
 }
예제 #4
0
            public static TypeOfPurchase VerificationAndCorrectionDataForEdit(TypeOfPurchase item)
            {
                if (string.IsNullOrEmpty(item.Name))
                {
                    item.Name = TypeOfPurchase.Name;
                }

                if (item.BoardId <= 0)
                {
                    return(null);
                }

                return(item);
            }