#Shahzaib

1 messages · Page 1 of 1 (latest)

odd novaBOT
ionic gorge
#

await Stripe.paymentIntents.create(
{
payment_method: pm_id,
amount: transaction_amount,
currency: "usd",
customer: customerId,
receipt_email: email,
description: itemName,
payment_method_types: ["card", "us_bank_account"],
application_fee_amount: commission_fee,
confirm: true,
metadata: {
intent_type: intentType,
},
},
{
stripeAccount: subscriberConnectedAccountId,
}
);

#

But now I want to send all money to platform rather than connected account.

quiet mountain
#

If you wanted the "fee" to be the entire amount, then you'd set the application_fee_amount to the full amount

#

But you might be better off using a platform payment intent in this case

#

instead of a direct charge

ionic gorge
#

can you guide me on platform payment intent

quiet mountain
#

It would be changing your flow, so it really depends on what your goal is, how your customer expects to see payments and if you want this to be visible to the conencted account

#

If you do a platform payment then it won't be visible to the conencted account

#

If you remove the stripeAccount: subscriberConnectedAccountId option and the application_fee_amount that would be a platform payment, but you'd need the customer on your platform too