-
Notifications
You must be signed in to change notification settings - Fork 85
Closed as not planned
Closed as not planned
Copy link
Description
Describe the bug
Trying to perform the GET /sessions/{id}?sessionResult={sessionResult} I got HTTP 500 (errorCode 701) as response.
I'm developing Hosted Checkout solution with Node.js
To Reproduce
Perform the call as shown in the docs (Hosted Checkout):
// Adyen Node API Library v18.0.0
// Require the parts of the module you want to use
const { Client, CheckoutAPI } = require('@adyen/api-library');
// Initialize the client object
// For the live environment, additionally include your liveEndpointUrlPrefix.
const client = new Client({apiKey: "ADYEN_API_KEY", environment: "TEST"});
// Send the request
const checkoutAPI = new CheckoutAPI(client);
const response = checkoutAPI.PaymentsApi.getResultOfPaymentSession("sessionId", "string");
Additional context
the following is not working for me:
const response = checkoutAPI.PaymentsApi.getResultOfPaymentSession(sessionId, sessionResult);
But the GET call works if I use axios this way
https://checkout-test.adyen.com/v69/sessions/${sessionId}?sessionResult=${sessionResult}