#rizwan

1 messages ยท Page 1 of 1 (latest)

late nexusBOT
forest ivy
#

Hi, how can I help?

#

hi vanya hope you are fine
actually i am implementing the NFC contactless payment means tap to pay can you help me out ?

#

What's the issue?

vast oxide
forest ivy
#

What's not working?

vast oxide
#

"message": "Invalid request (check that your POST content type is application/x-www-form-urlencoded). If you have any questions, we can help at https://support.stripe.com/.",
"type": "invalid_request_error"
}

forest ivy
vast oxide
#

how can you guide me more

forest ivy
#

Do you see this request on your Dashboard?

vast oxide
#

nope can you guide me on that

forest ivy
#

Could you please share your account ID?

vast oxide
#

acct_1Kj0IyC7BxmWdrOR

vast oxide
#

when i install the sdk.

#

i git iniialize the terminal befire reder some thing i checked the api for connection token so that time i got this

forest ivy
#

Could you please share a screenshot of this error with the context.

#

Sorry, so far I am not following the context of the issue.

vast oxide
forest ivy
#

Thanks, could you please show the Headers tab?

vast oxide
#

???

forest ivy
#

Thanks.
Could you also show the response headers please?

vast oxide
#

please reply fas

#

fast

#

hello vanya can you first complete mine task ๐Ÿ˜ฆ

forest ivy
#

Sorry, it's busy today, I will reply as soon as I can.

#

Can you try CONTENT_TYPE instead?

#

Also, please use Authorization: Bearer sk_test_...

vast oxide
#

yeah its fine now

#

can you tell me one thing more

forest ivy
#

Sure

vast oxide
#

Discover readers error: READER_ERROR.READER_BUSY, Could not execute discoverReaders because the SDK is busy with another command: discoverReaders.

#

in react native this erro rcomes

forest ivy
#

Have the discoverReaders command finished running?

vast oxide
#

how we check this

forest ivy
#

Could you please share the code you're running. Related to this.

vast oxide
#

we are copied from strip document

#

import {View, Text} from 'react-native';
import React from 'react';
import {StripeTerminalProvider} from '@stripe/stripe-terminal-react-native';
import Payment from './Payment';
const App = () => {
const fetchTokenProvider = async () => {
const response = await fetch(
https://api.stripe.com/v1/terminal/connection_tokens,
{
method: 'POST',
headers: {
Authorization: 'Bearer sk_test_4eC39HqLyjWDarjtT1zdp7dc',
'Content-Type': 'application/x-www-form-urlencoded',
},
},
);
const {secret} = await response.json();
console.log(secret);
return secret;
};
return (
<StripeTerminalProvider
logLevel="verbose"
tokenProvider={fetchTokenProvider}>
<Payment />
</StripeTerminalProvider>
);
};
export default App;

#

this is app.js the 2nd one

forest ivy
#

Why do you have 3 parallel calls to useEffect?

#

handleConnectBluetoothReader should execute after handleDiscoverReaders has completed

vast oxide
#

in document of dtrip its same like us

forest ivy
#

What's dtrip?

vast oxide
#

stripe

forest ivy
#

Could you please share where you saw this example?

late nexusBOT
misty karma
#

We are still looking in to what may be happening here. I will let you know what we can find.

vast oxide
#

oky i am wating

#

i want to perform nfc so please be on mind thid requirment

#

and help me out if you have some dummy project on that not type ecript react native

misty karma
vast oxide
#

The SDK uses TypeScript features available in Babel version 7.9.0 and above. Alternatively use the plugin-transform-typescript plugin in your project.
its in type script

#

and its have an error when we rum npm i

misty karma
#

What is the error when you run npm?

vast oxide
#

can you guide me on native

#

acording to this exampple?

misty karma
#

Which part do you need guidance on?

vast oxide
#

i want to perform nfc contactless payment tap to pay but i am stuck on that in react native.
i am using above link to work.

#

i download the github code but its give me this error.

woven tapir
#

So you will not be able to use the React Native Terminal SDK in its current state if you want to accept tap-to-pay payments, you will need to use a native library for that instead.

vast oxide
#

which one?

woven tapir
#

Version 2.14.0 of the iOS Terminal SDK as mentioned above.

vast oxide
#

i want to perform in andriod not ios
and really i need that any type of help for this
i have demo with my client he is aslking some other gateway but i recpomend him this one .
so please give me proper assitance

woven tapir
#

Tap to Pay on Android is not generally available yet through Stripe, it is still in a beta state. You will need to reach out to request access to that beta. You can do so via the Get in touch button found in the Tap to Pay on Android section of this page:
https://stripe.com/terminal/tap-to-pay

vast oxide
#

what is the purpose of this i register 2 time

woven tapir
#

What is the purpose of what?

vast oxide
#

how can i get the beta version implementation for demo?

woven tapir
#

You will need to request access to the beta using the approach listed above. We focus on helping developers implement generally available functionality in this forum and are not familiar with the various betas that exist or how to join them beyond what is listed in our documentation.

vast oxide
#

oky sure