feat: implement checkout service and payment processing integration

This commit is contained in:
2026-07-03 15:37:26 -03:00
parent ee3be8d550
commit 1d94ff8885
6 changed files with 186 additions and 74 deletions

View File

@@ -0,0 +1,15 @@
<?php
namespace App\Domains\Integration\Services\Contracts;
interface PaymentProviderInterface
{
/**
* Procesa un pago con las credenciales específicas del Tenant.
*
* @param array $paymentData Datos del pago, incluyendo el método (ej. qr, transferencia).
* @param array $credentials Credenciales encriptadas previamente configuradas por el Tenant.
* @return array
*/
public function process(array $paymentData, array $credentials): array;
}