laravel / spark-aurelius-mollie

Laravel Spark, Mollie edition
https://spark.laravel.com/docs
28 stars 6 forks source link

Send invoice automatically to another email address #2

Closed GertTimmerman closed 4 years ago

GertTimmerman commented 4 years ago

I have 2 customers who would like to have the invoice sent automatically to an email address other than the email address which they registered with.

is it possible to add this feature?

There has to be an invoice email field added to the billing informatie section, an event has to be dispatched when a invoice is created, and a listenere has to be send the email.

gelinger777 commented 4 years ago

I think you can use https://github.com/laravel/cashier-mollie#orderinvoiceavailable-event this event from cashier and send the invoice to second address, which you have to manually configure.

sandervanhooft commented 4 years ago

Hi @GertTimmerman,

This is not a feature that will be changed in the default Spark setup. It's a very specific requirement for your app.

I think @gelinger777 's approach is best here, should work fine.