#jean-hastoy_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
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
Implementation of this is shown in the React Native tab of the direct charges guide here: https://docs.stripe.com/connect/direct-charges?platform=react-native#stripe-initialization
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>
);
}
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 ?