feat: rename payer_dni to transfer_payer_dni across purchase handling and update related tests

This commit is contained in:
2026-07-16 11:45:34 -03:00
parent 379c2bdbeb
commit b3d06431e5
7 changed files with 15 additions and 15 deletions

View File

@@ -54,7 +54,7 @@ class TelepagosWebhookService
$dni = substr($cuit, 2, -1);
$compra = Purchase::where('tenant_codigo', $tenantCodigo)
->where('payer_dni', $dni)
->where('transfer_payer_dni', $dni)
->whereIn('status', [Purchase::STATUS_CREATED, Purchase::STATUS_PENDING_PAYMENT])
->where('payment_method', 'transfer')
->where('total', $amount)