mollie / mollie-api-python

Mollie API client for Python
http://www.mollie.com
BSD 2-Clause "Simplified" License
113 stars 55 forks source link

Problem with billingEmail with bank transfer #337

Closed sommejan closed 10 months ago

sommejan commented 10 months ago

Hi, I have an issue with the endpoint for creating a customer payment using the bank transfer method. According to the documentation you can hand in an optional parameter "billingEmail" which is used to send the payment instructions to the customer. However, over the past few days, our customers haven't been getting these emails. When I call the endpoint in my response there is no field for billingEmail.

I've double-checked, and while we're sending the "billingEmail" in our creation dictionary, it's missing in the endpoint's response. Just to note, we're on the v2.12 API.

Any idea what might be up?

Thanks in advance for looking into this!

Example dictionary sent with

mollie_client.customer_payments.with_parent_id(customer_id).create(
                data=data
            )
{'method': 'banktransfer', 
'amount': {'currency': 'EUR', 
'value': '5399.00'}, 
'description': 'test', 
'redirectUrl': 'http://test/redirect/test/', 
'webhookUrl': 'https://test/mollie/webhooks/', 
'dueDate': '2023-10-27', 
'metadata': {'payment_id': 1234}, 
'billingEmail': 'feurigschoenerbaer@magspam.net', 
'locale': 'de_DE'}

Example Payment Response

{'resource': 'payment', 
'id': 'tr_test, 
'mode': 'test', 
'createdAt': '2023-10-11T11:51:45+00:00', 
'amount': {'value': '5399.00', 
'currency': 'EUR'}, 
'description': 'test', 
'method': 'banktransfer', 
'metadata': {'payment_id': 1234}, 
'status': 'open', 
'isCancelable': True, 
'expiresAt': '2023-10-31T05:00:00+00:00', 
'locale': 'de_DE', 
'profileId': 'pfl_test', 
'customerId': 'cst_XXX', 
'sequenceType': 'oneoff', 
'redirectUrl': 'http://test/redirect/test/', 
'webhookUrl': 'https://test/mollie/webhooks/, 
'settlementAmount': {'value': '5399.00', 
'currency': 'EUR'}, 
'details': {'bankName': 'Stichting Mollie Payments', 
'bankAccount': 'NL10TEST000100100', 
'bankBic': 'TESTNL10', 
'transferReference': 'RF44-8273-0831-9806'}, 
'_links': {'self': {'href': 'https://api.mollie.com/v2/payments/tr_XXX, 'type': 'application/hal+json'}, 'checkout': {'href': 'https://www.mollie.com/checkout/test-mode?method=banktransfer&token=6.wt9jso', 'type': 'text/html'}, 'dashboard': {'href': 'https://my.mollie.com/dashboard/org_10911347/payments/tr_XXX, 'type': 'text/html'}, 'customer': {'href': 'https://api.mollie.com/v2/customers/cst_XXX', 'type': 'application/hal+json'}, 'status': {'href': 'https://www.mollie.com/checkout/bank-transfer/status/6.wt9jso', 'type': 'text/html'}, 'payOnline': {'href': 'https://www.mollie.com/checkout/bank-transfer/pay-online/6.wt9jso', 'type': 'text/html'}, 'documentation': {'href': 'https://docs.mollie.com/reference/v2/customers-api/create-customer-payment', 'type': 'text/html'}}}
fjbender commented 10 months ago

Interesting observation!

I just reproduced this with a plain HTTP call, so it's not a problem with the Python library I'd say. Could you please reach out to our support team to have this checked on a platform level?

sommejan commented 10 months ago

I will, thank you!