feat(pricing): remove all hardcoded prices, fetch live modular plans & standalone services from /api/public/plans
This commit is contained in:
+4
-62
@@ -305,68 +305,10 @@ const PORTFOLIO_DATA = {
|
||||
// "new agency, real results coming soon" state when this is empty.
|
||||
testimonials: [],
|
||||
|
||||
pricingTiers: [
|
||||
{
|
||||
name: "Starter Shield",
|
||||
badge: "Founders Club · bKash",
|
||||
priceBdt: "৳1,999",
|
||||
price: 16,
|
||||
period: "/month",
|
||||
description: "Entry shield for growing BD F-Commerce & E-Commerce shops (15–50 orders/day). Pays for itself by blocking just 6–15 fake COD orders.",
|
||||
color: "emerald",
|
||||
features: [
|
||||
"24/7 Bengali & English AI Inbox (Facebook, Instagram, WhatsApp & Telegram)",
|
||||
"Aura Risk Shield — Live 4-Courier Fake-Order & Return Rate Scanner",
|
||||
"1-Click Multi-Courier Booking (Steadfast, Pathao, RedX & Paperfly)",
|
||||
"Official Meta Cloud API WhatsApp at Direct Meta Rates (0% Markup)",
|
||||
"Customer 360 Auto-COD Track Record Inside Live Chat",
|
||||
"bKash Monthly Billing · Up to 2,000 Active Contacts",
|
||||
"Free 2-Min Fake-Order Audit + 7-Day Zero-Risk Real Trial (৳0)",
|
||||
],
|
||||
cta: "Start 7-Day Free Trial (৳0)",
|
||||
href: "https://auth.auraajenticai.cloud/register",
|
||||
},
|
||||
{
|
||||
name: "Growth Autopilot",
|
||||
badge: "Most Popular",
|
||||
priceBdt: "৳3,499",
|
||||
price: 29,
|
||||
period: "/month",
|
||||
description: "Full revenue engine for scaling brands (50–200 orders/day) to slash COD returns, recover carts, and launch high-ROAS creatives.",
|
||||
color: "cyan",
|
||||
features: [
|
||||
"Everything in Starter Shield + Unlimited Contacts & Conversations",
|
||||
"Revenue Booster — Automated Abandoned Chat, NDR & 28-Day Refill Recovery",
|
||||
"WhatsApp Tier-1 Broadcast Campaigns (94–96% Read Rate)",
|
||||
"Fahi-Vids PRO — 10 AI Bengali Ad Videos, Voiceovers & Thumbnails / month",
|
||||
"WooCommerce & Shopify 2-Way Catalog Sync + Live Meta Pixel Telemetry",
|
||||
"Google Maps Rooftop Geocoding & Automated Zone Delivery Fee Engine",
|
||||
"Priority WhatsApp & Live Engineering Support",
|
||||
],
|
||||
cta: "Start Growth Trial",
|
||||
href: "https://auth.auraajenticai.cloud/register",
|
||||
},
|
||||
{
|
||||
name: "Scale Enterprise",
|
||||
badge: "Full Growth OS",
|
||||
priceBdt: "৳5,999",
|
||||
price: 49,
|
||||
period: "/month",
|
||||
description: "Complete multi-outlet D2C & agency automation suite with Bengali Voice IVR, team RBAC, and Google Enterprise Analytics.",
|
||||
color: "amber",
|
||||
features: [
|
||||
"Everything in Growth Autopilot + Multi-Seat Team Roles (Manager / Agent RBAC)",
|
||||
"Twilio Bengali Voice IVR — Automated Phone Call COD Order Confirmation",
|
||||
"Snehalata Marketplace Priority Listing & AI Virtual Try-On Exposure",
|
||||
"Google Enterprise Suite (Live Verified GA4, GTM & Google Ads Sync)",
|
||||
"Dedicated n8n Custom Automation Pipelines & Webhook Orchestration",
|
||||
"Standalone Aura Courier MCP API Access for Developers & Agencies",
|
||||
"Direct WhatsApp Priority Access to Aura Core Engineers",
|
||||
],
|
||||
cta: "Deploy Scale OS",
|
||||
href: "https://auth.auraajenticai.cloud/register",
|
||||
},
|
||||
],
|
||||
// Dynamic SSOT: Pricing tiers are fetched LIVE at runtime from
|
||||
// https://aura.auraajenticai.cloud/api/public/plans (Master Admin billing_plans table).
|
||||
// NEVER hardcode prices here — edit plans live inside https://aura.auraajenticai.cloud/billing.
|
||||
pricingTiers: [],
|
||||
|
||||
// Empty on purpose -- the old array here was fabricated (fake publish dates predating Aura's own
|
||||
// founding, an invented "18 months of production data" claim, and made-up client numbers matching
|
||||
|
||||
+119
-24
@@ -536,27 +536,82 @@ const PRICING_COLORS = {
|
||||
};
|
||||
|
||||
const PricingPage = () => {
|
||||
const D = PORTFOLIO_DATA;
|
||||
const [plans, setPlans] = React.useState([]);
|
||||
const [standaloneServices, setStandaloneServices] = React.useState([]);
|
||||
const [trialPlan, setTrialPlan] = React.useState(null);
|
||||
const [loading, setLoading] = React.useState(true);
|
||||
const [err, setErr] = React.useState(false);
|
||||
|
||||
React.useEffect(() => {
|
||||
let active = true;
|
||||
fetch(`${DASHBOARD_API}/api/public/plans`, { signal: AbortSignal.timeout(5000) })
|
||||
.then(r => (r.ok ? r.json() : Promise.reject(new Error('HTTP ' + r.status))))
|
||||
.then(data => {
|
||||
if (!active) return;
|
||||
const all = Array.isArray(data?.plans) ? data.plans : [];
|
||||
const tr = all.find(p => p.is_trial || p.id === 'trial') || null;
|
||||
const paid = all.filter(p => !(p.is_trial || p.id === 'trial'));
|
||||
setTrialPlan(tr);
|
||||
setPlans(paid);
|
||||
setStandaloneServices(Array.isArray(data?.standalone_services) ? data.standalone_services : []);
|
||||
setLoading(false);
|
||||
})
|
||||
.catch(() => {
|
||||
if (!active) return;
|
||||
setErr(true);
|
||||
setLoading(false);
|
||||
});
|
||||
return () => { active = false; };
|
||||
}, []);
|
||||
|
||||
const startingBdt = plans.length > 0 ? Math.min(...plans.map(p => Number(p.monthly_price || 0)).filter(n => n > 0)) : null;
|
||||
const trialDays = trialPlan?.trial_days || 7;
|
||||
|
||||
return (
|
||||
<main>
|
||||
<PageHero
|
||||
eyebrow="Transparent Bangladesh & Global SaaS Pricing"
|
||||
title={<>Zero agency markups. <span style={{ fontFamily: "var(--font-serif)", fontStyle: "italic", fontWeight: 400 }}>Start at ৳1,999/mo with 7-day free trial.</span></>}
|
||||
sub="No lock-in to a single courier. Connect Steadfast, Pathao, RedX & Paperfly with live COD Fraud Shield, 24/7 Bengali AI Inbox, and Official Meta Cloud API (0% markup) — payable directly via bKash or card."
|
||||
eyebrow="Live Platform Plans & Subscriptions"
|
||||
title={
|
||||
<>
|
||||
Zero agency markups.{' '}
|
||||
<span style={{ fontFamily: "var(--font-serif)", fontStyle: "italic", fontWeight: 400 }}>
|
||||
{startingBdt ? `Start at ৳${startingBdt.toLocaleString()}/mo with ${trialDays}-day free trial.` : 'Transparent monthly plans synced live.'}
|
||||
</span>
|
||||
</>
|
||||
}
|
||||
sub="No lock-in to a single courier. Connect Steadfast, Pathao, RedX & Paperfly with live COD Fraud Shield, 24/7 Bengali AI Inbox, and Official Meta Cloud API (0% markup) — payable via bKash or card."
|
||||
/>
|
||||
<section style={{ padding: "80px 0 120px" }}>
|
||||
<div className="container">
|
||||
{loading ? (
|
||||
<div style={{ textAlign: "center", padding: "64px 0", color: "var(--text-dim)", fontFamily: "var(--font-mono)", fontSize: 13 }}>
|
||||
Loading live plans from Aura Cloud…
|
||||
</div>
|
||||
) : err || plans.length === 0 ? (
|
||||
<div style={{ textAlign: "center", padding: "56px 24px", background: "var(--bg-card)", border: "1px solid var(--line)", borderRadius: "var(--radius)" }}>
|
||||
<p style={{ margin: "0 0 16px", color: "var(--text-dim)" }}>Live pricing feed is momentarily refreshing. Create your free workspace or view current plans inside the portal.</p>
|
||||
<a href="https://auth.auraajenticai.cloud/register" style={{ padding: "10px 22px", background: "var(--text)", color: "var(--bg)", borderRadius: 10, textDecoration: "none", fontSize: 14, fontWeight: 500 }}>Open Client Portal →</a>
|
||||
</div>
|
||||
) : (
|
||||
<div style={{
|
||||
display: "grid",
|
||||
gridTemplateColumns: "repeat(3, 1fr)",
|
||||
gridTemplateColumns: `repeat(${Math.min(3, plans.length)}, 1fr)`,
|
||||
gap: 24, alignItems: "start",
|
||||
}} className="pricing-grid">
|
||||
{D.pricingTiers.map((tier, i) => {
|
||||
{plans.map((tier, i) => {
|
||||
const c = PRICING_COLORS[tier.color] || PRICING_COLORS.violet;
|
||||
const isPopular = tier.badge === "Most Popular";
|
||||
const isPopular = Boolean(tier.popular || tier.badge === "Most Popular");
|
||||
const bdt = Number(tier.monthly_price || 0);
|
||||
const approxUsd = bdt > 0 ? Math.max(1, Math.round(bdt / 122)) : 0;
|
||||
const feats = Array.isArray(tier.highlights) && tier.highlights.length > 0
|
||||
? tier.highlights
|
||||
: [
|
||||
`${Number(tier.included_messages || 0).toLocaleString()} included AI conversations / month`,
|
||||
tier.overage_rate > 0 ? `Overage ৳${tier.overage_rate}/msg` : 'Predictable flat monthly billing',
|
||||
];
|
||||
return (
|
||||
<div
|
||||
key={i}
|
||||
key={tier.id || i}
|
||||
className="reveal"
|
||||
style={{
|
||||
background: isPopular ? c.bg : "var(--bg-card)",
|
||||
@@ -586,31 +641,39 @@ const PricingPage = () => {
|
||||
</div>
|
||||
|
||||
<div style={{ marginBottom: 28 }}>
|
||||
{tier.priceBdt ? (
|
||||
{bdt > 0 ? (
|
||||
<div>
|
||||
<div style={{ display: "flex", alignItems: "baseline", gap: 6 }}>
|
||||
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>{tier.priceBdt}</span>
|
||||
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>{tier.period}</span>
|
||||
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>
|
||||
{tier.currency === 'USD' ? `$${bdt.toLocaleString()}` : `৳${bdt.toLocaleString()}`}
|
||||
</span>
|
||||
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>/month</span>
|
||||
</div>
|
||||
{tier.price && (
|
||||
<div style={{ fontSize: 12.5, color: "var(--text-faint)", fontFamily: "var(--font-mono)", marginTop: 4 }}>
|
||||
≈ ${tier.price} USD{tier.period} · bKash / Card · 7-Day Free Trial (৳0)
|
||||
{tier.currency !== 'USD' ? `≈ $${approxUsd} USD/mo · ` : ''}bKash / Card · {trialDays}-Day Free Trial (৳0)
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
) : tier.price ? (
|
||||
<div style={{ display: "flex", alignItems: "baseline", gap: 4 }}>
|
||||
<span style={{ fontSize: 13, color: "var(--text-faint)" }}>USD</span>
|
||||
<span style={{ fontSize: 40, fontWeight: 700, letterSpacing: "-0.03em", color: c.text }}>${tier.price.toLocaleString()}</span>
|
||||
<span style={{ fontSize: 13, color: "var(--text-faint)", fontFamily: "var(--font-mono)" }}>{tier.period}</span>
|
||||
</div>
|
||||
) : (
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: c.text }}>Custom Architecture</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{Array.isArray(tier.included_services_detail) && tier.included_services_detail.length > 0 && (
|
||||
<div style={{ display: "flex", flexWrap: "wrap", gap: 6, marginBottom: 18 }}>
|
||||
{tier.included_services_detail.map((svc, si) => (
|
||||
<span key={si} style={{
|
||||
fontSize: 11, fontFamily: "var(--font-mono)",
|
||||
padding: "3px 9px", borderRadius: 999,
|
||||
background: "rgba(255,255,255,0.04)",
|
||||
border: `1px solid ${c.border}`,
|
||||
color: c.text,
|
||||
}}>{svc.name}</span>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ul style={{ margin: "0 0 28px", padding: 0, listStyle: "none", display: "grid", gap: 10 }}>
|
||||
{tier.features.map((f, fi) => (
|
||||
{feats.map((f, fi) => (
|
||||
<li key={fi} style={{ display: "flex", gap: 10, fontSize: 13.5, color: "var(--text-dim)", lineHeight: 1.45 }}>
|
||||
<span style={{ color: c.text, flexShrink: 0, marginTop: 1, fontWeight: 700 }}>✓</span>
|
||||
{f}
|
||||
@@ -619,7 +682,7 @@ const PricingPage = () => {
|
||||
</ul>
|
||||
|
||||
<a
|
||||
href={tier.href}
|
||||
href={tier.href || "https://auth.auraajenticai.cloud/register"}
|
||||
style={{
|
||||
display: "block", textAlign: "center",
|
||||
padding: "12px 24px",
|
||||
@@ -632,11 +695,43 @@ const PricingPage = () => {
|
||||
}}
|
||||
onMouseEnter={e => e.currentTarget.style.opacity = "0.85"}
|
||||
onMouseLeave={e => e.currentTarget.style.opacity = "1"}
|
||||
>{tier.cta} →</a>
|
||||
>{tier.cta || 'Start Free Trial'} →</a>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{standaloneServices.length > 0 && (
|
||||
<div style={{ marginTop: 64 }}>
|
||||
<div style={{ marginBottom: 24 }}>
|
||||
<div style={{ fontSize: 11.5, fontFamily: "var(--font-mono)", textTransform: "uppercase", letterSpacing: "0.08em", color: "var(--accent-2)", marginBottom: 6 }}>
|
||||
Modular Standalone Services
|
||||
</div>
|
||||
<h3 style={{ margin: "0 0 6px", fontSize: 22, fontWeight: 600 }}>Or pick any individual Aura service à la carte</h3>
|
||||
<p style={{ margin: 0, fontSize: 14, color: "var(--text-dim)" }}>Live pricing synchronized directly from Aura Cloud Catalog — bundle any combination or start with a single tool.</p>
|
||||
</div>
|
||||
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fill, minmax(260px, 1fr))", gap: 16 }}>
|
||||
{standaloneServices.map((svc, idx) => (
|
||||
<div key={svc.slug || idx} style={{ background: "var(--bg-card)", border: "1px solid var(--line)", borderRadius: 12, padding: "20px 22px", display: "flex", flexDirection: "column", justifyContent: "space-between", gap: 12 }}>
|
||||
<div>
|
||||
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", gap: 8, marginBottom: 6 }}>
|
||||
<strong style={{ fontSize: 15 }}>{svc.name}</strong>
|
||||
<span style={{ fontSize: 10.5, fontFamily: "var(--font-mono)", color: "var(--text-faint)", textTransform: "uppercase" }}>{svc.category}</span>
|
||||
</div>
|
||||
{svc.description && <p style={{ margin: 0, fontSize: 12.5, color: "var(--text-dim)", lineHeight: 1.5 }}>{svc.description}</p>}
|
||||
</div>
|
||||
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "baseline", paddingTop: 10, borderTop: "1px solid var(--line)" }}>
|
||||
<span style={{ fontSize: 18, fontWeight: 700, color: "#34d399" }}>
|
||||
{svc.monthly_price && svc.monthly_price > 0 ? `৳${Number(svc.monthly_price).toLocaleString()}/mo` : 'Custom / Included'}
|
||||
</span>
|
||||
{svc.trial_days > 0 && <span style={{ fontSize: 11, fontFamily: "var(--font-mono)", color: "var(--text-faint)" }}>{svc.trial_days}d trial</span>}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div style={{
|
||||
marginTop: 64, padding: "32px 40px",
|
||||
@@ -646,7 +741,7 @@ const PricingPage = () => {
|
||||
gap: 24, alignItems: "center",
|
||||
}} className="pricing-cta-row">
|
||||
<div>
|
||||
<h3 style={{ margin: "0 0 6px", fontSize: 18, fontWeight: 500 }}>3-Step Zero-Risk Onboarding: 2-Min Free Fake-Order Audit → 7-Day Trial (৳0) → bKash Lock-in</h3>
|
||||
<h3 style={{ margin: "0 0 6px", fontSize: 18, fontWeight: 500 }}>3-Step Zero-Risk Onboarding: 2-Min Free Fake-Order Audit → {trialDays}-Day Trial (৳0) → bKash Lock-in</h3>
|
||||
<p style={{ margin: 0, fontSize: 14, color: "var(--text-dim)" }}>Send 20 recent customer numbers on WhatsApp (+880 1317-685758) for a free live 4-courier fraud audit, or email hello@auraajenticai.cloud for agency / custom ERP deployment.</p>
|
||||
</div>
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user