Table of Contents

Class PaymentCardExpirationNotificationScheduledTaskAddIn

Namespace
Dynamicweb.Ecommerce.Cart.ScheduledTaskAddIns
Assembly
Dynamicweb.Ecommerce.dll

The Payment Card Expiration Notification scheduled task sends an email to users who have one or more saved payment cards that will expire soon. This helps users update their card details before payments start failing. The task scans active users, finds their saved payment cards, filters cards expiring within a configurable time window, and sends an email per expiring card. An email will only be sent once per card.

[AddInLabel("Payment Card Expiration Notification AddIn")]
[AddInDescription("Sends email notifications to users when their saved payment cards are about to expire")]
[AddInIgnore(false)]
public sealed class PaymentCardExpirationNotificationScheduledTaskAddIn : BaseScheduledTaskAddIn
Inheritance
PaymentCardExpirationNotificationScheduledTaskAddIn
Inherited Members

Properties

DaysBeforeExpiration

[AddInParameter("DaysBeforeExpiration")]
[AddInLabel("Days before expiration to notify")]
[AddInParameterEditor(typeof(IntegerNumberParameterEditor), "Tooltip=Defaults to 30 days.")]
public int DaysBeforeExpiration { get; set; }

Property Value

int

EmailSubject

[AddInParameter("EmailSubject")]
[AddInLabel("Email subject")]
[AddInParameterEditor(typeof(TextParameterEditor), "")]
public string? EmailSubject { get; set; }

Property Value

string

EmailTemplate

[AddInParameter("EmailTemplate")]
[AddInLabel("Email Template")]
[AddInParameterEditor(typeof(TemplateParameterEditor), "Folder=/Templates/eCom/ScheduledTasks/PaymentCardExpiration;Tooltip=/Templates/eCom/ScheduledTasks/PaymentCardExpiration;")]
[Required]
public string? EmailTemplate { get; set; }

Property Value

string

Methods

Run()

Runs task add-in

public override bool Run()

Returns

bool
To top