Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@adyen/api-library
Advanced tools
The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.
The Adyen API Library for NodeJS enables you to work with Adyen APIs and Hosted Payment Pages.
The Library supports all APIs under the following services:
You can use NPM to add our library to your project
npm install --save @adyen/api-library
By default, NodeJS https will be used to submit requests to the API. But you can change that by injecting your own HttpClient on your client instance. In the example below, we use axios
:
const {Client, Config} = require('@adyen/api-library');
const axios = require("axios");
...
const config = new Config();
const client = new Client({
config,
httpClient: {
async request(endpoint, json, config, isApiKeyRequired, requestOptions) {
const response = await axios({
method: 'POST',
url: endpoint,
data: JSON.parse(json),
headers: {
"X-API-Key": config.apiKey,
"Content-type": "application/json"
},
});
return response.data;
}
}
});
...
You can configure a proxy connection by injecting your own HttpURLConnectionClient on your client instance and changing the proxy
setter value.
Example:
const {HttpURLConnectionClient, Client, Config} = require('@adyen/api-library');
...
const config = new Config();
const client = new Client({ config });
const httpClient = new HttpURLConnectionClient();
httpClient.proxy = { host: "http://google.com", port: 8888, };
client.setEnvironment('TEST');
client.httpClient = httpClient;
...
If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
MIT license. For more information, see the LICENSE file.
You can find examples inside the examples
folder in this repo.
FAQs
The Adyen API Library for NodeJS enables you to work with Adyen APIs.
The npm package @adyen/api-library receives a total of 57,149 weekly downloads. As such, @adyen/api-library popularity was classified as popular.
We found that @adyen/api-library demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.