#idhruv

1 messages · Page 1 of 1 (latest)

raven cairnBOT
exotic saffron
#

As the error says, application_fee_amount is only valid for either a Destination Charge or a Direct Charge. Probably you were using Direct Charge but this time forget to include the Connected Account Id?

normal aurora
#

let me check plz

#

paymentIntent = await stripe.paymentIntents.create( { amount: Math.trunc(await roundOffNumbers(bookingArr[i] ?.totalPayable) * 100), currency: 'eur', payment_method_types: ['card'], payment_method: payload.cardId, customer: userData.stripeCustomerId.toString(), application_fee_amount: Math.trunc(await roundOffNumbers(applicationFee) * 100), transfer_data: { destination: hostStripeAccId?.stripeAccountId }, confirmation_method: 'automatic', confirm: true }, { idempotencyKey: uuidv4() });

#

just checked and i am also sending connected account Id

#

inside transfer_Data

#

also i have never encountered this before

exotic saffron
#

This one doesn't have transfer_data