#James786 - React native

1 messages · Page 1 of 1 (latest)

open wren
#

Hi there!

#

What is your question?

dusky bluff
#

i want to integrate with JS

#

the code which you provide that is in Typescript

#

i need in JS using CLI not expo

open wren
dusky bluff
#

but it is with expo

#

import { StripeProvider } from '@stripe/stripe-react-native';

function App() {
return (
<StripeProvider
publishableKey="pk_test_51L415IJiREfmU884Sg...N3IxouEsu002jck3cpk""pk_test_51L415IJiREfmU884Sg6ttsAxCe5hc1OosBTqAu2VmS3QgnYOaQFXiNgoIAtvZJeh1vNnqYDXrJyhLR8N3IxouEsu002jck3cpk"
urlScheme="your-url-scheme" // required for 3D Secure and bank redirects
merchantIdentifier="merchant.com.{{YOUR_APP_NAME}}" // required for Apple Pay
>
// Your app code here
</StripeProvider>
);
}

#

may i use service provider on my CLI file not on App.js file

#

??

open wren
#

may i use service provider on my CLI file not on App.js file
I'm sorry I don't understand your question. Does the code you shared work? If not what's the error message?

dusky bluff
#

your documentation is saying that.. use service provider on App.js file and wrap all code under this... i am saying that may i use this service provider on direct payment.JS file

open wren
#

So you want to use <StripeProvider> in the payment.js file instead of the app.js file?

dusky bluff
#

yes

open wren
#

I'm not very familiar with React Native, but yes I think this should work.

dusky bluff
#

okay

#

wait i tru

#

try

dusky bluff
#

what is this? urlScheme="your-url-scheme" // required for 3D Secure and bank redirects

#

from where i get url

glossy lichen
dusky bluff
#

so which lick here we use?

glossy lichen
#

did you read the doc I sent you?

dusky bluff
#

yes i have already read this

#

but it can't help me

glossy lichen
#

for this to work, you want to look into deeplinks
Looking for any guides I can send your way

dusky bluff
#

okay

#

The customer has not entered their payment method.
some time i got this on dashboad and payment is not successed

glossy lichen
#

I don't think I follow

dusky bluff
#

means?