Add Paystack prepaid billing and fix sidebar footer spacing.
Deploy Ladill Queue / deploy (push) Successful in 2m27s
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user