#SenorKarlos-discord-bot
1 messages ยท Page 1 of 1 (latest)
Do you have a request ID for the Checkout Session you're talking about?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
not on hand but I can go dig it up
req_O53wHrTldpyUct and upon reviewing it, it looks like I did NOT pass the tax code array as expected, which is making no sense to me right now but I'll figure out where my code dropped the ball. I have a config.json containing the object config.stripe.taxes, under which is a boolean key for active and an array of the tax ID's. If you can see my account in general, the 6 attempts before all passed an incorrect array, then when I got through I figured I nailed it ๐
I was trying to pass the variables via my iterated html insert (multi-product support) and that resulted in all the fails, then realized I could just do it in the actual post function instead of thru req.body
wow ๐คฆโโ๏ธ I guess when you're at the end of a 10 hour, all night coding session, using the wrong config variable is an honest mistake - found it I think lol
๐ก WHUT
{"error":{"message":"The country, CA, for dynamic tax rate txr_1LFceIErMl1EMpQJjaXsFygX is not supported. Learn more at https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-dynamic_tax_rates"}}
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
literally the only way my poor brain is gonna get this working and you don't support my country?!?!?!?!
'specially with no pre-address collection
wow ๐คฆโโ๏ธ I guess when you're at the end of a 10 hour, all night coding session, using the wrong config variable is an honest mistake
Ohhhh yes. Definitely an instance of diminishing returns re. productivity. I can relate.
I didn't realize that was the tax product you were using. I misinterpreted your intial message, thinking you were passing in your own custom tax rates already.
For CA you would unfortunately need to configure your own tax rate for the Checkout Session via: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-tax_rates
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Looks like if I wanna pay an extra fee it'll work... O.o but not the way it just bloody should? Reading more on non-dynamic rates and the firast thing it does it pitch me Stripe Tax
I can understand the frustration there. For what it's worth, the product is pretty much brand-new (e.g. less than a year old) so I wouldn't be surprised if we see countries like CA and others globally available in the near future.
๐ how about the next 2 days before my registration kicks in ๐ ๐คฆโโ๏ธ
I'm trying to figure out how to use these 13 tax rates myself now, really not sure
A very detailed explination of how it can do math.... but not how to send the right code per customer
hell is "Stripe Tax" (automatic_tax_collection) even valid in canada? At this point I'll pay the damn half percent just to move forward and curse the half hour i wasted on setting up that damn array
I can't quite tell
I believe it is, though I'm not sure if it's selective based on province: https://stripe.com/docs/tax/registering#list-of-state-and-country-registration-sites
yeah ok I think I saw that before... and then figured why pay when I can code. Do y'all take feedback in here too ๐ I'm guessing you ca figure what I'm gonna say about this O.o
well already have really
I'd sure as hell hope if that's listed there, it works ๐ back to the drawing board, thankfully seems simpler
Our support folks have a workflow for surfacing feedback, so feel free to reach out to them if you'd like: https://support.stripe.com/contact/email
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
If it works it works!
just floored... if the paid product can sort out canadian tax by postal code, then dynamic tax should as well. Plain and simple to me O.o ๐
email sent LOL
In theory yes. It may not now, but I would be surprised if it didn't eventually for CA. Stripe in general seems to do a pretty good job of making it less costly to build things yourself, so hopefully we'll see CA supported in the future ๐ค
I mean that's why I'm floored, it seemed like Stripe tax was the 'pay your way out of some work' option. I don't know which came first or any other details ๐ come to mention
you've been stellar, btw, thanks so much ๐
Of course! I hate when I can't give the answers I would like to, but I'm happy that you have a workaround in the interim ๐โโ๏ธ
indeed. Well have a great day, and don't be surprised to see me back when i get to the cx portal (though that seems infinitely simpler)
๐
Sounds good! We/I will be here
Hey sorry (hope you still have this notified lol) this is kind of more a product question than dev, but my registration is July 1st and I need to test now, do you know if setting the future date will mess with my current testing? Heck being in test mode, this won't even apply to live right so I could just set today probably?
I gotta hop, but @spark nimbus is taking over and can follow up ๐โโ๏ธ
(anecdotal, the tax page thinks I sold 3 euros in Ireland and need to register ๐ )
ok cool
ty again vm
ugh.... and if I turn this on and pay for it, I can't use GPay and Apple pay after all? O.o jaysus y'all need to clean up these tax products ๐
just put a damn postal/zip code collection box that makes the gpay/applepay buttons highlight for use ๐คฆโโ๏ธ that'll be goin in my feedback reply LOL
Hello ๐
Catching up here
Give me a moment and I'll respond as soon as I can
NP, just the last couple messages
well I guess there's context involved lol
๐ automatic tax isn't as simple as I thought either, but not so bad LOL
Juggling between a few threads!
Apple Pay/GPay aren't supported with Stripe Tax today.
I do know that we're actively working supporting this (release most probably next month, no solid ETA though)
nice, that'll be awesome. My main question is the one before that, about test mode/prereg date
yeah test mode changes shouldn't affect live mode.
What are you trying to set the date for sorry?
and now that I'm reading, I don't ever have address info until time of payment, and then it would be stored. so I'm guessing the best setup for me (I'll always be passing a cx token, whether just created or existing with previous transactions) would be to follow this example:
automatic_tax: {
enabled: true,
},
customer: 'cus_HQmikpKnGHkNwW',
customer_update: {
address: 'auto',
},
I'm registered as of July 1st but need to test my integration now so i can be live at midnight that day ๐
tall order for a layman coder, but I'm managing ROFL
I also don't collect any shipping, just billing info
(probably why it thinks I have a sale in Ireland, come to think)
Can my products/account/whatever be set to only accept Canadian customers? without using shipping addresses?
Just so that I'm on the same page, you mean only allow Canadian customers to purchase through checkout?
yes
and yeah for the date thing I'll set test mode as immediate, makes sense
not touching a thing in live until I'm 100% satisfied, even if I have to 'pay the tax' for a couple days in my own accounting software. It'll be my fine for being late ๐
I don't think checkout has support for location based restrictions
You'd likely want to look into radar rules
https://stripe.com/docs/radar/rules/reference
I mean I guess if I collected shipping and set
shipping_address_collection: {
allowed_countries: ['CA'],
},
that would seem to do it, but I don't see a billing address equivalent
those rules are neat though
yeah ๐ฆ Radar would be the likely solution here to prevent transactions from outside of Canada
I'm reading that now and deciding which way to go. Thank you very much for the help! Very friendly bunch around here ๐
NP! ๐ Happy to help. Good luck
@spark nimbus related question for my object building logic, can both of these be passed at the same time, or does shipping cover both.
Rules seemed to be yet more fees and decently complex, shipping address & allowed countries seems to do the same thing out of the box
oops ๐
customer_update: {
address: 'auto',
shipping: 'auto',
},
well if this gets seen, I can't see any reason why not in the api reference. gtg lol