Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

Show payment recovery notices in browser billing UI

Emre Sokullua50d98d8b033
diff --git a/package.json b/package.json
index 574a13a55..c206d1d56 100644
--- a/package.json
+++ b/package.json
@@ -5,8 +5,9 @@
"private": true,
"type": "module",
"scripts": {
- "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs test/captcha-weighted-fallback.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",
+ "test": "npm run test:markdown && npm run test:systemone && npm run test:systemone:fast && node --test test/browser-dialogs.mjs test/capsolver-cloud-broker.mjs test/captcha-providers.mjs test/captcha-weighted-fallback.mjs && npm run test:firefox-bidi && npm run test:runtime-lifecycle && npm run test:billing-notice && npm run test:provider-limits && npm run test:accessibility-tree-benchmark && npm run test:toolbar-guard && npm run test:pdf-read && npm run test:pdf-selection && npm run test:social-contract && npm run test:safesocial && npm run test:build-unpacked && npm run test:attachment-drop && node --test test/profile-sync-stats.mjs && node test/run.js && node test/selection-scope-restoration.mjs && node scripts/benchmark-offline-relevance.mjs && npm run test:security",
"test:captcha:ui": "node test/captcha-settings-ui.mjs",
+ "test:billing-notice": "node test/billing-payment-notice.mjs",
"test:provider-limits": "node test/provider-model-limits.mjs",
"test:markdown": "node --test test/markdown-render.mjs",
"test:accessibility-tree-benchmark": "node --test test/llm/lib/accessibility-tree-formats.test.mjs && node test/llm/accessibility-tree-benchmark.mjs --no-exact-tokenizer --check",
diff --git a/src/chrome/src/providers/openai.js b/src/chrome/src/providers/openai.js
index 444462363..f2f71accd 100644
--- a/src/chrome/src/providers/openai.js
+++ b/src/chrome/src/providers/openai.js
@@ -323,7 +323,10 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {
let message = 'Daily free WebBrain Compass allowance used.';
try {
const parsed = JSON.parse(body || '{}');
- if (parsed.upgrade_url) {
+ if (parsed.error?.code === 'webbrain_cloud_payment_failed' && parsed.manage_billing_url) {
+ actionUrl = parsed.manage_billing_url;
+ actionLabel = 'Update payment method';
+ } else if (parsed.upgrade_url) {
actionUrl = parsed.upgrade_url;
actionLabel = 'Upgrade to WebBrain Plus';
} else if (parsed.subscribe_url) {
diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.js
index 4db4de5c5..8e570b521 100644
--- a/src/chrome/src/ui/locales/ar.js
+++ b/src/chrome/src/ui/locales/ar.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'تم استخدام الحصة اليومية المجانية من WebBrain Compass.',
'sp.subscribe.btn': 'اشترك',
'sp.subscribe.upgrade': 'الترقية إلى Plus',
+ "sp.subscribe.resume_payment": "تم تحديث طريقة الدفع — أعد المحاولة",
'sp.subscribe.resume_upgrade': 'تم تحديث الخطة — أعد المحاولة',
'sp.subscribe.resume': 'اشتركت — أعد المحاولة',
'sp.stopped_by_user': '[أوقفه المستخدم]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'تتم إدارة الفوترة وبيانات البطاقة والبريد الإلكتروني والإلغاء بواسطة Stripe لملف المتصفح هذا.',
'st.account.billing_preparing': 'يتم تجهيز رابط الفوترة عبر Stripe لملف المتصفح هذا.',
+ "st.account.payment_failed": "تعذر إتمام دفعة اشتراكك. حدّث طريقة الدفع لاستعادة خطتك المدفوعة.",
+ "st.account.update_payment": "تحديث طريقة الدفع",
'st.account.manage_billing': 'إدارة الفوترة',
'st.display.language.label': 'اللغة',
diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.js
index edd8dac9b..7ab8d553c 100644
--- a/src/chrome/src/ui/locales/bn.js
+++ b/src/chrome/src/ui/locales/bn.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': "দৈনিক বিনামূল্যের WebBrain Compass ভাতা ব্যবহার করা হয়েছে।",
'sp.subscribe.btn': "সদস্যতা",
'sp.subscribe.upgrade': 'Plus-এ আপগ্রেড করুন',
+ "sp.subscribe.resume_payment": "পেমেন্ট পদ্ধতি আপডেট হয়েছে — আবার চেষ্টা করুন",
'sp.subscribe.resume_upgrade': 'প্ল্যান আপডেট হয়েছে — আবার চেষ্টা করুন',
'sp.subscribe.resume': "আমি সাবস্ক্রাইব করেছি — আবার চেষ্টা করুন",
'sp.stopped_by_user': "[ব্যবহারকারীর দ্বারা থামানো]",
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "এই ব্রাউজার প্রোফাইলের জন্য বিলিং, কার্ডের বিবরণ, ইমেল এবং বাতিলকরণ Stripe দ্বারা পরিচালিত হয়।",
'st.account.billing_preparing': "এই ব্রাউজার প্রোফাইলের জন্য Stripe বিলিং লিঙ্ক প্রস্তুত করা হচ্ছে।",
+ "st.account.payment_failed": "আপনার সদস্যতার পেমেন্ট সম্পন্ন হয়নি। পেইড প্ল্যান ফিরে পেতে পেমেন্ট পদ্ধতি আপডেট করুন।",
+ "st.account.update_payment": "পেমেন্ট পদ্ধতি আপডেট করুন",
'st.account.manage_billing': "বিলিং পরিচালনা করুন",
'st.display.language.label': "ভাষা",
diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.js
index 38a78f5f3..8328bd9d5 100644
--- a/src/chrome/src/ui/locales/de.js
+++ b/src/chrome/src/ui/locales/de.js
@@ -330,6 +330,7 @@ export default {
'sp.subscribe.allowance_used': 'Tägliches kostenloses WebBrain Compass-Kontingent aufgebraucht.',
'sp.subscribe.btn': 'Abonnieren',
'sp.subscribe.upgrade': 'Auf Plus upgraden',
+ "sp.subscribe.resume_payment": "Zahlungsmethode aktualisiert — erneut versuchen",
'sp.subscribe.resume_upgrade': 'Tarif aktualisiert — erneut versuchen',
'sp.subscribe.resume': 'Ich habe abonniert — erneut versuchen',
'sp.stopped_by_user': '[Vom Benutzer gestoppt]',
@@ -595,6 +596,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Abrechnung, Karteninformationen, E-Mail und Kündigung werden von Stripe für dieses Browser-Profil verwaltet.',
'st.account.billing_preparing': 'Stripe-Abrechnungslink für dieses Browser-Profil wird vorbereitet.',
+ "st.account.payment_failed": "Deine Abonnementzahlung konnte nicht abgeschlossen werden. Aktualisiere deine Zahlungsmethode, um deinen kostenpflichtigen Tarif wieder zu nutzen.",
+ "st.account.update_payment": "Zahlungsmethode aktualisieren",
'st.account.manage_billing': 'Abrechnung verwalten',
'st.display.language.label': 'Sprache',
'st.display.language.desc': 'Oberflächensprache des WebBrain-Plugins.',
diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.js
index 4505c1462..f3f84aed9 100644
--- a/src/chrome/src/ui/locales/en.js
+++ b/src/chrome/src/ui/locales/en.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': 'Daily free WebBrain Compass allowance used.',
'sp.subscribe.btn': 'Subscribe',
'sp.subscribe.upgrade': 'Upgrade to Plus',
+ 'sp.subscribe.resume_payment': 'Payment method updated — retry',
'sp.subscribe.resume_upgrade': 'Plan updated — retry',
'sp.subscribe.resume': 'I’ve subscribed — retry',
'sp.stopped_by_user': '[Stopped by user]',
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Billing, card details, email, and cancellation are managed by Stripe for this browser profile.',
'st.account.billing_preparing': 'Preparing the Stripe billing link for this browser profile.',
+ 'st.account.payment_failed': 'Your subscription payment could not be completed. Update your payment method to restore your paid plan.',
+ 'st.account.update_payment': 'Update payment method',
'st.account.manage_billing': 'Manage billing',
'st.display.language.label': 'Language',
diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.js
index de3d64264..02276a294 100644
--- a/src/chrome/src/ui/locales/es.js
+++ b/src/chrome/src/ui/locales/es.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Se agotó la asignación diaria gratuita de WebBrain Compass.',
'sp.subscribe.btn': 'Suscribirse',
'sp.subscribe.upgrade': 'Cambiar a Plus',
+ "sp.subscribe.resume_payment": "Método de pago actualizado — reintentar",
'sp.subscribe.resume_upgrade': 'Plan actualizado — reintentar',
'sp.subscribe.resume': 'Ya me suscribí — reintentar',
'sp.stopped_by_user': '[Detenido por el usuario]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'La facturación, los datos de la tarjeta, el correo electrónico y la cancelación los gestiona Stripe para este perfil del navegador.',
'st.account.billing_preparing': 'Preparando el enlace de facturación de Stripe para este perfil del navegador.',
+ "st.account.payment_failed": "No se pudo completar el pago de tu suscripción. Actualiza tu método de pago para recuperar tu plan de pago.",
+ "st.account.update_payment": "Actualizar método de pago",
'st.account.manage_billing': 'Gestionar facturación',
'st.display.language.label': 'Idioma',
diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.js
index de4a67aba..68a090d87 100644
--- a/src/chrome/src/ui/locales/fa.js
+++ b/src/chrome/src/ui/locales/fa.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': "سهمیه رایگان روزانه WebBrain Compass استفاده شد.",
'sp.subscribe.btn': "مشترک شوید",
'sp.subscribe.upgrade': 'ارتقا به Plus',
+ "sp.subscribe.resume_payment": "روش پرداخت به‌روز شد — تلاش دوباره",
'sp.subscribe.resume_upgrade': 'طرح به‌روزرسانی شد — تلاش دوباره',
'sp.subscribe.resume': "مشترک شدم - دوباره امتحان کنید",
'sp.stopped_by_user': "[توقف کاربر]",
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "صورت‌حساب، جزئیات کارت، ایمیل، و لغو توسط Stripe برای نمایه این مرورگر مدیریت می‌شود.",
'st.account.billing_preparing': "در حال آماده سازی پیوند صورتحساب Stripe برای این نمایه مرورگر.",
+ "st.account.payment_failed": "پرداخت اشتراک شما انجام نشد. برای بازگرداندن طرح پولی، روش پرداخت خود را به‌روز کنید.",
+ "st.account.update_payment": "به‌روزرسانی روش پرداخت",
'st.account.manage_billing': "مدیریت صورتحساب",
'st.display.language.label': "زبان",
diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.js
index 58844ca0c..11fa7ab2e 100644
--- a/src/chrome/src/ui/locales/fr.js
+++ b/src/chrome/src/ui/locales/fr.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Quota quotidien gratuit de WebBrain Compass épuisé.',
'sp.subscribe.btn': 'S’abonner',
'sp.subscribe.upgrade': 'Passer à Plus',
+ "sp.subscribe.resume_payment": "Moyen de paiement mis à jour — réessayer",
'sp.subscribe.resume_upgrade': 'Forfait mis à jour — réessayer',
'sp.subscribe.resume': 'Abonnement effectué — réessayer',
'sp.stopped_by_user': '[Arrêté par l\'utilisateur]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'La facturation, les informations de carte, l\'e-mail et la résiliation sont gérés par Stripe pour ce profil de navigateur.',
'st.account.billing_preparing': 'Préparation du lien de facturation Stripe pour ce profil de navigateur.',
+ "st.account.payment_failed": "Le paiement de votre abonnement n’a pas pu être effectué. Mettez à jour votre moyen de paiement pour retrouver votre offre payante.",
+ "st.account.update_payment": "Mettre à jour le moyen de paiement",
'st.account.manage_billing': 'Gérer la facturation',
'st.display.language.label': 'Langue',
diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.js
index 61fb4370f..a2ee0913d 100644
--- a/src/chrome/src/ui/locales/he.js
+++ b/src/chrome/src/ui/locales/he.js
@@ -317,6 +317,7 @@ export default {
"sp.subscribe.allowance_used": "ההקצבה היומית החינמית של WebBrain Compass נוצלה.",
"sp.subscribe.btn": "הירשם",
'sp.subscribe.upgrade': 'שדרוג ל-Plus',
+ "sp.subscribe.resume_payment": "אמצעי התשלום עודכן — נסו שוב",
'sp.subscribe.resume_upgrade': 'התוכנית עודכנה — נסו שוב',
"sp.subscribe.resume": "נרשמתי — נסה שוב",
"sp.stopped_by_user": "[נעצר על ידי משתמש]",
@@ -586,6 +587,8 @@ export default {
"st.account.provider_name": "WebBrain Compass",
"st.account.billing_managed": "חיוב, פרטי כרטיס, אימייל וביטול מנוהלים על ידי Stripe עבור פרופיל דפדפן זה.",
"st.account.billing_preparing": "הכנת הקישור לחיוב Stripe עבור פרופיל דפדפן זה.",
+ "st.account.payment_failed": "לא ניתן היה להשלים את התשלום עבור המינוי. עדכנו את אמצעי התשלום כדי לשחזר את התוכנית בתשלום.",
+ "st.account.update_payment": "עדכון אמצעי התשלום",
"st.account.manage_billing": "ניהול חיוב",
"st.display.language.label": "שפה",
"st.display.language.desc": "שפת הממשק של תוסף WebBrain.",
diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.js
index 6605e5b87..498e56c71 100644
--- a/src/chrome/src/ui/locales/hi.js
+++ b/src/chrome/src/ui/locales/hi.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': "दैनिक निःशुल्क WebBrain Compass भत्ता उपयोग किया गया।",
'sp.subscribe.btn': "सदस्यता लें",
'sp.subscribe.upgrade': 'Plus में अपग्रेड करें',
+ "sp.subscribe.resume_payment": "भुगतान विधि अपडेट हो गई — फिर कोशिश करें",
'sp.subscribe.resume_upgrade': 'प्लान अपडेट हो गया — फिर कोशिश करें',
'sp.subscribe.resume': "मैंने सदस्यता ले ली है - पुनः प्रयास करें",
'sp.stopped_by_user': "[उपयोगकर्ता द्वारा रोका गया]",
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "इस ब्राउज़र प्रोफ़ाइल के लिए बिलिंग, कार्ड विवरण, ईमेल और रद्दीकरण Stripe द्वारा प्रबंधित किया जाता है।",
'st.account.billing_preparing': "इस ब्राउज़र प्रोफ़ाइल के लिए Stripe बिलिंग लिंक तैयार किया जा रहा है।",
+ "st.account.payment_failed": "आपकी सदस्यता का भुगतान पूरा नहीं हो सका। अपना सशुल्क प्लान बहाल करने के लिए भुगतान विधि अपडेट करें।",
+ "st.account.update_payment": "भुगतान विधि अपडेट करें",
'st.account.manage_billing': "बिलिंग प्रबंधित करें",
'st.display.language.label': "भाषा",
diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.js
index 4f63b26c9..9df244976 100644
--- a/src/chrome/src/ui/locales/id.js
+++ b/src/chrome/src/ui/locales/id.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Kuota harian gratis WebBrain Compass telah habis.',
'sp.subscribe.btn': 'Berlangganan',
'sp.subscribe.upgrade': 'Upgrade ke Plus',
+ "sp.subscribe.resume_payment": "Metode pembayaran diperbarui — coba lagi",
'sp.subscribe.resume_upgrade': 'Paket diperbarui — coba lagi',
'sp.subscribe.resume': 'Sudah berlangganan — coba lagi',
'sp.stopped_by_user': '[Dihentikan oleh pengguna]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Penagihan, detail kartu, email, dan pembatalan dikelola oleh Stripe untuk profil browser ini.',
'st.account.billing_preparing': 'Menyiapkan tautan penagihan Stripe untuk profil browser ini.',
+ "st.account.payment_failed": "Pembayaran langganan Anda belum berhasil. Perbarui metode pembayaran untuk memulihkan paket berbayar Anda.",
+ "st.account.update_payment": "Perbarui metode pembayaran",
'st.account.manage_billing': 'Kelola penagihan',
'st.display.language.label': 'Bahasa',
diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.js
index 368fa2274..3da2dab87 100644
--- a/src/chrome/src/ui/locales/ja.js
+++ b/src/chrome/src/ui/locales/ja.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'WebBrain Compass の無料の1日あたりの利用枠を使い切りました。',
'sp.subscribe.btn': '購読する',
'sp.subscribe.upgrade': 'Plus にアップグレード',
+ "sp.subscribe.resume_payment": "支払い方法を更新しました — 再試行",
'sp.subscribe.resume_upgrade': 'プランを更新しました — 再試行',
'sp.subscribe.resume': '購読しました — 再試行',
'sp.stopped_by_user': '[ユーザーが停止]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'このブラウザープロファイルの請求、カード情報、メール、解約は Stripe が管理します。',
'st.account.billing_preparing': 'このブラウザープロファイルの Stripe 請求リンクを準備しています。',
+ "st.account.payment_failed": "サブスクリプションの支払いを完了できませんでした。有料プランを再開するには、支払い方法を更新してください。",
+ "st.account.update_payment": "支払い方法を更新",
'st.account.manage_billing': '請求を管理',
'st.display.language.label': '言語',
diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.js
index 8c26d3a49..5be469096 100644
--- a/src/chrome/src/ui/locales/ko.js
+++ b/src/chrome/src/ui/locales/ko.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'WebBrain Compass의 무료 일일 사용량을 모두 사용했습니다.',
'sp.subscribe.btn': '구독하기',
'sp.subscribe.upgrade': 'Plus로 업그레이드',
+ "sp.subscribe.resume_payment": "결제 수단 업데이트 완료 — 다시 시도",
'sp.subscribe.resume_upgrade': '요금제가 업데이트되었습니다 — 다시 시도',
'sp.subscribe.resume': '구독했습니다 — 다시 시도',
'sp.stopped_by_user': '[사용자가 중지함]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': '이 브라우저 프로필의 청구, 카드 정보, 이메일 및 해지는 Stripe에서 관리합니다.',
'st.account.billing_preparing': '이 브라우저 프로필의 Stripe 청구 링크를 준비하는 중입니다.',
+ "st.account.payment_failed": "구독 결제를 완료하지 못했습니다. 유료 요금제를 다시 사용하려면 결제 수단을 업데이트하세요.",
+ "st.account.update_payment": "결제 수단 업데이트",
'st.account.manage_billing': '청구 관리',
'st.display.language.label': '언어',
diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.js
index b30da3bad..f38c00b20 100644
--- a/src/chrome/src/ui/locales/ms.js
+++ b/src/chrome/src/ui/locales/ms.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Peruntukan harian percuma WebBrain Compass telah digunakan.',
'sp.subscribe.btn': 'Langgan',
'sp.subscribe.upgrade': 'Naik taraf kepada Plus',
+ "sp.subscribe.resume_payment": "Kaedah pembayaran dikemas kini — cuba lagi",
'sp.subscribe.resume_upgrade': 'Pelan dikemas kini — cuba lagi',
'sp.subscribe.resume': 'Saya sudah melanggan — cuba lagi',
'sp.stopped_by_user': '[Dihentikan oleh pengguna]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Pengebilan, butiran kad, e-mel dan pembatalan diuruskan oleh Stripe untuk profil pelayar ini.',
'st.account.billing_preparing': 'Menyediakan pautan pengebilan Stripe untuk profil pelayar ini.',
+ "st.account.payment_failed": "Pembayaran langganan anda tidak dapat diselesaikan. Kemas kini kaedah pembayaran untuk memulihkan pelan berbayar anda.",
+ "st.account.update_payment": "Kemas kini kaedah pembayaran",
'st.account.manage_billing': 'Urus pengebilan',
'st.display.language.label': 'Bahasa',
diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.js
index 1b33eb645..c062a9114 100644
--- a/src/chrome/src/ui/locales/nl.js
+++ b/src/chrome/src/ui/locales/nl.js
@@ -313,6 +313,7 @@ export default {
'sp.subscribe.allowance_used': 'Dagelijkse gratis WebBrain Compass-tegoed gebruikt.',
'sp.subscribe.btn': 'Abonneren',
'sp.subscribe.upgrade': 'Upgraden naar Plus',
+ "sp.subscribe.resume_payment": "Betaalmethode bijgewerkt — opnieuw proberen",
'sp.subscribe.resume_upgrade': 'Abonnement bijgewerkt — opnieuw proberen',
'sp.subscribe.resume': 'Ik heb geabonneerd — opnieuw proberen',
'sp.stopped_by_user': '[Gestopt door gebruiker]',
@@ -577,6 +578,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Facturering, kaartgegevens, e-mail en annulering worden beheerd door Stripe...',
'st.account.billing_preparing': 'Stripe-factureringslink voorbereiden...',
+ "st.account.payment_failed": "Je abonnementsbetaling kon niet worden voltooid. Werk je betaalmethode bij om je betaalde abonnement te herstellen.",
+ "st.account.update_payment": "Betaalmethode bijwerken",
'st.account.manage_billing': 'Facturering beheren',
'st.display.language.label': 'Taal',
'st.display.language.desc': 'Interfacetaal voor de WebBrain-plug-in.',
diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.js
index 164c77d38..52b6c4028 100644
--- a/src/chrome/src/ui/locales/pl.js
+++ b/src/chrome/src/ui/locales/pl.js
@@ -258,6 +258,7 @@ export default {
'sp.subscribe.allowance_used': 'Wykorzystano dzienny darmowy limit WebBrain Compass.',
'sp.subscribe.btn': 'Subskrybuj',
'sp.subscribe.upgrade': 'Przejdź na Plus',
+ "sp.subscribe.resume_payment": "Metoda płatności zaktualizowana — spróbuj ponownie",
'sp.subscribe.resume_upgrade': 'Plan zaktualizowany — spróbuj ponownie',
'sp.subscribe.resume': 'Subskrypcja gotowa — spróbuj ponownie',
'sp.stopped_by_user': '[Zatrzymane przez użytkownika]',
@@ -458,6 +459,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Rozliczenia, dane karty, e-mail i anulowanie są zarządzane przez Stripe dla tego profilu przeglądarki.',
'st.account.billing_preparing': 'Przygotowywanie linku rozliczeniowego Stripe dla tego profilu przeglądarki.',
+ "st.account.payment_failed": "Nie udało się zrealizować płatności za subskrypcję. Zaktualizuj metodę płatności, aby przywrócić płatny plan.",
+ "st.account.update_payment": "Zaktualizuj metodę płatności",
'st.account.manage_billing': 'Zarządzaj rozliczeniami',
'st.display.language.label': 'Język',
'st.display.language.desc': 'Język interfejsu wtyczki WebBrain.',
diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.js
index 60ff49d20..88034faa4 100644
--- a/src/chrome/src/ui/locales/pt.js
+++ b/src/chrome/src/ui/locales/pt.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': "Limite diário gratuito do WebBrain Compass utilizado.",
'sp.subscribe.btn': "Inscrever-se",
'sp.subscribe.upgrade': 'Fazer upgrade para o Plus',
+ "sp.subscribe.resume_payment": "Método de pagamento atualizado — tentar novamente",
'sp.subscribe.resume_upgrade': 'Plano atualizado — tentar novamente',
'sp.subscribe.resume': "Eu me inscrevi – tente novamente",
'sp.stopped_by_user': "[Interrompido pelo usuário]",
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "Faturamento, detalhes do cartão, e-mail e cancelamento são gerenciados por Stripe para este perfil de navegador.",
'st.account.billing_preparing': "Preparando o link de cobrança Stripe para este perfil de navegador.",
+ "st.account.payment_failed": "Não foi possível concluir o pagamento da sua assinatura. Atualize o método de pagamento para recuperar seu plano pago.",
+ "st.account.update_payment": "Atualizar método de pagamento",
'st.account.manage_billing': "Gerenciar faturamento",
'st.display.language.label': "Idioma",
diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.js
index df1de723d..bbc2178e9 100644
--- a/src/chrome/src/ui/locales/ru.js
+++ b/src/chrome/src/ui/locales/ru.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Бесплатный дневной лимит WebBrain Compass исчерпан.',
'sp.subscribe.btn': 'Оформить подписку',
'sp.subscribe.upgrade': 'Перейти на Plus',
+ "sp.subscribe.resume_payment": "Способ оплаты обновлён — повторить",
'sp.subscribe.resume_upgrade': 'План обновлён — повторить',
'sp.subscribe.resume': 'Подписка оформлена — повторить',
'sp.stopped_by_user': '[Остановлено пользователем]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Оплата, данные карты, электронная почта и отмена управляются Stripe для этого профиля браузера.',
'st.account.billing_preparing': 'Подготовка ссылки на оплату Stripe для этого профиля браузера.',
+ "st.account.payment_failed": "Не удалось провести оплату подписки. Обновите способ оплаты, чтобы восстановить платный тариф.",
+ "st.account.update_payment": "Обновить способ оплаты",
'st.account.manage_billing': 'Управление оплатой',
'st.display.language.label': 'Язык',
diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.js
index 7e31faca3..3e9f9aee1 100644
--- a/src/chrome/src/ui/locales/th.js
+++ b/src/chrome/src/ui/locales/th.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'ใช้โควตารายวันฟรีของ WebBrain Compass หมดแล้ว',
'sp.subscribe.btn': 'สมัครสมาชิก',
'sp.subscribe.upgrade': 'อัปเกรดเป็น Plus',
+ "sp.subscribe.resume_payment": "อัปเดตวิธีชำระเงินแล้ว — ลองอีกครั้ง",
'sp.subscribe.resume_upgrade': 'อัปเดตแพ็กเกจแล้ว — ลองอีกครั้ง',
'sp.subscribe.resume': 'สมัครแล้ว — ลองอีกครั้ง',
'sp.stopped_by_user': '[ผู้ใช้หยุด]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'การเรียกเก็บเงิน รายละเอียดบัตร อีเมล และการยกเลิก จัดการโดย Stripe สำหรับโปรไฟล์เบราว์เซอร์นี้',
'st.account.billing_preparing': 'กำลังเตรียมลิงก์การเรียกเก็บเงินของ Stripe สำหรับโปรไฟล์เบราว์เซอร์นี้',
+ "st.account.payment_failed": "ไม่สามารถชำระค่าสมัครสมาชิกได้ โปรดอัปเดตวิธีชำระเงินเพื่อกลับมาใช้แพ็กเกจแบบชำระเงิน",
+ "st.account.update_payment": "อัปเดตวิธีชำระเงิน",
'st.account.manage_billing': 'จัดการการเรียกเก็บเงิน',
'st.display.language.label': 'ภาษา',
diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.js
index 97a0e28ef..bf0b0a17c 100644
--- a/src/chrome/src/ui/locales/tl.js
+++ b/src/chrome/src/ui/locales/tl.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Naubos na ang libreng pang-araw-araw na alokasyon ng WebBrain Compass.',
'sp.subscribe.btn': 'Mag-subscribe',
'sp.subscribe.upgrade': 'Mag-upgrade sa Plus',
+ "sp.subscribe.resume_payment": "Na-update ang paraan ng pagbabayad — subukan muli",
'sp.subscribe.resume_upgrade': 'Na-update ang plan — subukan muli',
'sp.subscribe.resume': 'Naka-subscribe na — subukan muli',
'sp.stopped_by_user': '[Itinigil ng user]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Ang pagsingil, mga detalye ng card, email, at pagkansela ay pinamamahalaan ng Stripe para sa profile ng browser na ito.',
'st.account.billing_preparing': 'Inihahanda ang link ng pagsingil ng Stripe para sa profile ng browser na ito.',
+ "st.account.payment_failed": "Hindi nakumpleto ang bayad sa iyong subscription. I-update ang paraan ng pagbabayad para maibalik ang iyong bayad na plan.",
+ "st.account.update_payment": "I-update ang paraan ng pagbabayad",
'st.account.manage_billing': 'Pamahalaan ang pagsingil',
'st.display.language.label': 'Wika',
diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.js
index cb6e72dff..dd0974cea 100644
--- a/src/chrome/src/ui/locales/tr.js
+++ b/src/chrome/src/ui/locales/tr.js
@@ -263,6 +263,7 @@ export default {
'sp.subscribe.allowance_used': 'Ücretsiz günlük WebBrain Compass kullanım hakkınız doldu.',
'sp.subscribe.btn': 'Abone ol',
'sp.subscribe.upgrade': 'Plus\'a yükselt',
+ 'sp.subscribe.resume_payment': 'Ödeme yöntemi güncellendi — yeniden dene',
'sp.subscribe.resume_upgrade': 'Plan güncellendi — yeniden dene',
'sp.subscribe.resume': 'Abone oldum — yeniden dene',
'sp.stopped_by_user': '[Kullanıcı durdurdu]',
@@ -363,6 +364,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Faturalandırma, kart bilgileri, e-posta ve iptal işlemleri bu tarayıcı profili için Stripe tarafından yönetilir.',
'st.account.billing_preparing': 'Bu tarayıcı profili için Stripe faturalandırma bağlantısı hazırlanıyor.',
+ 'st.account.payment_failed': 'Abonelik ödemeniz tamamlanamadı. Ücretli planınızı yeniden kullanmak için ödeme yönteminizi güncelleyin.',
+ 'st.account.update_payment': 'Ödeme yöntemini güncelle',
'st.account.manage_billing': 'Faturalandırmayı yönet',
'st.display.language.label': 'Dil',
diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.js
index 0078c60f4..7820b7a7a 100644
--- a/src/chrome/src/ui/locales/uk.js
+++ b/src/chrome/src/ui/locales/uk.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Безкоштовний денний ліміт WebBrain Compass вичерпано.',
'sp.subscribe.btn': 'Оформити підписку',
'sp.subscribe.upgrade': 'Перейти на Plus',
+ "sp.subscribe.resume_payment": "Спосіб оплати оновлено — повторити",
'sp.subscribe.resume_upgrade': 'План оновлено — повторити',
'sp.subscribe.resume': 'Підписку оформлено — повторити',
'sp.stopped_by_user': '[Зупинено користувачем]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Оплата, дані картки, електронна пошта та скасування керуються Stripe для цього профілю браузера.',
'st.account.billing_preparing': 'Підготовка посилання на оплату Stripe для цього профілю браузера.',
+ "st.account.payment_failed": "Не вдалося здійснити оплату підписки. Оновіть спосіб оплати, щоб відновити платний тариф.",
+ "st.account.update_payment": "Оновити спосіб оплати",
'st.account.manage_billing': 'Керування оплатою',
'st.display.language.label': 'Мова',
diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.js
index c0b781d5f..5d861a6de 100644
--- a/src/chrome/src/ui/locales/vi.js
+++ b/src/chrome/src/ui/locales/vi.js
@@ -321,6 +321,7 @@ export default {
'sp.subscribe.allowance_used': "Đã sử dụng hạn mức WebBrain Compass miễn phí hàng ngày.",
'sp.subscribe.btn': "Đăng ký",
'sp.subscribe.upgrade': 'Nâng cấp lên Plus',
+ "sp.subscribe.resume_payment": "Đã cập nhật phương thức thanh toán — thử lại",
'sp.subscribe.resume_upgrade': 'Gói đã được cập nhật — thử lại',
'sp.subscribe.resume': "Tôi đã đăng ký - thử lại",
'sp.stopped_by_user': "[Người dùng đã dừng]",
@@ -599,6 +600,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "Việc thanh toán, chi tiết thẻ, email và việc hủy do Stripe quản lý cho cấu hình trình duyệt này.",
'st.account.billing_preparing': "Đang chuẩn bị liên kết thanh toán Stripe cho cấu hình trình duyệt này.",
+ "st.account.payment_failed": "Không thể hoàn tất thanh toán gói đăng ký. Hãy cập nhật phương thức thanh toán để khôi phục gói trả phí.",
+ "st.account.update_payment": "Cập nhật phương thức thanh toán",
'st.account.manage_billing': "Quản lý thanh toán",
'st.display.language.label': "Ngôn ngữ",
diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.js
index 55be94b55..8b44bdd3c 100644
--- a/src/chrome/src/ui/locales/zh.js
+++ b/src/chrome/src/ui/locales/zh.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': '今日免费的 WebBrain Compass 额度已用完。',
'sp.subscribe.btn': '订阅',
'sp.subscribe.upgrade': '升级到 Plus',
+ "sp.subscribe.resume_payment": "付款方式已更新 — 重试",
'sp.subscribe.resume_upgrade': '套餐已更新 — 重试',
'sp.subscribe.resume': '已订阅 — 重试',
'sp.stopped_by_user': '[用户已停止]',
@@ -326,6 +327,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': '此浏览器配置文件的账单、卡片信息、电子邮件和取消均由 Stripe 管理。',
'st.account.billing_preparing': '正在为此浏览器配置文件准备 Stripe 账单链接。',
+ "st.account.payment_failed": "未能完成订阅付款。请更新付款方式以恢复付费套餐。",
+ "st.account.update_payment": "更新付款方式",
'st.account.manage_billing': '管理账单',
'st.display.language.label': '语言',
diff --git a/src/chrome/src/ui/settings.js b/src/chrome/src/ui/settings.js
index 4812fc8f0..1af1b8cc2 100644
--- a/src/chrome/src/ui/settings.js
+++ b/src/chrome/src/ui/settings.js
@@ -3014,6 +3014,33 @@ async function handleWebgpuDownloadButton(btn) {
}
}
+async function refreshWebbrainPaymentNotice() {
+ const notice = providersContainer.querySelector('.webbrain-payment-notice');
+ const deviceGuid = providersData.webbrain_cloud?.deviceGuid;
+ if (!notice || !deviceGuid) return;
+ try {
+ const response = await fetch('https://api.webbrain.one/v1/billing/status', {
+ headers: { 'X-WebBrain-Device-Id': deviceGuid },
+ cache: 'no-store',
+ credentials: 'omit',
+ signal: AbortSignal.timeout(5000),
+ });
+ if (!response.ok) return;
+ const status = await response.json();
+ if (!notice.isConnected || !['past_due', 'unpaid'].includes(status.subscription_status)) return;
+ const message = document.createElement('p');
+ message.textContent = t('st.account.payment_failed');
+ const link = document.createElement('a');
+ link.href = webbrainAccountUrl(deviceGuid);
+ link.target = '_blank';
+ link.rel = 'noopener noreferrer';
+ link.textContent = t('st.account.update_payment');
+ notice.replaceChildren(message, link);
+ notice.style.cssText = 'margin-top:10px;padding:12px;border-radius:6px;border:1px solid var(--warning,#b7791f);';
+ notice.hidden = false;
+ } catch { /* An unavailable billing check must not interrupt settings. */ }
+}
+
function renderProviders() {
providersContainer.innerHTML = '';
@@ -3616,6 +3643,7 @@ function renderProviders() {
${subscriptionGuide}
${fieldsHTML}
${providerNote}
+ ${id === 'webbrain_cloud' ? '<div class="webbrain-payment-notice" role="status" hidden></div>' : ''}
${ollamaWarning}
${compatibilitySettings}
<div class="btn-row">
@@ -3647,6 +3675,7 @@ function renderProviders() {
providersContainer.appendChild(empty);
}
+ refreshWebbrainPaymentNotice();
restoreProviderApiKeyWarnings();
document.querySelectorAll('.btn-save').forEach(btn => {
diff --git a/src/chrome/src/ui/sidepanel.js b/src/chrome/src/ui/sidepanel.js
index de7f11802..b974dad3f 100644
--- a/src/chrome/src/ui/sidepanel.js
+++ b/src/chrome/src/ui/sidepanel.js
@@ -11330,7 +11330,7 @@ function clearTransientAssistantTextForToolCall() {
// WebBrain Compass returns a 402 with one trailing billing action. Keep the
// matcher narrow so ordinary subscription text is not converted into billing UI.
-const SUBSCRIBE_ERROR_RE = /(Subscribe for more usage|Upgrade to WebBrain Plus):\s*(https?:\/\/\S+)/i;
+const SUBSCRIBE_ERROR_RE = /(Subscribe for more usage|Upgrade to WebBrain Plus|Update payment method):\s*(https?:\/\/\S+)/i;
const COST_ALLOWANCE_ERROR_RE = /Cloud cost allowance reached:\s*(this session|total cloud\/router usage)\s+is\s+\$[\d.]+\s+against\s+the\s+\$([\d.]+)\s+limit\./i;
const COST_ALLOWANCE_BUMP_USD = 10;
@@ -11409,7 +11409,7 @@ function parseSubscribeError(content) {
// Strip trailing punctuation that markdown/markup might have appended.
const url = m[2].replace(/[)\].,"'>]+$/, '');
const message = content.slice(0, m.index).replace(/\s+$/, '').trim();
- return { url, message, action: /^Upgrade/i.test(m[1]) ? 'upgrade' : 'subscribe' };
+ return { url, message, action: /^Update payment/i.test(m[1]) ? 'payment' : (/^Upgrade/i.test(m[1]) ? 'upgrade' : 'subscribe') };
}
function openSubscribeUrl(url) {
@@ -11442,6 +11442,7 @@ function renderSubscribeError(textEl, content, resumeMode = '') {
btn.type = 'button';
btn.className = 'subscribe-btn';
btn.textContent = t(parsed.action === 'upgrade' ? 'sp.subscribe.upgrade' : 'sp.subscribe.btn');
+ if (parsed.action === 'payment') btn.textContent = t('st.account.update_payment');
if (parsed.action === 'upgrade') btn.classList.add('subscribe-upgrade-btn');
btn.dataset.subscribeUrl = parsed.url;
btn.dataset.bound = 'true';
@@ -11452,6 +11453,7 @@ function renderSubscribeError(textEl, content, resumeMode = '') {
resumeBtn.type = 'button';
resumeBtn.className = 'subscribe-resume-btn';
resumeBtn.textContent = t(parsed.action === 'upgrade' ? 'sp.subscribe.resume_upgrade' : 'sp.subscribe.resume');
+ if (parsed.action === 'payment') resumeBtn.textContent = t('sp.subscribe.resume_payment');
resumeBtn.dataset.resumeMode = ['ask', 'act', 'dev'].includes(resumeMode)
? resumeMode
: (textEl.closest('.message.assistant')?.dataset.runMode || agentMode);
diff --git a/src/firefox/src/providers/openai.js b/src/firefox/src/providers/openai.js
index 85cd1427b..5ce162737 100644
--- a/src/firefox/src/providers/openai.js
+++ b/src/firefox/src/providers/openai.js
@@ -333,7 +333,10 @@ export class OpenAICompatibleProvider extends BaseLLMProvider {
let message = 'Daily free WebBrain Compass allowance used.';
try {
const parsed = JSON.parse(body || '{}');
- if (parsed.upgrade_url) {
+ if (parsed.error?.code === 'webbrain_cloud_payment_failed' && parsed.manage_billing_url) {
+ actionUrl = parsed.manage_billing_url;
+ actionLabel = 'Update payment method';
+ } else if (parsed.upgrade_url) {
actionUrl = parsed.upgrade_url;
actionLabel = 'Upgrade to WebBrain Plus';
} else if (parsed.subscribe_url) {
diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.js
index 8d80ef303..e17255c0d 100644
--- a/src/firefox/src/ui/locales/ar.js
+++ b/src/firefox/src/ui/locales/ar.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'تم استخدام الحصة اليومية المجانية من WebBrain Compass.',
'sp.subscribe.btn': 'اشترك',
'sp.subscribe.upgrade': 'الترقية إلى Plus',
+ "sp.subscribe.resume_payment": "تم تحديث طريقة الدفع — أعد المحاولة",
'sp.subscribe.resume_upgrade': 'تم تحديث الخطة — أعد المحاولة',
'sp.subscribe.resume': 'اشتركت — أعد المحاولة',
'sp.stopped_by_user': '[أوقفه المستخدم]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'تتم إدارة الفوترة وبيانات البطاقة والبريد الإلكتروني والإلغاء بواسطة Stripe لملف المتصفح هذا.',
'st.account.billing_preparing': 'يتم تجهيز رابط الفوترة عبر Stripe لملف المتصفح هذا.',
+ "st.account.payment_failed": "تعذر إتمام دفعة اشتراكك. حدّث طريقة الدفع لاستعادة خطتك المدفوعة.",
+ "st.account.update_payment": "تحديث طريقة الدفع",
'st.account.manage_billing': 'إدارة الفوترة',
'st.display.language.label': 'اللغة',
diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.js
index 89d65a4fc..e615528b6 100644
--- a/src/firefox/src/ui/locales/bn.js
+++ b/src/firefox/src/ui/locales/bn.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': "দৈনিক বিনামূল্যের WebBrain Compass ভাতা ব্যবহার করা হয়েছে।",
'sp.subscribe.btn': "সদস্যতা",
'sp.subscribe.upgrade': 'Plus-এ আপগ্রেড করুন',
+ "sp.subscribe.resume_payment": "পেমেন্ট পদ্ধতি আপডেট হয়েছে — আবার চেষ্টা করুন",
'sp.subscribe.resume_upgrade': 'প্ল্যান আপডেট হয়েছে — আবার চেষ্টা করুন',
'sp.subscribe.resume': "আমি সাবস্ক্রাইব করেছি — আবার চেষ্টা করুন",
'sp.stopped_by_user': "[ব্যবহারকারীর দ্বারা থামানো]",
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "এই ব্রাউজার প্রোফাইলের জন্য বিলিং, কার্ডের বিবরণ, ইমেল এবং বাতিলকরণ Stripe দ্বারা পরিচালিত হয়।",
'st.account.billing_preparing': "এই ব্রাউজার প্রোফাইলের জন্য Stripe বিলিং লিঙ্ক প্রস্তুত করা হচ্ছে।",
+ "st.account.payment_failed": "আপনার সদস্যতার পেমেন্ট সম্পন্ন হয়নি। পেইড প্ল্যান ফিরে পেতে পেমেন্ট পদ্ধতি আপডেট করুন।",
+ "st.account.update_payment": "পেমেন্ট পদ্ধতি আপডেট করুন",
'st.account.manage_billing': "বিলিং পরিচালনা করুন",
'st.display.language.label': "ভাষা",
diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.js
index 8e25e95d4..8c9cd98d0 100644
--- a/src/firefox/src/ui/locales/de.js
+++ b/src/firefox/src/ui/locales/de.js
@@ -329,6 +329,7 @@ export default {
'sp.subscribe.allowance_used': 'Tägliches kostenloses WebBrain Compass-Kontingent aufgebraucht.',
'sp.subscribe.btn': 'Abonnieren',
'sp.subscribe.upgrade': 'Auf Plus upgraden',
+ "sp.subscribe.resume_payment": "Zahlungsmethode aktualisiert — erneut versuchen",
'sp.subscribe.resume_upgrade': 'Tarif aktualisiert — erneut versuchen',
'sp.subscribe.resume': 'Ich habe abonniert — erneut versuchen',
'sp.stopped_by_user': '[Vom Benutzer gestoppt]',
@@ -592,6 +593,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Abrechnung, Karteninformationen, E-Mail und Kündigung werden von Stripe für dieses Browser-Profil verwaltet.',
'st.account.billing_preparing': 'Stripe-Abrechnungslink für dieses Browser-Profil wird vorbereitet.',
+ "st.account.payment_failed": "Deine Abonnementzahlung konnte nicht abgeschlossen werden. Aktualisiere deine Zahlungsmethode, um deinen kostenpflichtigen Tarif wieder zu nutzen.",
+ "st.account.update_payment": "Zahlungsmethode aktualisieren",
'st.account.manage_billing': 'Abrechnung verwalten',
'st.display.language.label': 'Sprache',
'st.display.language.desc': 'Oberflächensprache des WebBrain-Plugins.',
diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.js
index b8bf93c77..218922c44 100644
--- a/src/firefox/src/ui/locales/en.js
+++ b/src/firefox/src/ui/locales/en.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': 'Daily free WebBrain Compass allowance used.',
'sp.subscribe.btn': 'Subscribe',
'sp.subscribe.upgrade': 'Upgrade to Plus',
+ 'sp.subscribe.resume_payment': 'Payment method updated — retry',
'sp.subscribe.resume_upgrade': 'Plan updated — retry',
'sp.subscribe.resume': 'I’ve subscribed — retry',
'sp.stopped_by_user': '[Stopped by user]',
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Billing, card details, email, and cancellation are managed by Stripe for this browser profile.',
'st.account.billing_preparing': 'Preparing the Stripe billing link for this browser profile.',
+ 'st.account.payment_failed': 'Your subscription payment could not be completed. Update your payment method to restore your paid plan.',
+ 'st.account.update_payment': 'Update payment method',
'st.account.manage_billing': 'Manage billing',
'st.display.language.label': 'Language',
diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.js
index 336cfd20f..b324a38a6 100644
--- a/src/firefox/src/ui/locales/es.js
+++ b/src/firefox/src/ui/locales/es.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Se agotó la asignación diaria gratuita de WebBrain Compass.',
'sp.subscribe.btn': 'Suscribirse',
'sp.subscribe.upgrade': 'Cambiar a Plus',
+ "sp.subscribe.resume_payment": "Método de pago actualizado — reintentar",
'sp.subscribe.resume_upgrade': 'Plan actualizado — reintentar',
'sp.subscribe.resume': 'Ya me suscribí — reintentar',
'sp.stopped_by_user': '[Detenido por el usuario]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'La facturación, los datos de la tarjeta, el correo electrónico y la cancelación los gestiona Stripe para este perfil del navegador.',
'st.account.billing_preparing': 'Preparando el enlace de facturación de Stripe para este perfil del navegador.',
+ "st.account.payment_failed": "No se pudo completar el pago de tu suscripción. Actualiza tu método de pago para recuperar tu plan de pago.",
+ "st.account.update_payment": "Actualizar método de pago",
'st.account.manage_billing': 'Gestionar facturación',
'st.display.language.label': 'Idioma',
diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.js
index 6af89b437..8d4f388ff 100644
--- a/src/firefox/src/ui/locales/fa.js
+++ b/src/firefox/src/ui/locales/fa.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': "سهمیه رایگان روزانه WebBrain Compass استفاده شد.",
'sp.subscribe.btn': "مشترک شوید",
'sp.subscribe.upgrade': 'ارتقا به Plus',
+ "sp.subscribe.resume_payment": "روش پرداخت به‌روز شد — تلاش دوباره",
'sp.subscribe.resume_upgrade': 'طرح به‌روزرسانی شد — تلاش دوباره',
'sp.subscribe.resume': "مشترک شدم - دوباره امتحان کنید",
'sp.stopped_by_user': "[توقف کاربر]",
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "صورت‌حساب، جزئیات کارت، ایمیل، و لغو توسط Stripe برای نمایه این مرورگر مدیریت می‌شود.",
'st.account.billing_preparing': "در حال آماده سازی پیوند صورتحساب Stripe برای این نمایه مرورگر.",
+ "st.account.payment_failed": "پرداخت اشتراک شما انجام نشد. برای بازگرداندن طرح پولی، روش پرداخت خود را به‌روز کنید.",
+ "st.account.update_payment": "به‌روزرسانی روش پرداخت",
'st.account.manage_billing': "مدیریت صورتحساب",
'st.display.language.label': "زبان",
diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.js
index 5a405ae94..92929cf1c 100644
--- a/src/firefox/src/ui/locales/fr.js
+++ b/src/firefox/src/ui/locales/fr.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Quota quotidien gratuit de WebBrain Compass épuisé.',
'sp.subscribe.btn': 'S’abonner',
'sp.subscribe.upgrade': 'Passer à Plus',
+ "sp.subscribe.resume_payment": "Moyen de paiement mis à jour — réessayer",
'sp.subscribe.resume_upgrade': 'Forfait mis à jour — réessayer',
'sp.subscribe.resume': 'Abonnement effectué — réessayer',
'sp.stopped_by_user': '[Arrêté par l\'utilisateur]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'La facturation, les informations de carte, l\'e-mail et la résiliation sont gérés par Stripe pour ce profil de navigateur.',
'st.account.billing_preparing': 'Préparation du lien de facturation Stripe pour ce profil de navigateur.',
+ "st.account.payment_failed": "Le paiement de votre abonnement n’a pas pu être effectué. Mettez à jour votre moyen de paiement pour retrouver votre offre payante.",
+ "st.account.update_payment": "Mettre à jour le moyen de paiement",
'st.account.manage_billing': 'Gérer la facturation',
'st.display.language.label': 'Langue',
diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.js
index b99de1738..8dabbecd2 100644
--- a/src/firefox/src/ui/locales/he.js
+++ b/src/firefox/src/ui/locales/he.js
@@ -316,6 +316,7 @@ export default {
"sp.subscribe.allowance_used": "ההקצבה היומית החינמית של WebBrain Compass נוצלה.",
"sp.subscribe.btn": "הירשם",
'sp.subscribe.upgrade': 'שדרוג ל-Plus',
+ "sp.subscribe.resume_payment": "אמצעי התשלום עודכן — נסו שוב",
'sp.subscribe.resume_upgrade': 'התוכנית עודכנה — נסו שוב',
"sp.subscribe.resume": "נרשמתי — נסה שוב",
"sp.stopped_by_user": "[נעצר על ידי משתמש]",
@@ -576,6 +577,8 @@ export default {
"st.account.provider_name": "WebBrain Compass",
"st.account.billing_managed": "חיוב, פרטי כרטיס, אימייל וביטול מנוהלים על ידי Stripe עבור פרופיל דפדפן זה.",
"st.account.billing_preparing": "הכנת הקישור לחיוב Stripe עבור פרופיל דפדפן זה.",
+ "st.account.payment_failed": "לא ניתן היה להשלים את התשלום עבור המינוי. עדכנו את אמצעי התשלום כדי לשחזר את התוכנית בתשלום.",
+ "st.account.update_payment": "עדכון אמצעי התשלום",
"st.account.manage_billing": "ניהול חיוב",
"st.display.language.label": "שפה",
"st.display.language.desc": "שפת הממשק של תוסף WebBrain.",
diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.js
index 3ce6399f5..280c75fe0 100644
--- a/src/firefox/src/ui/locales/hi.js
+++ b/src/firefox/src/ui/locales/hi.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': "दैनिक निःशुल्क WebBrain Compass भत्ता उपयोग किया गया।",
'sp.subscribe.btn': "सदस्यता लें",
'sp.subscribe.upgrade': 'Plus में अपग्रेड करें',
+ "sp.subscribe.resume_payment": "भुगतान विधि अपडेट हो गई — फिर कोशिश करें",
'sp.subscribe.resume_upgrade': 'प्लान अपडेट हो गया — फिर कोशिश करें',
'sp.subscribe.resume': "मैंने सदस्यता ले ली है - पुनः प्रयास करें",
'sp.stopped_by_user': "[उपयोगकर्ता द्वारा रोका गया]",
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "इस ब्राउज़र प्रोफ़ाइल के लिए बिलिंग, कार्ड विवरण, ईमेल और रद्दीकरण Stripe द्वारा प्रबंधित किया जाता है।",
'st.account.billing_preparing': "इस ब्राउज़र प्रोफ़ाइल के लिए Stripe बिलिंग लिंक तैयार किया जा रहा है।",
+ "st.account.payment_failed": "आपकी सदस्यता का भुगतान पूरा नहीं हो सका। अपना सशुल्क प्लान बहाल करने के लिए भुगतान विधि अपडेट करें।",
+ "st.account.update_payment": "भुगतान विधि अपडेट करें",
'st.account.manage_billing': "बिलिंग प्रबंधित करें",
'st.display.language.label': "भाषा",
diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.js
index 46fbae77c..bf21d7f51 100644
--- a/src/firefox/src/ui/locales/id.js
+++ b/src/firefox/src/ui/locales/id.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Kuota harian gratis WebBrain Compass telah habis.',
'sp.subscribe.btn': 'Berlangganan',
'sp.subscribe.upgrade': 'Upgrade ke Plus',
+ "sp.subscribe.resume_payment": "Metode pembayaran diperbarui — coba lagi",
'sp.subscribe.resume_upgrade': 'Paket diperbarui — coba lagi',
'sp.subscribe.resume': 'Sudah berlangganan — coba lagi',
'sp.stopped_by_user': '[Dihentikan oleh pengguna]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Penagihan, detail kartu, email, dan pembatalan dikelola oleh Stripe untuk profil browser ini.',
'st.account.billing_preparing': 'Menyiapkan tautan penagihan Stripe untuk profil browser ini.',
+ "st.account.payment_failed": "Pembayaran langganan Anda belum berhasil. Perbarui metode pembayaran untuk memulihkan paket berbayar Anda.",
+ "st.account.update_payment": "Perbarui metode pembayaran",
'st.account.manage_billing': 'Kelola penagihan',
'st.display.language.label': 'Bahasa',
diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.js
index 8b1f33691..cf7a1f206 100644
--- a/src/firefox/src/ui/locales/ja.js
+++ b/src/firefox/src/ui/locales/ja.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'WebBrain Compass の無料の1日あたりの利用枠を使い切りました。',
'sp.subscribe.btn': '購読する',
'sp.subscribe.upgrade': 'Plus にアップグレード',
+ "sp.subscribe.resume_payment": "支払い方法を更新しました — 再試行",
'sp.subscribe.resume_upgrade': 'プランを更新しました — 再試行',
'sp.subscribe.resume': '購読しました — 再試行',
'sp.stopped_by_user': '[ユーザーが停止]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'このブラウザープロファイルの請求、カード情報、メール、解約は Stripe が管理します。',
'st.account.billing_preparing': 'このブラウザープロファイルの Stripe 請求リンクを準備しています。',
+ "st.account.payment_failed": "サブスクリプションの支払いを完了できませんでした。有料プランを再開するには、支払い方法を更新してください。",
+ "st.account.update_payment": "支払い方法を更新",
'st.account.manage_billing': '請求を管理',
'st.display.language.label': '言語',
diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.js
index 0686e9a0d..41bbd2f35 100644
--- a/src/firefox/src/ui/locales/ko.js
+++ b/src/firefox/src/ui/locales/ko.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'WebBrain Compass의 무료 일일 사용량을 모두 사용했습니다.',
'sp.subscribe.btn': '구독하기',
'sp.subscribe.upgrade': 'Plus로 업그레이드',
+ "sp.subscribe.resume_payment": "결제 수단 업데이트 완료 — 다시 시도",
'sp.subscribe.resume_upgrade': '요금제가 업데이트되었습니다 — 다시 시도',
'sp.subscribe.resume': '구독했습니다 — 다시 시도',
'sp.stopped_by_user': '[사용자가 중지함]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': '이 브라우저 프로필의 청구, 카드 정보, 이메일 및 해지는 Stripe에서 관리합니다.',
'st.account.billing_preparing': '이 브라우저 프로필의 Stripe 청구 링크를 준비하는 중입니다.',
+ "st.account.payment_failed": "구독 결제를 완료하지 못했습니다. 유료 요금제를 다시 사용하려면 결제 수단을 업데이트하세요.",
+ "st.account.update_payment": "결제 수단 업데이트",
'st.account.manage_billing': '청구 관리',
'st.display.language.label': '언어',
diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.js
index 63e409a77..a9d77d164 100644
--- a/src/firefox/src/ui/locales/ms.js
+++ b/src/firefox/src/ui/locales/ms.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Peruntukan harian percuma WebBrain Compass telah digunakan.',
'sp.subscribe.btn': 'Langgan',
'sp.subscribe.upgrade': 'Naik taraf kepada Plus',
+ "sp.subscribe.resume_payment": "Kaedah pembayaran dikemas kini — cuba lagi",
'sp.subscribe.resume_upgrade': 'Pelan dikemas kini — cuba lagi',
'sp.subscribe.resume': 'Saya sudah melanggan — cuba lagi',
'sp.stopped_by_user': '[Dihentikan oleh pengguna]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Pengebilan, butiran kad, e-mel dan pembatalan diuruskan oleh Stripe untuk profil pelayar ini.',
'st.account.billing_preparing': 'Menyediakan pautan pengebilan Stripe untuk profil pelayar ini.',
+ "st.account.payment_failed": "Pembayaran langganan anda tidak dapat diselesaikan. Kemas kini kaedah pembayaran untuk memulihkan pelan berbayar anda.",
+ "st.account.update_payment": "Kemas kini kaedah pembayaran",
'st.account.manage_billing': 'Urus pengebilan',
'st.display.language.label': 'Bahasa',
diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.js
index 2780f68a9..bf07d2f66 100644
--- a/src/firefox/src/ui/locales/nl.js
+++ b/src/firefox/src/ui/locales/nl.js
@@ -312,6 +312,7 @@ export default {
'sp.subscribe.allowance_used': 'Dagelijkse gratis WebBrain Compass-tegoed gebruikt.',
'sp.subscribe.btn': 'Abonneren',
'sp.subscribe.upgrade': 'Upgraden naar Plus',
+ "sp.subscribe.resume_payment": "Betaalmethode bijgewerkt — opnieuw proberen",
'sp.subscribe.resume_upgrade': 'Abonnement bijgewerkt — opnieuw proberen',
'sp.subscribe.resume': 'Ik heb geabonneerd — opnieuw proberen',
'sp.stopped_by_user': '[Gestopt door gebruiker]',
@@ -574,6 +575,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Facturering, kaartgegevens, e-mail en annulering worden beheerd door Stripe...',
'st.account.billing_preparing': 'Stripe-factureringslink voorbereiden...',
+ "st.account.payment_failed": "Je abonnementsbetaling kon niet worden voltooid. Werk je betaalmethode bij om je betaalde abonnement te herstellen.",
+ "st.account.update_payment": "Betaalmethode bijwerken",
'st.account.manage_billing': 'Facturering beheren',
'st.display.language.label': 'Taal',
'st.display.language.desc': 'Interfacetaal voor de WebBrain-plug-in.',
diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.js
index 8fae39226..9f2f98e13 100644
--- a/src/firefox/src/ui/locales/pl.js
+++ b/src/firefox/src/ui/locales/pl.js
@@ -258,6 +258,7 @@ export default {
'sp.subscribe.allowance_used': 'Wykorzystano dzienny darmowy limit WebBrain Compass.',
'sp.subscribe.btn': 'Subskrybuj',
'sp.subscribe.upgrade': 'Przejdź na Plus',
+ "sp.subscribe.resume_payment": "Metoda płatności zaktualizowana — spróbuj ponownie",
'sp.subscribe.resume_upgrade': 'Plan zaktualizowany — spróbuj ponownie',
'sp.subscribe.resume': 'Subskrypcja gotowa — spróbuj ponownie',
'sp.stopped_by_user': '[Zatrzymane przez użytkownika]',
@@ -449,6 +450,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Rozliczenia, dane karty, e-mail i anulowanie są zarządzane przez Stripe dla tego profilu przeglądarki.',
'st.account.billing_preparing': 'Przygotowywanie linku rozliczeniowego Stripe dla tego profilu przeglądarki.',
+ "st.account.payment_failed": "Nie udało się zrealizować płatności za subskrypcję. Zaktualizuj metodę płatności, aby przywrócić płatny plan.",
+ "st.account.update_payment": "Zaktualizuj metodę płatności",
'st.account.manage_billing': 'Zarządzaj rozliczeniami',
'st.display.language.label': 'Język',
'st.display.language.desc': 'Język interfejsu wtyczki WebBrain.',
diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.js
index 928f405fa..d6a669f2d 100644
--- a/src/firefox/src/ui/locales/pt.js
+++ b/src/firefox/src/ui/locales/pt.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': "Limite diário gratuito do WebBrain Compass utilizado.",
'sp.subscribe.btn': "Inscrever-se",
'sp.subscribe.upgrade': 'Fazer upgrade para o Plus',
+ "sp.subscribe.resume_payment": "Método de pagamento atualizado — tentar novamente",
'sp.subscribe.resume_upgrade': 'Plano atualizado — tentar novamente',
'sp.subscribe.resume': "Eu me inscrevi – tente novamente",
'sp.stopped_by_user': "[Interrompido pelo usuário]",
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "Faturamento, detalhes do cartão, e-mail e cancelamento são gerenciados por Stripe para este perfil de navegador.",
'st.account.billing_preparing': "Preparando o link de cobrança Stripe para este perfil de navegador.",
+ "st.account.payment_failed": "Não foi possível concluir o pagamento da sua assinatura. Atualize o método de pagamento para recuperar seu plano pago.",
+ "st.account.update_payment": "Atualizar método de pagamento",
'st.account.manage_billing': "Gerenciar faturamento",
'st.display.language.label': "Idioma",
diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.js
index 71dcc17cc..07c72a7fb 100644
--- a/src/firefox/src/ui/locales/ru.js
+++ b/src/firefox/src/ui/locales/ru.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Бесплатный дневной лимит WebBrain Compass исчерпан.',
'sp.subscribe.btn': 'Оформить подписку',
'sp.subscribe.upgrade': 'Перейти на Plus',
+ "sp.subscribe.resume_payment": "Способ оплаты обновлён — повторить",
'sp.subscribe.resume_upgrade': 'План обновлён — повторить',
'sp.subscribe.resume': 'Подписка оформлена — повторить',
'sp.stopped_by_user': '[Остановлено пользователем]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Оплата, данные карты, электронная почта и отмена управляются Stripe для этого профиля браузера.',
'st.account.billing_preparing': 'Подготовка ссылки на оплату Stripe для этого профиля браузера.',
+ "st.account.payment_failed": "Не удалось провести оплату подписки. Обновите способ оплаты, чтобы восстановить платный тариф.",
+ "st.account.update_payment": "Обновить способ оплаты",
'st.account.manage_billing': 'Управление оплатой',
'st.display.language.label': 'Язык',
diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.js
index 967ff2334..f3079c9d6 100644
--- a/src/firefox/src/ui/locales/th.js
+++ b/src/firefox/src/ui/locales/th.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'ใช้โควตารายวันฟรีของ WebBrain Compass หมดแล้ว',
'sp.subscribe.btn': 'สมัครสมาชิก',
'sp.subscribe.upgrade': 'อัปเกรดเป็น Plus',
+ "sp.subscribe.resume_payment": "อัปเดตวิธีชำระเงินแล้ว — ลองอีกครั้ง",
'sp.subscribe.resume_upgrade': 'อัปเดตแพ็กเกจแล้ว — ลองอีกครั้ง',
'sp.subscribe.resume': 'สมัครแล้ว — ลองอีกครั้ง',
'sp.stopped_by_user': '[ผู้ใช้หยุด]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'การเรียกเก็บเงิน รายละเอียดบัตร อีเมล และการยกเลิก จัดการโดย Stripe สำหรับโปรไฟล์เบราว์เซอร์นี้',
'st.account.billing_preparing': 'กำลังเตรียมลิงก์การเรียกเก็บเงินของ Stripe สำหรับโปรไฟล์เบราว์เซอร์นี้',
+ "st.account.payment_failed": "ไม่สามารถชำระค่าสมัครสมาชิกได้ โปรดอัปเดตวิธีชำระเงินเพื่อกลับมาใช้แพ็กเกจแบบชำระเงิน",
+ "st.account.update_payment": "อัปเดตวิธีชำระเงิน",
'st.account.manage_billing': 'จัดการการเรียกเก็บเงิน',
'st.display.language.label': 'ภาษา',
diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.js
index 9c8b3afd6..d87bf4794 100644
--- a/src/firefox/src/ui/locales/tl.js
+++ b/src/firefox/src/ui/locales/tl.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Naubos na ang libreng pang-araw-araw na alokasyon ng WebBrain Compass.',
'sp.subscribe.btn': 'Mag-subscribe',
'sp.subscribe.upgrade': 'Mag-upgrade sa Plus',
+ "sp.subscribe.resume_payment": "Na-update ang paraan ng pagbabayad — subukan muli",
'sp.subscribe.resume_upgrade': 'Na-update ang plan — subukan muli',
'sp.subscribe.resume': 'Naka-subscribe na — subukan muli',
'sp.stopped_by_user': '[Itinigil ng user]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Ang pagsingil, mga detalye ng card, email, at pagkansela ay pinamamahalaan ng Stripe para sa profile ng browser na ito.',
'st.account.billing_preparing': 'Inihahanda ang link ng pagsingil ng Stripe para sa profile ng browser na ito.',
+ "st.account.payment_failed": "Hindi nakumpleto ang bayad sa iyong subscription. I-update ang paraan ng pagbabayad para maibalik ang iyong bayad na plan.",
+ "st.account.update_payment": "I-update ang paraan ng pagbabayad",
'st.account.manage_billing': 'Pamahalaan ang pagsingil',
'st.display.language.label': 'Wika',
diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.js
index 6bad98aae..037f7c3ab 100644
--- a/src/firefox/src/ui/locales/tr.js
+++ b/src/firefox/src/ui/locales/tr.js
@@ -263,6 +263,7 @@ export default {
'sp.subscribe.allowance_used': 'Ücretsiz günlük WebBrain Compass kullanım hakkınız doldu.',
'sp.subscribe.btn': 'Abone ol',
'sp.subscribe.upgrade': 'Plus\'a yükselt',
+ 'sp.subscribe.resume_payment': 'Ödeme yöntemi güncellendi — yeniden dene',
'sp.subscribe.resume_upgrade': 'Plan güncellendi — yeniden dene',
'sp.subscribe.resume': 'Abone oldum — yeniden dene',
'sp.stopped_by_user': '[Kullanıcı durdurdu]',
@@ -355,6 +356,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Faturalandırma, kart bilgileri, e-posta ve iptal işlemleri bu tarayıcı profili için Stripe tarafından yönetilir.',
'st.account.billing_preparing': 'Bu tarayıcı profili için Stripe faturalandırma bağlantısı hazırlanıyor.',
+ 'st.account.payment_failed': 'Abonelik ödemeniz tamamlanamadı. Ücretli planınızı yeniden kullanmak için ödeme yönteminizi güncelleyin.',
+ 'st.account.update_payment': 'Ödeme yöntemini güncelle',
'st.account.manage_billing': 'Faturalandırmayı yönet',
'st.display.language.label': 'Dil',
diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.js
index 9625d76d4..dd4f4866a 100644
--- a/src/firefox/src/ui/locales/uk.js
+++ b/src/firefox/src/ui/locales/uk.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': 'Безкоштовний денний ліміт WebBrain Compass вичерпано.',
'sp.subscribe.btn': 'Оформити підписку',
'sp.subscribe.upgrade': 'Перейти на Plus',
+ "sp.subscribe.resume_payment": "Спосіб оплати оновлено — повторити",
'sp.subscribe.resume_upgrade': 'План оновлено — повторити',
'sp.subscribe.resume': 'Підписку оформлено — повторити',
'sp.stopped_by_user': '[Зупинено користувачем]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': 'Оплата, дані картки, електронна пошта та скасування керуються Stripe для цього профілю браузера.',
'st.account.billing_preparing': 'Підготовка посилання на оплату Stripe для цього профілю браузера.',
+ "st.account.payment_failed": "Не вдалося здійснити оплату підписки. Оновіть спосіб оплати, щоб відновити платний тариф.",
+ "st.account.update_payment": "Оновити спосіб оплати",
'st.account.manage_billing': 'Керування оплатою',
'st.display.language.label': 'Мова',
diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.js
index 3d89df044..a89ab1065 100644
--- a/src/firefox/src/ui/locales/vi.js
+++ b/src/firefox/src/ui/locales/vi.js
@@ -320,6 +320,7 @@ export default {
'sp.subscribe.allowance_used': "Đã sử dụng hạn mức WebBrain Compass miễn phí hàng ngày.",
'sp.subscribe.btn': "Đăng ký",
'sp.subscribe.upgrade': 'Nâng cấp lên Plus',
+ "sp.subscribe.resume_payment": "Đã cập nhật phương thức thanh toán — thử lại",
'sp.subscribe.resume_upgrade': 'Gói đã được cập nhật — thử lại',
'sp.subscribe.resume': "Tôi đã đăng ký - thử lại",
'sp.stopped_by_user': "[Người dùng đã dừng]",
@@ -596,6 +597,8 @@ export default {
'st.account.provider_name': "WebBrain Compass",
'st.account.billing_managed': "Việc thanh toán, chi tiết thẻ, email và việc hủy do Stripe quản lý cho cấu hình trình duyệt này.",
'st.account.billing_preparing': "Đang chuẩn bị liên kết thanh toán Stripe cho cấu hình trình duyệt này.",
+ "st.account.payment_failed": "Không thể hoàn tất thanh toán gói đăng ký. Hãy cập nhật phương thức thanh toán để khôi phục gói trả phí.",
+ "st.account.update_payment": "Cập nhật phương thức thanh toán",
'st.account.manage_billing': "Quản lý thanh toán",
'st.display.language.label': "Ngôn ngữ",
diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.js
index bf5f910be..e5162652b 100644
--- a/src/firefox/src/ui/locales/zh.js
+++ b/src/firefox/src/ui/locales/zh.js
@@ -226,6 +226,7 @@ export default {
'sp.subscribe.allowance_used': '今日免费的 WebBrain Compass 额度已用完。',
'sp.subscribe.btn': '订阅',
'sp.subscribe.upgrade': '升级到 Plus',
+ "sp.subscribe.resume_payment": "付款方式已更新 — 重试",
'sp.subscribe.resume_upgrade': '套餐已更新 — 重试',
'sp.subscribe.resume': '已订阅 — 重试',
'sp.stopped_by_user': '[用户已停止]',
@@ -318,6 +319,8 @@ export default {
'st.account.provider_name': 'WebBrain Compass',
'st.account.billing_managed': '此浏览器配置文件的账单、卡片信息、电子邮件和取消均由 Stripe 管理。',
'st.account.billing_preparing': '正在为此浏览器配置文件准备 Stripe 账单链接。',
+ "st.account.payment_failed": "未能完成订阅付款。请更新付款方式以恢复付费套餐。",
+ "st.account.update_payment": "更新付款方式",
'st.account.manage_billing': '管理账单',
'st.display.language.label': '语言',
diff --git a/src/firefox/src/ui/settings.js b/src/firefox/src/ui/settings.js
index 0de2b605c..d6a0132c7 100644
--- a/src/firefox/src/ui/settings.js
+++ b/src/firefox/src/ui/settings.js
@@ -2416,6 +2416,33 @@ function providerSubscriptionGuideHtml(definitionId) {
</aside>`;
}
+async function refreshWebbrainPaymentNotice() {
+ const notice = providersContainer.querySelector('.webbrain-payment-notice');
+ const deviceGuid = providersData.webbrain_cloud?.deviceGuid;
+ if (!notice || !deviceGuid) return;
+ try {
+ const response = await fetch('https://api.webbrain.one/v1/billing/status', {
+ headers: { 'X-WebBrain-Device-Id': deviceGuid },
+ cache: 'no-store',
+ credentials: 'omit',
+ signal: AbortSignal.timeout(5000),
+ });
+ if (!response.ok) return;
+ const status = await response.json();
+ if (!notice.isConnected || !['past_due', 'unpaid'].includes(status.subscription_status)) return;
+ const message = document.createElement('p');
+ message.textContent = t('st.account.payment_failed');
+ const link = document.createElement('a');
+ link.href = webbrainAccountUrl(deviceGuid);
+ link.target = '_blank';
+ link.rel = 'noopener noreferrer';
+ link.textContent = t('st.account.update_payment');
+ notice.replaceChildren(message, link);
+ notice.style.cssText = 'margin-top:10px;padding:12px;border-radius:6px;border:1px solid var(--warning,#b7791f);';
+ notice.hidden = false;
+ } catch { /* An unavailable billing check must not interrupt settings. */ }
+}
+
function renderProviders() {
providersContainer.innerHTML = '';
@@ -2996,6 +3023,7 @@ function renderProviders() {
${subscriptionGuide}
${fieldsHTML}
${providerNote}
+ ${id === 'webbrain_cloud' ? '<div class="webbrain-payment-notice" role="status" hidden></div>' : ''}
${ollamaWarning}
${compatibilitySettings}
<div class="btn-row">
@@ -3022,6 +3050,7 @@ function renderProviders() {
providersContainer.appendChild(empty);
}
+ refreshWebbrainPaymentNotice();
restoreProviderApiKeyWarnings();
document.querySelectorAll('.btn-save').forEach(btn => {
diff --git a/src/firefox/src/ui/sidepanel.js b/src/firefox/src/ui/sidepanel.js
index 5e61977d7..eacb5a938 100644
--- a/src/firefox/src/ui/sidepanel.js
+++ b/src/firefox/src/ui/sidepanel.js
@@ -10929,7 +10929,7 @@ function clearTransientAssistantTextForToolCall() {
// WebBrain Compass returns a 402 with one trailing billing action. Keep the
// matcher narrow so ordinary subscription text is not converted into billing UI.
-const SUBSCRIBE_ERROR_RE = /(Subscribe for more usage|Upgrade to WebBrain Plus):\s*(https?:\/\/\S+)/i;
+const SUBSCRIBE_ERROR_RE = /(Subscribe for more usage|Upgrade to WebBrain Plus|Update payment method):\s*(https?:\/\/\S+)/i;
const COST_ALLOWANCE_ERROR_RE = /Cloud cost allowance reached:\s*(this session|total cloud\/router usage)\s+is\s+\$[\d.]+\s+against\s+the\s+\$([\d.]+)\s+limit\./i;
const COST_ALLOWANCE_BUMP_USD = 10;
@@ -11008,7 +11008,7 @@ function parseSubscribeError(content) {
// Strip trailing punctuation that markdown/markup might have appended.
const url = m[2].replace(/[)\].,"'>]+$/, '');
const message = content.slice(0, m.index).replace(/\s+$/, '').trim();
- return { url, message, action: /^Upgrade/i.test(m[1]) ? 'upgrade' : 'subscribe' };
+ return { url, message, action: /^Update payment/i.test(m[1]) ? 'payment' : (/^Upgrade/i.test(m[1]) ? 'upgrade' : 'subscribe') };
}
function openSubscribeUrl(url) {
@@ -11041,6 +11041,7 @@ function renderSubscribeError(textEl, content, resumeMode = '') {
btn.type = 'button';
btn.className = 'subscribe-btn';
btn.textContent = t(parsed.action === 'upgrade' ? 'sp.subscribe.upgrade' : 'sp.subscribe.btn');
+ if (parsed.action === 'payment') btn.textContent = t('st.account.update_payment');
if (parsed.action === 'upgrade') btn.classList.add('subscribe-upgrade-btn');
btn.dataset.subscribeUrl = parsed.url;
btn.dataset.bound = 'true';
@@ -11051,6 +11052,7 @@ function renderSubscribeError(textEl, content, resumeMode = '') {
resumeBtn.type = 'button';
resumeBtn.className = 'subscribe-resume-btn';
resumeBtn.textContent = t(parsed.action === 'upgrade' ? 'sp.subscribe.resume_upgrade' : 'sp.subscribe.resume');
+ if (parsed.action === 'payment') resumeBtn.textContent = t('sp.subscribe.resume_payment');
resumeBtn.dataset.resumeMode = ['ask', 'act', 'dev'].includes(resumeMode)
? resumeMode
: (textEl.closest('.message.assistant')?.dataset.runMode || agentMode);
diff --git a/test/billing-payment-notice.mjs b/test/billing-payment-notice.mjs
new file mode 100644
index 000000000..04147abf4
--- /dev/null
+++ b/test/billing-payment-notice.mjs
@@ -0,0 +1,87 @@
+import assert from 'node:assert/strict';
+import fs from 'node:fs';
+import vm from 'node:vm';
+import { fileURLToPath } from 'node:url';
+
+for (const browser of ['chrome', 'firefox']) {
+ const settings = fs.readFileSync(new URL(`../src/${browser}/src/ui/settings.js`, import.meta.url), 'utf8');
+ const source = settings.slice(settings.indexOf('async function refreshWebbrainPaymentNotice()'), settings.indexOf('function renderProviders()'));
+ const en = (await import(new URL(`../src/${browser}/src/ui/locales/en.js`, import.meta.url))).default;
+ const tr = (await import(new URL(`../src/${browser}/src/ui/locales/tr.js`, import.meta.url))).default;
+
+ async function render(status, options = {}) {
+ const notice = { hidden: true, isConnected: true, style: {}, children: [], replaceChildren(...children) { this.children = children; } };
+ const requests = [];
+ const context = vm.createContext({
+ providersContainer: { querySelector: () => notice },
+ providersData: { webbrain_cloud: { deviceGuid: options.deviceGuid ?? 'test-browser', baseUrl: 'https://untrusted.example/v1' } },
+ AbortSignal,
+ document: { createElement: tag => ({ tag }) },
+ t: key => (options.locale === 'tr' ? tr : en)[key],
+ webbrainAccountUrl: device => `https://api.webbrain.one/account?client_reference_id=${encodeURIComponent(device)}`,
+ fetch: async (url, config) => {
+ requests.push({ url, config });
+ if (options.failure) throw new Error('offline');
+ if (options.detached) notice.isConnected = false;
+ return { ok: options.ok !== false, json: async () => ({ subscription_status: status }) };
+ },
+ });
+ vm.runInContext(source, context, { filename: fileURLToPath(new URL(`../src/${browser}/src/ui/settings.js`, import.meta.url)) });
+ await vm.runInContext('refreshWebbrainPaymentNotice()', context);
+ return { notice, requests };
+ }
+
+ for (const status of ['past_due', 'unpaid']) {
+ const { notice, requests } = await render(status);
+ assert.equal(notice.hidden, false, `${browser}: ${status} must show a payment warning`);
+ assert.equal(notice.children[0].textContent, en['st.account.payment_failed']);
+ assert.equal(notice.children[1].textContent, en['st.account.update_payment']);
+ assert.equal(notice.children[1].href, 'https://api.webbrain.one/account?client_reference_id=test-browser');
+ assert.equal(notice.children[1].rel, 'noopener noreferrer');
+ assert.equal(requests[0].url, 'https://api.webbrain.one/v1/billing/status', 'Device identity must only go to the billing service');
+ assert.equal(requests[0].config.headers['X-WebBrain-Device-Id'], 'test-browser');
+ assert.equal(requests[0].config.credentials, 'omit');
+ assert.equal(requests[0].config.cache, 'no-store');
+ }
+ for (const status of ['active', 'trialing', 'canceled', null, '<script>']) {
+ assert.equal((await render(status)).notice.hidden, true, `${browser}: ${status} must not show a payment warning`);
+ }
+ for (const options of [{ failure: true }, { ok: false }, { detached: true }]) {
+ assert.equal((await render('past_due', options)).notice.hidden, true, 'Failed or stale responses must not disrupt settings');
+ }
+ assert.equal((await render('past_due', { deviceGuid: '' })).requests.length, 0, 'No billing request without a device identity');
+ assert.equal((await render('past_due', { locale: 'tr' })).notice.children[1].textContent, 'Ödeme yöntemini güncelle');
+
+ const { OpenAICompatibleProvider: OpenAIProvider } = await import(new URL(`../src/${browser}/src/providers/openai.js`, import.meta.url));
+ const provider = new OpenAIProvider({ providerName: 'webbrain-cloud', deviceGuid: 'test-browser' });
+ const error = provider._formatHttpError(402, JSON.stringify({
+ error: { code: 'webbrain_cloud_payment_failed', message: 'Your payment could not be completed.' },
+ manage_billing_url: 'https://api.webbrain.one/portal?client_reference_id=test-browser',
+ }));
+ assert.match(error, /Update payment method: https:\/\/api.webbrain.one\/portal/);
+ assert.doesNotMatch(error, /Subscribe for more usage|buy.stripe.com/);
+ const panel = fs.readFileSync(new URL(`../src/${browser}/src/ui/sidepanel.js`, import.meta.url), 'utf8');
+ const declaration = panel.slice(panel.indexOf('const SUBSCRIBE_ERROR_RE'), panel.indexOf('\n', panel.indexOf('const SUBSCRIBE_ERROR_RE')));
+ const parser = panel.slice(panel.indexOf('function parseSubscribeError(content)'), panel.indexOf('function openSubscribeUrl'));
+ const parse = vm.runInNewContext(`${declaration}\n${parser}\nparseSubscribeError`);
+ const parsed = parse(error);
+ assert.equal(parsed.action, 'payment');
+ assert.equal(parsed.url, 'https://api.webbrain.one/portal?client_reference_id=test-browser');
+ assert.equal(parse('Just talking about a payment method'), null);
+ const element = () => ({
+ children: [], dataset: {}, classList: { add() {} },
+ replaceChildren(...children) { this.children = children; },
+ appendChild(child) { this.children.push(child); },
+ addEventListener() {}, closest() { return null; },
+ });
+ const cardSource = panel.slice(panel.indexOf('function renderSubscribeError('), panel.indexOf('function renderCostAllowanceError('));
+ const renderCard = vm.runInNewContext(`${cardSource}\nrenderSubscribeError`, {
+ parseSubscribeError: parse, document: { createElement: element }, t: key => en[key],
+ });
+ const card = element();
+ assert.equal(renderCard(card, error, 'ask'), true);
+ assert.equal(card.children[1].children[0].textContent, en['st.account.update_payment']);
+ assert.equal(card.children[1].children[1].textContent, en['sp.subscribe.resume_payment']);
+ assert.equal(card.children[1].children[1].dataset.resumeMode, 'ask');
+}
+console.log('billing-payment-notice ok (Chrome + Firefox)');