openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
22 stars 2 forks source link

Mailing - Installment payment failed #863

Closed jbpenrath closed 1 month ago

jbpenrath commented 3 months ago

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe. When a payment installment fails, an email to inform the learner should be sent.

Describe the solution you'd like

Suggestion of the email content :

Object: <CATALOG_NAME> - <COURSE_TITLE> - An installment debit has failed (<INSTALLMENT_AMOUNT>) 
Body :
For the course <COURSE_TITLE>, the <N> installment debit has failed.
We tried to debit an amount of <INSTALLMENT_AMOUNT> on the credit card XXXX XXXX XXXX <CREDIT_CARD_LAST_FIVE_NUMBER>.

Please correct the failed payment as soon as possible using your dashboard : [<DASHBOARD_ORDER_LINK>].