-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to generate mandate pdf in other language #66
Comments
Thanks for the report! We'll have a fix out for this in the next few days. |
Hi! Could you update the related docs also? https://developer.gocardless.com/api-reference/#helper-endpoints-mandate-pdfs I had to search for the code to understand that customHeaders are the third parameter and I had to use it like this: const { url } = await client.mandatePdfs.create(
{
links: {
mandate: mandateId,
},
},
'',
{
'Accept-Language': language,
},
); I think it could be good to have this in the docs for others. Thanks in advance! |
Yeah, good shout! We've recently updated the docs, so the most recent version should be available shortly. |
Are you sure that this is actually working? I tried this but I had to put an empty string as a second parameter for the await client.mandatePdfs.create(
{
account_number: "44779911",
branch_code: "200000",
country_code: "GB"
},
{ customHeaders: { "Accept-Header": "fr" } }
); |
Ahh, yes you're correct. Pretty careless mistake on my part, so apologies for that. I'll get this fixed up ASAP. |
You're welcome! Thanks for the reactivity. |
It does not seem possible to generate mandate PDF in other language.
https://developer.gocardless.com/api-reference/#mandate-pdfs-create-a-mandate-pdf
In Python, it is possible to do the following:
Is there any possibility to do this with this library?
The text was updated successfully, but these errors were encountered: