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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user