Is there a way to attach PDF files to a payment request? Is it possible to choose a file from your Google Drive?
Couldn't this be implemented if it's not already a feature?
Hey Chronos,
This is currently on our wishlist! 👍 We will definitely update this topic again as soon as we have more news about it :)
For now, you can of course always take screenshots of the PDF and attach them as images - but it's only a workaround!
Matteo 🇬🇧🇮🇹 Hi, how is this request coming along? Would appreciate this feature as well.
Hi bunq,
is there a way to download the attachments (foto's) via the API? I Have added foto's of my receipts and now want to download them to my administration.
The: "bunq.sdk.model.generated.endpoint.Payment.attachment" seems to be empty for all my payments.
Thanks
Brian Hi!
Check the class "NoteAttachmentPayment": https://github.com/bunq/sdk_php/blob/develop/src/Model/Generated/Endpoint/NoteAttachmentPayment.php
And the other NoteAttachment classes 🙂
Cheers!
Bastiaan Thanks, but it looks like the response is always an empty list...
I have added the photo to an Payment in the bunq app after I paid with my card.
I don't understand the batch part in this..
Brian Pretty sure if it is a card payment, the attachment will be available under the MasterCardAction item and not the Payment item. Payments are usually just mutations and you should grab the RequestResponse/MasterCardAction and so on when possible
Gregory Goijaerts yes, I also think this is the case
Gregory Goijaerts But that is just getting me bach to: bunq.sdk.model.generated.object_.AttachmentMonetaryAccountPayment Which is not my attached file..
Brian
A small PHP example. Get all attachments for the most recent card payment:
$mastercardActions = MasterCardAction::listing($monetaryAccountId)->getValue(); $mastercardActionId = $mastercardActions[0]->getId(); $mastercardActionAttachments = NoteAttachmentMasterCardAction::listing($mastercardActionId,$monetaryAccountId)->getValue();
But it looks like there is a bug: https://github.com/bunq/sdk_php/issues/164 Or maybe i'm doing something wrong 😉