#dashen0897_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1448578986551541770
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
๐ happy to help
First what Tax module are you lookingfor exactly ? What guide are you following ?
If you want to use Tax with PaymentIntent you should be following this one:
https://docs.stripe.com/tax/payment-intent
v83.2.0 Many parameters have significant version differences.
params := &stripe.PaymentIntentCreateParams{
Amount: stripe.Int64(1000),
Currency: stripe.String(stripe.CurrencyUSD),
AutomaticPaymentMethods: &stripe.PaymentIntentCreateAutomaticPaymentMethodsParams{
Enabled: stripe.Bool(true),
},
Hooks: &stripe.PaymentIntentCreateHooksParams{
Inputs: &stripe.PaymentIntentCreateHooksInputsParams{
Tax: &stripe.PaymentIntentCreateHooksInputsTaxParams{
Calculation: stripe.String("{{CALCULATION_ID}}"),
},
},
},
}
The Hooks parameter is not available.
Can you try the latest version v84.0.0?
Did the older version not support tax?