// backend/liveTranslate.jsw import { fetch } from 'wix-fetch'; import { getSecret } from 'wix-secrets-backend'; const BACKEND_URL = 'https://api.livetranslate.app'; export async function syncMemberTier(email, planId, planName, status) { const secret = await getSecret('LIVE_TRANSLATE_SYNC_SECRET'); const res = await fetch(`${BACKEND_URL}/api/v1/billing/wix/sync`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Wix-Sync-Secret': secret, }, body: JSON.stringify({ email, plan_id: planId, plan_name: planName, status }), }); if (!res.ok) throw new Error(await res.text()); return res.json(); } export async function getApiKey(email) { const secret = await getSecret('LIVE_TRANSLATE_SYNC_SECRET'); const res = await fetch(`${BACKEND_URL}/api/v1/auth/api-key`, { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Wix-Sync-Secret': secret, }, body: JSON.stringify({ email }), }); if (!res.ok) throw new Error(await res.text()); return res.json(); } --- Step 3: Call from Account Page On your Members Account page code: import { currentMember } from 'wix-members-frontend'; import { orders } from 'wix-pricing-plans.v2'; import { syncMemberTier, getApiKey } from 'backend/liveTranslate.jsw'; $w.onReady(async function () { const member = await currentMember.getMember(); if (!member?.loginEmail) return; // Get active plan const list = await orders.memberListOrders(); const active = list.orders?.find(o => o.status === 'ACTIVE'); // Sync to backend await syncMemberTier( member.loginEmail, active?.planId ?? null, active?.planName ?? null, active?.status ?? null ); // Get API key const { api_key, tier } = await getApiKey(member.loginEmail); // Display (add text elements #tierText and #apiKeyText to your page) $w('#tierText').text = `Plan: ${tier}`; $w('#apiKeyText').text = api_key; });
top of page

YOUR REAL-TIME GLOBAL VOICE

Live Translate bridges global distances with high-fidelity, real-time AI. Experience a world where language is a bridge to connection, not a barrier to understanding.

The Power of Real-Time Connection

Experience translation technology designed for the modern world. Instant, intelligent, and impeccably accurate.

Instant Translation

Translate speech and text with near-zero latency, enabling natural flow in every conversation.

Context-Aware AI

Our AI goes beyond words, understanding idioms and cultural nuances for human-like accuracy.

Cross-Platform Sync

Start a conversation on your phone and finish it on your desktop or wearable effortlessly.

Global Language Hub

Speak freely in over 100 languages with precision support for regional dialects and accents.

bottom of page