mollie / mollie-api-python

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

01-new-payment-using-qrcode is broken #345

Closed hlgrondijs closed 3 weeks ago

hlgrondijs commented 3 weeks ago

To reproduce:

qr_code = payment.details["qrCode"]
TypeError: 'NoneType' object is not subscriptable

I have the same error in my own code. payment.details is None. How do I access my qrCode and please update the example code.

fjbender commented 3 weeks ago

Good catch, thanks! For the QR code to work, the method must be set to either ideal or bancontact, see the create payment docs. I have updated the example accordingly.