#RJ01
1 messages · Page 1 of 1 (latest)
Can you share the request ID (req_xxx) that you made to calculate the tax and the invoice ID (in_xxx) that you compared it with?
in_1NJU99KgpulIQWSvpDFrTf8t
https://api.stripe.com/v1/tax/calculations im using this end point and it has an id here..
taxcalc_1NJUe5KgpulIQWSvuTBGJajm
I don't get you. The total_amount here is in minor unit, which is equal to USD 1.07. It will round to the smallest unit of the currency
the amount paid in the invoice is $106.72 while the amount_total response in api/v1/tax/calculations endpoint is 107
in the response of https://api.stripe.com/v1/tax/calculations the amount_total is being rounded off to whole number.
if you compare it to the invoice in_1NJU99KgpulIQWSvpDFrTf8t the amount paid is $106.72
it's not rounded off it retains the decimals
question is, how can i get the same amount or value that is not being rounded off in https://api.stripe.com/v1/tax/calculations
In your https://dashboard.stripe.com/test/logs/req_ab59dbCy3kvBJ8, the line_items.amount is 99 which is equivalent to $0.99. Stripe uses minor unit in our API
If you wish to calculate the tax of $99, your input of line_items.amount should be 9900 instead
total_amount should return you 10672 as the result
oh got it. i was confused by that. thank you
one more question.. it's regarding in stripe processing fee.
in subscription. it's not indicated here or it is not showing the processing fee in the invoice..
unlike in payment intent.
is it only applicable in payment intent? or it is also applicable in subscription for montly and yearly? where can i see that?
It's possible to find the Stripe fee of a subscription by looking at the payment intent under the invoices of the subscription
It's not showing directly on the invoice. You'd need to look for the payment intent associated with the invoice
oh yea. i saw it now. thank you
No problem! Happy to help 😄
Hello, regarding in stripe fee..
let's say
price : $99.00
sales tax: $7.72
sum amount: 106.72
stripe fee: $3.39
we are in a subscription part, so we have a $99 per month, we are using that price..
we like to add the stripe fee in the total amount + sales tax
can we do that? so the stripe fee will not be charged to us, it will be charge to the customer.
because in payment intent or in one time payment...
we already have a plan. so compute the total amount + sales tax + stripe fee, once we have the sum amount of those. we will update the payment intent...
but we are wondering how can we do this also in subscription? to add the stripe fee in the sum amount before the customer pay's it.
One way I can think of is to collect the payment method from the customer with Setup Intent first and use the collected payment method to determine the pricing and add it to the final amount charge to customer in the subscription
how can we add it?
can we update the subscription price per customer?
or once we determined, that's the time we will create a subscription price that is only dedicated to that customer?
or once we determined the stripe processing fee, we will create another product price contains that stripe processing fee and add it as add_invoice_items[0][price]?
would you know how this application_fee_percent works?
oh it thought we can use this for stripe fee.
The steps will be:
- Use setup intent to collect the payment method details: https://stripe.com/docs/payments/save-and-reuse
- Calculate the Stripe fee based on the payment method collected in Step 1: https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
- Create the subscription with the price that consists of Stripe fee
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
application_fee_percent is for Stripe Connect which the platform collects the fee from connected account. It can't be used with Stripe fee
will check this thank you