#Hitesh
1 messages · Page 1 of 1 (latest)
:question: @deep swan Have a non-technical question, account issue, or need one-on-one support?
We wish we could help, but this community is focused on developers and technical discussions. Our support team will be able to assist you better than we can: https://support.stripe.com/contact
it' s technical question
const checkoutSession = await stripe.checkout.sessions.create({
mode: 'payment',
line_items: [
{
price_data: {
product_data: {
name: 1A,
},
currency: 'eur',
unit_amount: 1000,
},
quantity: 1,
},
{
price_data: {
product_data: {
name: Charges,
},
currency: 'eur',
unit_amount: 60,
},
quantity: 1,
},
],
success_url: ${process.env.FRONT_END_URL}/payment/success,
cancel_url: ${process.env.FRONT_END_URL}/payment/cancel,
payment_intent_data: {
transfer_data: {
amount: 1000 - 60,
destination: accounbt id ,
},
},
});const checkoutSession = await stripe.checkout.sessions.create({
mode: 'payment',
line_items: [
{
price_data: {
product_data: {
name: 1A,
},
currency: 'eur',
unit_amount: 1000,
},
quantity: 1,
},
{
price_data: {
product_data: {
name: Charges,
},
currency: 'eur',
unit_amount: 60,
},
quantity: 1,
},
],
success_url: ${process.env.FRONT_END_URL}/payment/success,
cancel_url: ${process.env.FRONT_END_URL}/payment/cancel,
payment_intent_data: {
transfer_data: {
amount: 1000 - 60,
destination: accounbt id ,
},
},
});
this is code snippet i want to know that if i transfer amount to connected account then any hidden charges id their ?
Ah sorry, I though you were referring to Stripe fees. When the Checkout Session succeed, you'll have a PaymentIntent generated:
https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
yes payment intent generated money also transfer two connected account
but i have charge 60 to customer and rest amount will be transfer to connected account
in main stripe doen't show the 60 amount some minor amount will be deducted from 60
so i want to know is their any hodden charges are their
You can retrieve all these details while fetching the balance_transactions of the PaymentIntent:
https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
the amount does show in payment intent
like i have charge customer $0.61 on $11.8 product but in main stripe balance it will credit $0.59 so their is a difference of $0.2
Can you share the PaymentIntent Id ?
pi_3N6BVJFEVJEbpeYB17fytgbt
This PI is for $51.88 USD -> €46.37 EUR
Stripe fees: €1.76 EUR
Net :€44.61 EUR
I don't see any missing amount.
in order to understand the fees, I invite you to reach out to Stripe Support at https://support.stripe.com/contact
ok thanks