#Dharmik

1 messages ยท Page 1 of 1 (latest)

neat coralBOT
exotic ember
#

Hio hanzo

tight echo
exotic ember
#

we have integrated the SDK but when our devise is detected at that time I am getting token error

tight echo
#

Can you share more info? What error are you getting exactly?
When are you getting the error and so on?

exotic ember
#

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

tight echo
#

WisePad 3 is a bluetooth reader, it can't be registered using a code (that's only for smart reader like WisePos E)

exotic ember
#

Check this, We are getting this error

tight echo
#

LMK if that helped @exotic ember

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

tight echo
#

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

exotic ember
#

give me a minute I have enabled log, will share what it throws

tight echo
#

๐Ÿ‘

exotic ember
#

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

tight echo
#

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

exotic ember
#

thats what I am saying, Can you rectify what am I missing

tight echo