Add Paystack prepaid billing and fix sidebar footer spacing.
Deploy Ladill Queue / deploy (push) Successful in 2m27s

Monthly Pro/Enterprise stays on wallet; 6/12/24 month plans checkout via Paystack.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-30 01:55:38 +00:00
co-authored by Cursor
parent 165c7238fe
commit 07998b29b9
7 changed files with 237 additions and 21 deletions
+17
View File
@@ -182,4 +182,21 @@ class QmsProTest extends TestCase
$this->assertSame('enterprise', $settings['plan']);
$this->assertSame(2, $settings['enterprise_billed_branches']);
}
public function test_prepaid_checkout_redirects_to_paystack(): void
{
Http::fake([
'billing.test/plan-checkout' => Http::response([
'checkout_url' => 'https://checkout.paystack.test/pay',
'reference' => 'SAP-QUEUE-TEST',
], 201),
]);
$this->actingAs($this->owner)
->post(route('qms.pro.subscribe-prepaid'), [
'plan' => 'pro',
'months' => 12,
])
->assertRedirect('https://checkout.paystack.test/pay');
}
}