#abduljabbar_76164

1 messages · Page 1 of 1 (latest)

flint steppeBOT
neon flax
#

Is this a Connect payment?

fervent kettle
#

Yes, I think so. How can I double confirm this

neon flax
#

Well generally you'd just know. Do you have a connect account that's receiving all/part of the funds in your integration?

fervent kettle
#

yes ...

neon flax
#

Ok and is this a standard, express, or custom account?

#

And are you using destination charges or direct?

fervent kettle
#

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
};

neon flax
#

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)

fervent kettle
#

we use this await stripe.paymentIntents.create(paymentIntentRequest, stripeAccount);

where stripeAccount is the connected account id

neon flax
#

Can you share the request id for the confirm request then

#

Likely it's not being passed there

fervent kettle
#

const billingDetails: BillingDetails = {
email: 'xxx@gmail.com'
};
const {paymentIntent, error} = await confirmPayment(clientSecret, {
paymentMethodType: 'Card',

  paymentMethodData: {
    billingDetails },
});
#

we pass only clientSecret here

neon flax
#

Ok so I think you need to initialize StripeProvider with your connect account id then

fervent kettle
#

yes I do initialze

  <StripeProvider publishableKey='pk_test_xxxxx'>
     <SafeAreaView>
        <PaymentScreen/>
     </SafeAreaView>
  </StripeProvider>
neon flax
#

But you don't pass stripeAccountId

#

That's what you need

#

<StripeProvider publishableKey='pk_test_xxxxx' stripeAccountId='connect_account_id'>

fervent kettle
#

let me try now

#

it worked ... amazing. thanks a lot for your help.

#

I missed to see this in the document

neon flax
#

No problem

#

Yeah it's not super obvious

flint steppeBOT
fervent kettle
#

Really exhausted trying it out whole night and this morning as well. Happy weekend

#

Finally happy ending to start weekend .. 🙂