#rizwan
1 messages ยท Page 1 of 1 (latest)
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?
issue is that when i install the sdk and check the api in post man
https://api.stripe.com/v1/terminal/connection_tokens
its not working for me.
can you guide me i am using react native
What's not working?
"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"
}
Could you please share the Request ID req_xxx? https://support.stripe.com/questions/finding-the-id-for-an-api-request
how can you guide me more
Do you see this request on your Dashboard?
nope can you guide me on that
Could you please share your account ID?
acct_1Kj0IyC7BxmWdrOR
When did you get this error?
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
Could you please share a screenshot of this error with the context.
Sorry, so far I am not following the context of the issue.
Thanks, could you please show the Headers tab?
Thanks.
Could you also show the response headers please?
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_...
Sure
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
Have the discoverReaders command finished running?
how we check this
Could you please share the code you're running. Related to this.
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
Why do you have 3 parallel calls to useEffect?
handleConnectBluetoothReader should execute after handleDiscoverReaders has completed
in document of dtrip its same like us
What's dtrip?
stripe
Could you please share where you saw this example?
We are still looking in to what may be happening here. I will let you know what we can find.
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
Our GitHub has a sample app, not sure if it is still in typescript. Can you try running this example project to see if you see the same error? https://github.com/stripe/stripe-terminal-react-native
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
What is the error when you run npm?
can you guide me on native
acording to this exampple?
Which part do you need guidance on?
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.
Hi there ๐ our React Native Terminal library does not currently support Tap to Pay. That functionality was added to our iOS Terminal SDK in version 2.14.0 :
https://github.com/stripe/stripe-terminal-ios/releases/tag/v2.14.0
but our React Native library does not currently included that version of the iOS library:
https://github.com/stripe/stripe-terminal-react-native/releases
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.
which one?
Version 2.14.0 of the iOS Terminal SDK as mentioned above.
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
https://stripe.com/docs/terminal/payments/setup-integration
i use this one as well but there is an problem dont know why i disvued above.
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
what is the purpose of this i register 2 time
What is the purpose of what?
how can i get the beta version implementation for demo?
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.
oky sure