feat(billing): bill new Brazilian accounts in BRL and show currency-aware credit top-ups

This commit is contained in:
Tanmay Deep Sharma
2026-06-02 15:49:13 +05:30
parent 4339e0ee0a
commit b38618b5d3
17 changed files with 364 additions and 76 deletions
@@ -27,6 +27,12 @@ class EnterpriseAccountAPI extends ApiClient {
createTopupCheckout(credits) {
return axios.post(`${this.url}topup_checkout`, { credits });
}
// Returns { currency, options: [{ credits, amount, currency }] } for the
// account's billing currency, sourced from CHATWOOT_CLOUD_TOPUP_OPTIONS.
getTopupOptions() {
return axios.get(`${this.url}topup_options`);
}
}
export default new EnterpriseAccountAPI();