FAQs
Getting error while triggering a transaction
I am getting a `Network Error` while triggering a transaction. The flow is as follows.
1. User login with Smallcase SDK.
2. Got the Smallcase Auth token.
3. User changes the auth token in the cookies and refreshes the page.
4. User clicks on the login button as we already have Smallcase auth token we have initialized the SDK (with the invalid token).
5. The initialization fails, so we have asked the user to log in again.
6. When the user tries to log in we are going `Network Error` at the `triggerTransaction` method of SDK. Moreover, it's not showing any error info except `Network Error`.
Can you help us to resolve this issue?
Posted by Hafeezul Kareem almost 3 years ago
JavaScript SDK
Hi,
Please provide proper documentation, how implement to javascript Sdk.
const scGateway = new scDK({
gateway:gatewayName,
smallcaseAuthId: authToken,
config: {
amo: true
}
})
scGateway.triggerTransaction({
transactionId: 'transactionId'
})
.then(res => res)
.catch(err => err.message);
});
I using this code but no any response.
Posted by Sandeep almost 3 years ago