- Implementado servicio backend [PaymentIntentService](cci:2://file:///home/unms/data/ucrm/ucrm/data/plugins/siip-stripe-payment_intents/src/PaymentIntentService.php:8:0-152:1) para manejar interacciones con API de UCRM y Stripe. - Creado frontend moderno y responsivo en HTML/JS dentro de [public.php](cci:7://file:///home/unms/data/ucrm/ucrm/data/plugins/siip-stripe-payment_intents/public.php:0:0-0:0). - Agregada búsqueda con autocompletado para clientes. - Agregada validación para Stripe Customer ID y monto mínimo. - Integrada la creación de Payment Intents de Stripe para fondos tipo `customer_balance`. - Agregada documentación (README.md, CHANGELOG.md) y limpieza de archivos legado.
46 lines
712 B
PHP
46 lines
712 B
PHP
<?php
|
|
|
|
namespace Stripe;
|
|
|
|
use Stripe\Util\CaseInsensitiveArray;
|
|
|
|
/**
|
|
* Class ApiResponse.
|
|
*/
|
|
class ApiResponse
|
|
{
|
|
/**
|
|
* @var null|array|CaseInsensitiveArray
|
|
*/
|
|
public $headers;
|
|
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $body;
|
|
|
|
/**
|
|
* @var null|array
|
|
*/
|
|
public $json;
|
|
|
|
/**
|
|
* @var int
|
|
*/
|
|
public $code;
|
|
|
|
/**
|
|
* @param string $body
|
|
* @param int $code
|
|
* @param null|array|CaseInsensitiveArray $headers
|
|
* @param null|array $json
|
|
*/
|
|
public function __construct($body, $code, $headers, $json)
|
|
{
|
|
$this->body = $body;
|
|
$this->code = $code;
|
|
$this->headers = $headers;
|
|
$this->json = $json;
|
|
}
|
|
}
|