FAQs
Getting error while using virtual token
Hi, we are using virtual tokens for testing. While using virtual tokens some of our teammates are getting invalid errors as follows.
```
We received an invalid token from our servers
We are having trouble logging you in. Can you please try again?
```
Below is one of the errors from the console.
```
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src-elem 'self' https://www.googletagmanager.com https://cdn.mxpnl.com https://www.google-analytics.com https://www.googleadservices.com https://pagead2.googlesyndication.com https://googleads.g.doubleclick.net https://chat.fuguchat.com". Either the 'unsafe-inline' keyword, a hash ('sha256-jfNCCJ7jkCc1iQIP8AxiB3XtlnyMnwbLslzSJnPzxi8='), or a nonce ('nonce-...') is required to enable inline execution.
```
Can you help me with this?
Posted by Hafeezul Kareem over 2 years ago
How to get access to api?
How can we get access to API? Is there any sandbox environment for testing?
What are the requirements to get access to API?
Posted by Khurram Baig over 3 years ago
SIP setup through Gateway
Can users setup an SIP through smallcase Gateway?
Posted by Saarthak Shah over 2 years ago
Webhook HTTP Method
Hi, what kind of HTTP method will the single stock update webhook take?
Posted by Nipun Ramani over 2 years ago
How much does smallcase charge for API Gateway?
How much does smallcase charge for API Gateway?
Posted by Aditya over 2 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 over 2 years ago
Gateway Initialization Error
I am getting this on Guest Initialization for getting smallCaseAuthId via Broker Login.
Init response: {"errorCode":2000,"errorMessage":"internal_error"}
Posted by [email protected] about 2 years ago
Javascript SDK Error when login() is called
Hey I am trying to log in using javascript sdk but I am getting an error that says
```text
Uncaught (in promise) TypeError: Cannot read property 'toLowerCase' of undefined
at ie (scdk.js:1)
at e.<anonymous> (scdk.js:1)
at u (scdk.js:1)
```
code:
```javascript
function connect() {
requestOptions = {
method: 'POST'
}
fetch("http://localhost:8080/smallcase/authenticate",requestOptions).then(res => {
res.text().then(async body => {
console.log(body);
const scGateway = new scDK({
gateway: <mygateway>, // Using the gateway that was provided
smallcaseAuthToken: body,
config: {}
});
await scGateway.initPromise; // This promise is fulfilled.
await scGateway.login(); // Error thrown here
});
})
};
```
signup method runs fine and the dialog box for smallcase shows up, is there something else that I need to provide?
Posted by Nipun Ramani over 2 years ago
How to enter into testing mode with single broker?
We are showing a single broker in the smallcase SDK to authenticate with. While showing a single broker, we are unable to enter into the test mode. Is it possible to enter into the test mode with single broker?
Posted by Hafeezul Kareem over 2 years ago
Fetch holding with broker login Dhan screen stuck at connect to broker
during fetch holding with broker dhan screen is getting stuck at connect to broker pop-up
transaction trigger method parameters:
brokers:['dhan']
transactionId: "transactionId"
received error in catch block
a.getIntentURL is not a function
received error object is empty
Posted by Ankit Patel over 1 year ago