feat: update purchase status to pending payment in payment intent and related test

This commit is contained in:
2026-07-16 12:13:48 -03:00
parent b3d06431e5
commit 84c9fa4c9d
2 changed files with 3 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ class TelepagosWebhookTest extends TestCase
$user = User::factory()->create();
$variant = $this->createVariantForTenant('sonder', 10, '50.00');
$purchase = $this->createPendingTransferPurchase($tenant, $user->id, $variant->id, 1, '12345678');
$purchase->update(['status' => Purchase::STATUS_CREATED]);
Http::fake([
'https://api.telepagos.com.ar/v2/auth/token' => Http::response([
@@ -92,6 +93,7 @@ class TelepagosWebhookTest extends TestCase
'dni' => '87654321',
'transfer_payer_dni' => '23456789',
'payment_method' => 'transfer',
'status' => Purchase::STATUS_PENDING_PAYMENT,
]);
}