#Dharmik
1 messages ยท Page 1 of 1 (latest)
Hio hanzo
Hello ๐
It is a bluetooth reader so you should be able to integrate it with ReactNative, yes.
However, the SDK is still in early beta so you might encounter some issues
Would recommend flagging them here
https://github.com/stripe/stripe-terminal-react-native/issues/new/choose
we have integrated the SDK but when our devise is detected at that time I am getting token error
Can you share more info? What error are you getting exactly?
When are you getting the error and so on?
sure give me a minute I will share you the error. Until then can you tell me how do I get registration code for my BBPOS Wisepad3
WisePad 3 is a bluetooth reader, it can't be registered using a code (that's only for smart reader like WisePos E)
Check this, We are getting this error
that means it is not able to retrieve a ConnectionToken as suggested in step 3
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native#connection-token
You'd want to look into your server logs
LMK if that helped @exotic ember
we are already using the connection-token function but still it shows this error, can you tell me what could be the error
I can't tell you what the error is as I don't know ๐
It's your code that's running so you'd likely want to add some logging on your end to see what error is being thrown by the code
give me a minute I have enabled log, will share what it throws
๐
async createConnectionToken(): Promise<
Stripe.Terminal.ConnectionToken | { error: Stripe.StripeAPIError }
{
const formData = new URLSearchParams();
return fetch('http://178.79.138.121:8888/api/payment/connection-token',{
// return fetch(`${this.api_url}/connection-token`, {
method: "POST",
headers: {
'Content-Type': 'application/json',
},
body:{}
})
.then((resp)=>{
console.log('ressp',resp);
})
.catch((error)=>{
console.log('error',error);
});
// .then((resp) => resp);
}
above is the function I am using, it throws error "resp is not object"
Hi man please reply
The server is busy, please hold on.
above is the function I am using, it throws error "rest is not object"
That's not a Stripe API error. The error is coming from somewhere in your code
thats what I am saying, Can you rectify what am I missing
I feel like your fetch is structured incorrectly
Can you follow the guide and change your code accordingly?
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=react-native#connection-token-client-side