Comments (6)
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 idempotencyKey
. Plus I think you put Accept-Header
where It should be Accept-Language
.
await client.mandatePdfs.create(
{
account_number: "44779911",
branch_code: "200000",
country_code: "GB"
},
{ customHeaders: { "Accept-Header": "fr" } }
);
from gocardless-nodejs.
Thanks for the report! We'll have a fix out for this in the next few days.
from gocardless-nodejs.
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!
from gocardless-nodejs.
Yeah, good shout! We've recently updated the docs, so the most recent version should be available shortly.
from gocardless-nodejs.
Ahh, yes you're correct. Pretty careless mistake on my part, so apologies for that. I'll get this fixed up ASAP.
from gocardless-nodejs.
You're welcome! Thanks for the reactivity.
from gocardless-nodejs.
Related Issues (20)
- Node.js client billing request confirmPayerDetails API wrong name HOT 2
- Seeing ```connect ECONNREFUSED 127.0.0.1:443``` coming from got libary HOT 1
- PaymentChargeDate
- [bug ?] broken types for gocardless-nodejs/webhooks HOT 3
- Unprocessable Entity HOT 4
- Angular 12 error: gocardless is not a function HOT 2
- [BUG] BillingRequestMandateRequest defined twice HOT 1
- Billing request types doesn't match documentation HOT 4
- Metadata typing allows all JSON objects but only strings are accepted by the API
- Everything is now optional by default in v3.0.0 HOT 1
- ES modules syntax support? HOT 3
- Typescript definitions for core client? HOT 1
- InvalidStateError: Customer has not yet completed the Billing Request Flow payment pages
- 'description' attribute in redirectFlows.create() is ignored
- What is the rational for making every field optional HOT 3
- Typescript experience is not great HOT 4
- Can't import * as gocardless from 'gocardless-nodejs'; HOT 2
- Types don't match reality
- Critical `crypto-js` vulnerability (CVE-2023-46233) HOT 4
- list_for_billing_request doesn't take in a billing request ID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gocardless-nodejs.