Comments (2)
The only two ways to authenticate are indeed through API key and username/password. Although, most API's require an API key:
if (isApiRequired && !apiKey) {
return Promise.reject(new ApiException("Invalid X-API-Key was used", 401));
}
if (apiKey) {
requestOptions.headers[ApiConstants.API_KEY] = apiKey;
} else {
const authString = `${config.username}:${config.password}`;
const authStringEnc = new Buffer(authString).toString("base64");
requestOptions.headers.Authorization = `Basic ${authStringEnc}`;
}
from adyen-go-api-library.
Cool, I have added support for both these. I haven't tested the password flow yet will test and close this then
from adyen-go-api-library.
Related Issues (20)
- Checkout modification support HOT 1
- [PW-8057] PaymentResponse does not work on the FraudResult field HOT 1
- Support for Cloud Terminal API ? HOT 5
- Support for Checkout API v68 HOT 1
- Requests to Adyen resulted in EOF error HOT 1
- StorePaymentMethod in PaymentRequest struct HOT 3
- Schema described in API documentation does not match model files HOT 2
- Support for Checkout API v69
- Remove unused models HOT 1
- [PW-7072] Checkout API supported version HOT 7
- [PW-7090] {paymentPspReference} is being harcoded in the checkout API modifications file
- [PW-7542] CaptureDelayHours value 0 is ignored HOT 3
- Dependency Dashboard
- Deprecate classic Adyen For Platforms
- Mask X-Api-Key Prefix On Debug Printout HOT 1
- Checkout API missing PaymentResponseAction in PaymentDetailsResponse model HOT 4
- Panic In Response Handling For 504 Gateway Timeout HOT 1
- Bancontact payment method on last lib versions HOT 6
- Dump Request/Response On HTTP Response Code >= 300
- Major version go module mismatch HOT 2
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 adyen-go-api-library.