Skip to content

Instantly share code, notes, and snippets.

@AlexanderZaytsev
Created September 24, 2020 10:45
Show Gist options
  • Save AlexanderZaytsev/b6405980fa87754c39624706e45c20c5 to your computer and use it in GitHub Desktop.
Save AlexanderZaytsev/b6405980fa87754c39624706e45c20c5 to your computer and use it in GitHub Desktop.
VAT Tax rates for stripe.rb 2020
tax_rates = [
{ country: 'BE', percentage: 21 },
{ country: 'BG', percentage: 20 },
{ country: 'CZ', percentage: 21 },
{ country: 'DK', percentage: 25 },
{ country: 'DE', percentage: 19 },
{ country: 'EE', percentage: 20 },
{ country: 'IE', percentage: 23 },
{ country: 'GR', percentage: 24 },
{ country: 'ES', percentage: 21 },
{ country: 'FR', percentage: 20 },
{ country: 'HR', percentage: 25 },
{ country: 'IT', percentage: 22 },
{ country: 'CY', percentage: 19 },
{ country: 'LV', percentage: 21 },
{ country: 'LT', percentage: 21 },
{ country: 'LU', percentage: 17 },
{ country: 'HU', percentage: 27 },
{ country: 'MT', percentage: 18 },
{ country: 'NL', percentage: 21 },
{ country: 'AT', percentage: 20 },
{ country: 'PL', percentage: 23 },
{ country: 'PT', percentage: 23 },
{ country: 'RO', percentage: 19 },
{ country: 'SI', percentage: 22 },
{ country: 'SK', percentage: 20 },
{ country: 'FI', percentage: 24 },
{ country: 'SE', percentage: 25 },
{ country: 'GB', percentage: 20 },
]
tax_rates.each do |tax_rate|
Stripe::TaxRate.create({
display_name: 'VAT',
inclusive: false,
percentage: tax_rate[:percentage],
country: tax_rate[:country],
jurisdiction: tax_rate[:country],
})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment