20 lines
567 B
PHP
20 lines
567 B
PHP
<?php
|
|
|
|
namespace App\Domains\Integration\Services\Providers;
|
|
|
|
use App\Domains\Integration\Services\Contracts\PaymentProviderInterface;
|
|
use BadMethodCallException;
|
|
|
|
class TelepagosProvider implements PaymentProviderInterface
|
|
{
|
|
public function process(array $paymentData, array $credentials): array
|
|
{
|
|
// Mocked response for development and local testing
|
|
return [
|
|
'status' => 'approved',
|
|
'transaction_id' => 'mock_tp_' . uniqid(),
|
|
'payment_method' => $paymentData['payment_method'] ?? 'qr',
|
|
];
|
|
}
|
|
}
|