Bill Frontdesk Pro and Enterprise per branch.
Deploy Ladill Frontdesk / deploy (push) Successful in 47s

Pro is GHS 990/branch/mo and Enterprise is GHS 1990/branch/mo, with the
Care-style branch selector UI, self-serve Enterprise checkout, and renewal
charges scaled to billed branches.
This commit is contained in:
isaacclad
2026-07-16 00:42:34 +00:00
parent 3bbd1a8ddd
commit bdbf572f19
9 changed files with 295 additions and 61 deletions
+9 -5
View File
@@ -59,11 +59,11 @@ class FrontdeskProTest extends TestCase
->get(route('frontdesk.pro.index'))
->assertOk()
->assertSee('Choose your Frontdesk plan')
->assertSee('GHS 79')
->assertSee('Custom')
->assertSee('Upgrade to Pro')
->assertSee('GHS 990')
->assertSee('/branch/mo')
->assertSee('GHS 1,990')
->assertSee('Enterprise')
->assertSee('Contact sales');
->assertSee('Branches');
}
public function test_sidebar_shows_upgrade_to_pro_on_dashboard(): void
@@ -84,13 +84,16 @@ class FrontdeskProTest extends TestCase
]);
$this->actingAs($this->owner)
->post(route('frontdesk.pro.subscribe'))
->post(route('frontdesk.pro.subscribe'), [
'branches' => 1,
])
->assertRedirect(route('frontdesk.pro.index'))
->assertSessionHas('success');
$settings = $this->organization->fresh()->settings;
$this->assertSame('pro', $settings['plan']);
$this->assertSame('wallet_monthly', $settings['billing_method']);
$this->assertSame(1, (int) ($settings['billed_branches'] ?? 0));
}
public function test_subscribe_prepaid_redirects_to_paystack(): void
@@ -106,6 +109,7 @@ class FrontdeskProTest extends TestCase
->post(route('frontdesk.pro.subscribe-prepaid'), [
'plan' => 'pro',
'months' => 12,
'branches' => 1,
])
->assertRedirect('https://checkout.paystack.com/test');
}