To help support the ability to automatically collect taxes from the prices of products that make up a description, it would be helpful if the resource definition of a stripe_product could include the tax_code property.
Then updating the create, read, and update functions accordingly.
The biggest challenge I see here is if a developer inputs an invalid tax code, Stripe might yell and give a 400 error, but that should be caught when the client calls to create a new product? It's kind of up to the developer to search Stripe and figure out the tax code they want to use.
To help support the ability to automatically collect taxes from the prices of products that make up a description, it would be helpful if the resource definition of a
stripe_product
could include thetax_code
property.Sample request POST body that features a
tax_code
Updating the
stripe/resource_stripe_product.go
file with something likeThen updating the create, read, and update functions accordingly.
The biggest challenge I see here is if a developer inputs an invalid tax code, Stripe might yell and give a 400 error, but that should be caught when the client calls to create a new product? It's kind of up to the developer to search Stripe and figure out the tax code they want to use.