#stevepixodeo_code

1 messages ¡ Page 1 of 1 (latest)

modest jewelBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1311967138558377995

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

primal fable
#

hello! can you share the PaymentIntent id?

buoyant chasm
#

yes sure, here is pm_1QQPHIH7qxXXRTHJjeSfK7If

primal fable
#

the PaymentIntent id starts with the prefix pi_

buoyant chasm
#

sorry its not return for me paymentintent id

primal fable
#

i'm sorry i don't understand, stripe.paymentIntents.create will create a PaymentIntent unless you're running into an error. Are you saying your code is throwing an error?

buoyant chasm
#

i received an error message: Received unknown parameter: customer_details

primal fable
#

you should omit that parameter

buoyant chasm
#

thank you

#

i have question about automatic calculate tax for PaymentIntent

#

i want to retrieve tax for each PaymentIntent so how can i do it, please?

primal fable
#

gimme a while to type out an answer, in short, PaymentIntents doesn't support automatic tax natively

#

There are a couple of options here, you can use if you want to use Automatic Tax :

Build a low-code payment form and embed it on your site or host it on Stripe.

Learn how to create and send an invoice with code.

Use Stripe Tax APIs to calculate sales tax, GST, and VAT with Stripe's payments APIs and non-Stripe payment processors

Learn how to use Elements with Custom Checkout to build a checkout page.

buoyant chasm
#

yes thank you, i'm trying use the Stripe Tax API

#

if i have any question, i will contact you soon