#abduljabbar_76164
1 messages · Page 1 of 1 (latest)
Is this a Connect payment?
Yes, I think so. How can I double confirm this
Well generally you'd just know. Do you have a connect account that's receiving all/part of the funds in your integration?
yes ...
Ok and is this a standard, express, or custom account?
And are you using destination charges or direct?
direct
This is my paymentIntentRequest looks like
const paymentIntentRequest = {
amount: paymentRequest.amount,
payment_method_types: ['card'],
receipt_email: paymentRequest.recieptEmail,
currency: accountDetail.currency,
metadata: accountDetail.metadata,
application_fee_amount: fee
};
And you pass the stripe account header when creating the payment intent? Can you share a request id? Usually you get the No such payment_intent error with direct charges when you don't pass the stripe account header everywhere (either on creating or confirm)
we use this await stripe.paymentIntents.create(paymentIntentRequest, stripeAccount);
where stripeAccount is the connected account id
Can you share the request id for the confirm request then
Likely it's not being passed there
const billingDetails: BillingDetails = {
email: 'xxx@gmail.com'
};
const {paymentIntent, error} = await confirmPayment(clientSecret, {
paymentMethodType: 'Card',
paymentMethodData: {
billingDetails },
});
we pass only clientSecret here
Ok so I think you need to initialize StripeProvider with your connect account id then
Documentation for @stripe/stripe-react-native
stripeAccountId https://stripe.dev/stripe-react-native/api-reference/interfaces/InitStripeParams.html
Documentation for @stripe/stripe-react-native
yes I do initialze
<StripeProvider publishableKey='pk_test_xxxxx'>
<SafeAreaView>
<PaymentScreen/>
</SafeAreaView>
</StripeProvider>
But you don't pass stripeAccountId
That's what you need
<StripeProvider publishableKey='pk_test_xxxxx' stripeAccountId='connect_account_id'>
let me try now
it worked ... amazing. thanks a lot for your help.
I missed to see this in the document