Updated checkout to wait for backend confirmation before advancing, added a “Processing payment…” state with retry/ refresh fallback, and now use Paddle totals/currency for purchase records + confirmation emails (with new email translations).

This commit is contained in:
Codex Agent
2025-12-22 09:06:48 +01:00
parent 41d29eb7d3
commit 84234bfb8e
36 changed files with 1742 additions and 187 deletions

View File

@@ -80,10 +80,15 @@ class PaddleCheckoutControllerTest extends TestCase
$response = $this->postJson(route('paddle.checkout.create'), [
'package_id' => $package->id,
'coupon_code' => 'SAVE15',
'accepted_terms' => true,
'accepted_waiver' => true,
]);
$response->assertOk()
->assertJsonPath('checkout_url', 'https://example.com/checkout/test');
->assertJsonPath('checkout_url', 'https://example.com/checkout/test')
->assertJsonStructure([
'checkout_session_id',
]);
$this->assertDatabaseHas('checkout_sessions', [
'package_id' => $package->id,