#sebastian_Tax

1 messages · Page 1 of 1 (latest)

tropic shale
#

Stripe support Tax calculation in 2 ways: Tax Rates and Stripe Tax.

#

To include the tax calculation on the product you are using ,please refer to the Doc

smoky anvil
#

not helpful 😦

#

I read this document and still do not know why tax is not displayed on receipts

#

I have defined product and tax for one country

#

on the website Stripe is showing me that this it will look like

#

but it is not like that at all 😦

#

@tropic shale : if you do not know the answer and you're only providing documentation - this is OK. Maybe someone else will be able to help ?

tropic shale
#

I will try my best to help you

#

Which receipts do you mean? PaymentIntent receipts?

#

Can you show me an example? Like PaymentIntent ID? And screenshot of how does the receipt look like?

smoky anvil
#

this is the receipt that customers automatically receive after one-time payment via email

#

actually I'm wondering if defining the tax on the stripe site is enough or it also need to be invoked in code

tropic shale
#

Ah I see. That's Tax rates. And after defining them, you still need to apply them when you create a Payment Intent

#

How do you create the Payment Intent? Do you use Checkout?

smoky anvil
#

my developer does that but I think this is the code

def payment(request):
if request.method == 'POST':
user_ = request.user
amount = 100
stripe.api_key = "sk_test_51Jgl.............."
customer = stripe.Customer.create(
email=user_.email,
# name = user_.username,
source=request.POST['stripeToken']
)
charge = stripe.Charge.create(
customer=customer,
amount=amount,
currency='usd',
description='Site Membership'
)

# elif request.method == 'GET':
return render(request, 'accounts/payment.html')
tropic shale
#

That's Charge API

#

We don't support to apply Tax Rates to Charge directly, unfortunately. We only support adding Tax Rates to Subscription/Invoice/Checkout

#

The closest solution for you would be switching over to use Invoice

#

When a customer paid an Invoice, they will receive an email just like a Charge you are doing. Because you can specify Tax Rate in Invoice, your customer will see the Tax information inside the receipt

smoky anvil
#

OK, but Invoices are not paid instantly?

#

and I need that payment for access activation

tropic shale
#

Invoice has 2 mode of collection_method: charge_automatically or send_invoice. If you config it to charge_automatically, Stripe will try to charge the customer right away

#

But you will need to collect their PaymentMethod before hand

smoky anvil
#

😦

#

thank you for your help

#

appreciate that greatly

tropic shale
#

It's a flow change: Collect the PaymentMethod, attach the PaymentMethod to the Customer, create an Invoice for that Customer, specify charge_automatically. Stripe will look for the attached PaymentMethod information and charge

smoky anvil
#

and what is checkout ?

#

wouldn't that be better option ?

tropic shale
smoky anvil
#

will I get instant confirmation for my site of the payment ?

tropic shale
#

It will be a change of flow too. Instead of creating a Charge directly, you will create a "Session" and redirect customer to the Session.url. It's a Stripe hosted site

#

After customer finish paying, yes

smoky anvil
#

and will be redirected back to my page ?

tropic shale
#

yes

smoky anvil
#

and receipts will have VAT tax ?

tropic shale
#

yes, after you specify Tax Rates when you create the Checkout Session

#
  1. Create Tax Rates (you already did this)
  2. Specify Tax Rates when creating a Checkout Session