feat: add checkout action banner

This commit is contained in:
Codex Agent
2026-01-12 13:35:43 +01:00
parent 749cb04cec
commit 37e20ed32f
6 changed files with 58 additions and 4 deletions

View File

@@ -21,6 +21,9 @@ class TenantCheckoutSessionStatusTest extends TenantTestCase
'package_id' => $package->id,
'status' => CheckoutSession::STATUS_FAILED,
'provider' => CheckoutSession::PROVIDER_PADDLE,
'provider_metadata' => [
'paddle_checkout_url' => 'https://checkout.paddle.test/checkout/123',
],
'status_history' => [
[
'status' => CheckoutSession::STATUS_FAILED,
@@ -37,6 +40,7 @@ class TenantCheckoutSessionStatusTest extends TenantTestCase
$response->assertOk()
->assertJsonPath('status', CheckoutSession::STATUS_FAILED)
->assertJsonPath('reason', 'paddle_failed');
->assertJsonPath('reason', 'paddle_failed')
->assertJsonPath('checkout_url', 'https://checkout.paddle.test/checkout/123');
}
}