feat: add customer details fields to Purchase model and request, implement checkout process with cart clearing

This commit is contained in:
2026-07-03 16:48:31 -03:00
parent 6d066beea3
commit 057e6757dc
8 changed files with 242 additions and 40 deletions

View File

@@ -9,7 +9,11 @@ class TelepagosProvider implements PaymentProviderInterface
{
public function process(array $paymentData, array $credentials): array
{
// TODO: Implementar lógica de comunicación con Telepagos (usando $paymentData['payment_method'])
throw new BadMethodCallException('Método de pago no implementado para Telepagos.');
// Mocked response for development and local testing
return [
'status' => 'approved',
'transaction_id' => 'mock_tp_' . uniqid(),
'payment_method' => $paymentData['payment_method'] ?? 'qr',
];
}
}