#RJ01

1 messages · Page 1 of 1 (latest)

languid yewBOT
mighty garnet
#

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?

raven oak
#

in_1NJU99KgpulIQWSvpDFrTf8t

mighty garnet
#

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

raven oak
#

the amount paid in the invoice is $106.72 while the amount_total response in api/v1/tax/calculations endpoint is 107

#

if you compare it to the invoice in_1NJU99KgpulIQWSvpDFrTf8t the amount paid is $106.72

#

it's not rounded off it retains the decimals

mighty garnet
#

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

raven oak
#

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?

mighty garnet
#

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

raven oak
#

oh yea. i saw it now. thank you

mighty garnet
#

No problem! Happy to help 😄

raven oak
#

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.

mighty garnet
#

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

raven oak
#

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.

mighty garnet
#

The steps will be:

  1. Use setup intent to collect the payment method details: https://stripe.com/docs/payments/save-and-reuse
  2. 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
  3. Create the subscription with the price that consists of Stripe fee

Learn how to save payment details and charge your customers later.

#

application_fee_percent is for Stripe Connect which the platform collects the fee from connected account. It can't be used with Stripe fee

raven oak
#

will check this thank you