#krishna-awate_fees

1 messages ยท Page 1 of 1 (latest)

idle pineBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1292817628074872835

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

solemn seal
#

hi there!

#

I'm not sure I understand.

#

what do you mean by "transaction charge deducta for stripe"?

lean niche
#

from stripe side you charge on each transaction i.e. fee

solemn seal
#

you want to find the Stripe fee for a PaymentIntent?

lean niche
#

Yes how much stripe fee will be duducted for that transaction

solemn seal
#

got it, then check the link above

lean niche
#

If I don't expand, does it show null?

#

And does I get all the other data if I expand expand: ['latest_charge.balance_transaction'],

solemn seal
#

If I don't expand, does it show null?
what would shows null exactly?

#

And does I get all the other data if I expand expand: ['latest_charge.balance_transaction'],
yes you get everything as usually, plus the latest_charge.balance_transaction. I recommend testing this in test mode to see how this works.

lean niche
#

Okay. And what about subscription ?

#

How can I get there?

solemn seal
#

you want to get the Stripe fee of a Subscription?

lean niche
#

yes

solemn seal
#

then find the Invoices of the Subscription. each invoice has a PaymentIntent. and for each PaymentIntent use expand to retrieve the fee as explained above.

lean niche
#

for one time payemnt I tried

paymentIntent = await stripe.paymentIntents.retrieve(
payment_intent_id,
{
expand: ["latest_charge.balance_transaction"],
stripeAccount: bank_info.stripe_account_id,
}
);

but still getting latest charge null

#

pi_3Q7FgfDBfYojrB0W1xURC0zw

solemn seal
#

well, you can only get the Stripe fee after the payment is successful. here the Paymentintent has status: "requires_payment_method".

#

so that's normal.

lean niche
#

Do we have to collect that data after payment?

solemn seal
#

yes, you can only know the stripe fee after the payment, not beofre.

#

since the fee depends on the payment method used, the country, etc.

lean niche
#

Okay I will check that.

#

latest_charge =
'ch_3Q7G0PDBfYojrB0W1CuKWboG'

#

I have got only this?

#

id =
'pi_3Q7G0PDBfYojrB0W14Pt9KQI'

solemn seal
#

what's your question?

lean niche
#

I am not getting how much amount will be deducted as strope charge

solemn seal
#

did you retrieve the PaymentIntent with expand as explained above?

lean niche
#

const paymentIntent = await stripe.paymentIntents.retrieve(
details?.payment_id,
{
expand: ["latest_charge.balance_transaction"],
stripeAccount: bank_info.stripe_account_id,
}
);

#

Yes

solemn seal
#

and what's the response you get from Stripe?

lean niche
#

I want to have how much stripe paltform deduct its fee for that transaction

#

I have done transaction of $ 150

solemn seal
#

I found the request in the dashboard, but I don't see the expand parameter set:

lean niche
#

const paymentIntent = await stripe.paymentIntents.retrieve(
details?.payment_id,
{
expand: ["latest_charge.balance_transaction"],
stripeAccount: bank_info.stripe_account_id,
}
);

did I do any styntax error? I did same from documentaion

idle pineBOT
lean niche
#

Okay I did mistake.

#

const paymentIntent = await stripe.paymentIntents.retrieve(
details?.payment_id,
{
expand: ["latest_charge.balance_transaction"],
},
{
stripeAccount: bank_info.stripe_account_id,
}
);

now working

vagrant flower
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Glad to hear you got that working! I'll be around if there are more questions.

lean niche
idle pineBOT
#

krishna-awate_fees

lean niche
#

Is it $ 0.465 strpe processing fee?

vagrant flower
#

$4.65

#

Our amount fields are shown in the smallest unit for the currency used, so for usd that is cents.

lean niche
#

ohh got it

#

How can I get thta for subscption payment

vagrant flower
#

The same way. You get the Invoice that is assoicated with the payment you're interested in getting the fee for, then you find the Balance Transaction associated with the Payment Intent for that Invoice:

The payment_intent field on an Invoice object contains the ID of the assoicated Payment Intent:
https://docs.stripe.com/api/invoices/object#invoice_object-payment_intent

lean niche
#

Is stripe processing fee same for all recurring cycle?

vagrant flower
lean niche
#

Okay I will check about this. This will take a little bit longer so if there is initial I will connect again

#

Thank you so much for your help