#jean-hastoy_api

1 messages ¡ Page 1 of 1 (latest)

summer juniperBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1380532644000960662

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lyric elk
#

hey there, yes! but you need to make sure you initialize the react native SDK with that connected account context, too

#

i suspect that might be the missing piece

#

when you initialize, you need to include stripeAccountId with the same connected account for the direct charge

#
function App() {
  return (
    <StripeProvider
      publishableKey='pk_test_123'
      stripeAccountId='{{CONNECTED_ACCOUNT_ID}}'
      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>
  );
}
west urchin
#

Hello !

Thank for you answer, seems to be the good reason !

But, i would like to change the stripeAccountId dynamically as a user can pay to multiple stripeAccountId, is it possible ?