Update prepaid checkout to allow all countries

This commit is contained in:
2025-04-09 09:47:15 +02:00
parent 4b297fec46
commit 5382d53513
43 changed files with 534 additions and 257 deletions

View File

@@ -114,3 +114,14 @@ export const put_user = async (data: Object) => {
((window as any).user as User)[key] = data[key]
}
}
export type VATRate = {
name: string,
vat: number,
alpha2: string,
alpha3: string,
}
export const get_misc_vat_rate = async (country_code: string) => {
return await check_response(await fetch(get_endpoint() + "/misc/vat_rate/" + country_code)) as VATRate
}