Exemple #1
0
        void CreateNewPPECRecurrence(string payerId, string profileId, string subscriptionId)
        {
            var originalOrderNumber = GetPPECOriginalOrderNumber(profileId, subscriptionId);

            if (originalOrderNumber != 0)
            {
                var manager = new RecurringOrderMgr();
                manager.ProcessPPECRecurringOrder(originalOrderNumber);
            }
            else
            {
                SysLog.LogMessage("A recurring payment notification came from PayPal Express that did not match an existing recurring order.",
                                  string.Format("PayerID = {0}, ProfileID = {1}", payerId, profileId),
                                  MessageTypeEnum.Informational,
                                  MessageSeverityEnum.Alert);
            }
        }
        public void CreateNewPPECRecurrence()
        {
            int originalOrderNumber = GetPPECOriginalOrderNumber();

            if (originalOrderNumber != 0)
            {
                RecurringOrderMgr manager = new RecurringOrderMgr(base.EntityHelpers, base.GetParser);
                manager.ProcessPPECRecurringOrder(originalOrderNumber);
            }
            else
            {
                SysLog.LogMessage("A recurring payment notification came from PayPal Express that did not match an existing recurring order.",
                                  "PayerID = " + payerID + ", ProfileID = " + profileID,
                                  MessageTypeEnum.Informational,
                                  MessageSeverityEnum.Alert);
            }
        }