woudt / bunq2ifttt

bunq2IFTTT creates a self-hosted interface between the bunq banking API and IFTTT.
MIT License
24 stars 8 forks source link

Change card account clears secondary linked account #1

Closed nimpie closed 5 years ago

nimpie commented 5 years ago

When I change the account linked to a card, the secondary account is cleared and needs to be setup manually in the bunq app again. The secondary account needs to be passed too in the call to the bunq api.

woudt commented 5 years ago

I believe this is a limitation of the bunq API. At least the documentation under 'What can my apps do with OAuth?', specifically refers to the ability to 'Change the primary monetary to which a Card is linked to', specifically mentioning primary only (and not secondary).

Now I didn't experiment if - despite the documentation - it works anyway. Did you try it?

nimpie commented 5 years ago

I have changed the code in a dirty way to retrieve my card details, pickup the secondary monetary account id and pass it to the pin assignment array. That works.

woudt commented 5 years ago

Thanks for testing this. I will work on a fix for this!

woudt commented 5 years ago

It took me a while, but this issue is now fixed in release 2.1. As an added bonus, changing the secondary account is now also supported.