Beispiel #1
0
        private void SavePayPalInfo(bool approved, EventInfo objEvent)
        {
            this._objEventSignups                     = this._objCtlEventSignups.EventsSignupsGet(int.Parse(this._itemNumber), 0, true);
            this._objEventSignups.Approved            = approved;
            this._objEventSignups.PayPalAddress       = this._addressStreet;
            this._objEventSignups.PayPalCity          = this._addressCity;
            this._objEventSignups.PayPalCountry       = this._addressCountry;
            this._objEventSignups.PayPalAmount        = Convert.ToDecimal(this._paymentGross);
            this._objEventSignups.PayPalCurrency      = this._currency;
            this._objEventSignups.PayPalFee           = Convert.ToDecimal(this._paymentFee);
            this._objEventSignups.PayPalFirstName     = this._firstName;
            this._objEventSignups.PayPalLastName      = this._lastName;
            this._objEventSignups.PayPalPayerEmail    = this._payerEmail;
            this._objEventSignups.PayPalPayerID       = this._subscrID;
            this._objEventSignups.PayPalPayerStatus   = this._payerStatus;
            this._objEventSignups.PayPalPaymentDate   = DateTime.UtcNow;
            this._objEventSignups.PayPalReason        = this._pendingReason;
            this._objEventSignups.PayPalRecieverEmail = this._receiverEmail;
            this._objEventSignups.PayPalState         = this._addressState;
            this._objEventSignups.PayPalStatus        = this._paymentStatus.ToLower();
            this._objEventSignups.PayPalTransID       = this._txnID;
            //objEventSignups.PayPalUserEmail = pay.IPNUserEmail
            this._objEventSignups.PayPalZip = this._addressZip;
            var eventsBase = new EventBase();

            eventsBase.CreateEnrollment(this._objEventSignups, objEvent, this._settings);
        }