#sebastian_Tax
1 messages · Page 1 of 1 (latest)
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
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 ?
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?
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
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?
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')
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
OK, but Invoices are not paid instantly?
and I need that payment for access activation
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
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
Stripe Checkout product: https://stripe.com/docs/payments/checkout
will I get instant confirmation for my site of the payment ?
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
and will be redirected back to my page ?
yes
and receipts will have VAT tax ?
yes, after you specify Tax Rates when you create the Checkout Session
Checkout + Tax support: https://stripe.com/docs/payments/checkout/taxes
- Create Tax Rates (you already did this)
- Specify Tax Rates when creating a Checkout Session