Actually, we only send an email confirming that the order is validated. This behaviour is useful when a user purchases a certificate for example.
But since we have payment schedules for order all the time in a near future, we should trigger an email each time the user has paid successfully an installment.
Proposal
[x] Create a new template .mjml for the new email content
[x] Create a debug view to check the layout and the rendering of the context data
[x] Add new email logic into the base payment backend class
TO DO :
[x] Add the payment schedule into template mjml and add context for debug view.
[ ] Fix last test for language (test_payment_backend_base_payment_success_installment_payment_mail_in_english)
Purpose
This PR will solve this issue
Actually, we only send an email confirming that the order is validated. This behaviour is useful when a user purchases a certificate for example.
But since we have payment schedules for order all the time in a near future, we should trigger an email each time the user has paid successfully an installment.
Proposal
TO DO :
test_payment_backend_base_payment_success_installment_payment_mail_in_english
)