#leman0589
1 messages · Page 1 of 1 (latest)
Hello, apologies for the delay. Can you show me what you are currently doing in your code? Adding tax to the amount should be fine as far as I know. Are you getting an error when you do this?
const paymentIntent = await stripe.paymentIntents.create({
amount,
currency,
payment_method_types: ['card'],
customer,
payment_method: card,
confirm: false, // set to false to place a hold on the card
}); where amount = product price + tax (calculated based on % )
can I collect tax by including it in the amount that will be charged to the customer?
Yep looks like that is fine to do. We have a tax calculation and when used with PaymentIntents it looks like we reccommend just putting the total amount in the payment intent's amount field https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect