feat: add customer details fields to Purchase model and request, implement checkout process with cart clearing
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user