mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

Disabling automatic bank transfer email #342

Closed zugende closed 5 months ago

zugende commented 5 months ago

Current behavior: When creating a mollie payment await mollieClient.payments.create({...}) and the only payment method provided is PaymentMethod.banktranser an automatic bank transfer email is send to the customer. The documentation states that I can control this email using the billingEmail field. Even when setting the billingEmail to undefined or null the email will be send to the customer.

Expected beahvior: When setting the billingEmail to null no automatic bank transfer email will be send.

Current workaround: I set the billingEmail to an email owned by me. I get all the emails now. But this gets messy really fast.

Can someone point me in a direction to solve this issue? Maybe I am overlooking something.

Thanks so much Basti

fjbender commented 5 months ago

Thanks for raising this issue! It is not, however, something we can change in the node client, as this connects to Mollie platform behavior. Typically, we recommend setting the billingEmail to a /dev/null type of address to achieve the outcome you describe, similar to what you're currently doing as a workaround.

I'd like to invite you to our Developer Discord to raise a feature request for this :)