Esempio n. 1
0
 internal static void MicrotransactionCreatePassword(string language, Notification notification)
 {
     notification = new WelcomePurchaseNotification(notification, string.Empty)
     {
         CreatePasswordLink = "https://sodapdf.com/",
     };
     Send(language, EmailTemplate.MicrotransactionCreatePasswordNotification, notification);
 }
Esempio n. 2
0
        internal static void WelcomePurchase(string language, Notification notification, string product)
        {
            notification = new WelcomePurchaseNotification(notification, product)
            {
                CreatePasswordLink = "https://sodapdf.com/"
            };
            var templateId = EmailTemplate.WelcomeFreeProductNotification;

            if (product == "Soda PDF Free")
            {
                notification = new WelcomeFreeProductNotification(notification, product);
            }

            switch (product)
            {
            case "Soda PDF Basic Plan": templateId = EmailTemplate.WelcomePurchaseBasicPlanNotification; break;

            case "Soda PDF Business Plan": templateId = EmailTemplate.WelcomePurchaseBusinessPlanNotification; break;

            case "Soda PDF Enterprise": templateId = EmailTemplate.WelcomePurchaseEnterpriseNotification; break;

            case "Soda PDF Home Edition": templateId = EmailTemplate.WelcomePurchaseHomeEditionNotification; break;

            case "Soda PDF Home Plan": templateId = EmailTemplate.WelcomePurchaseHomePlanNotification; break;

            case "Soda PDF Premium Edition": templateId = EmailTemplate.WelcomePurchasePremiumEditionNotification; break;

            case "Soda PDF Premium Plan": templateId = EmailTemplate.WelcomePurchasePremiumPlanNotification; break;

            case "Soda PDF Pro Edition": templateId = EmailTemplate.WelcomePurchaseProEditionNotification; break;
            }

#if PdfForge
            templateId = EmailTemplate.WelcomePurchaseNotification;
#endif

#if PdfSam
            templateId = EmailTemplate.WelcomePurchaseNotification;
#endif

            Send(language, templateId, notification);
        }
Esempio n. 3
0
 internal static void WelcomePurchaseMigrationFromSuiteNotification(string language, Notification notification, string product)
 {
     notification = new WelcomePurchaseNotification(notification, product);
     (notification as WelcomePurchaseNotification).CreatePasswordLink = "link";
     Send(language, EmailTemplate.WelcomePurchaseMigrationFromSuiteNotification, notification);
 }