From e1e1cf751ed8b0513e15d5044922f3651828ad7a Mon Sep 17 00:00:00 2001 From: DANYDHSV Date: Wed, 7 Jan 2026 12:07:08 -0600 Subject: [PATCH] =?UTF-8?q?feat:=20A=C3=B1adir=20bot=C3=B3n=20de=20acceso?= =?UTF-8?q?=20r=C3=A1pido=20al=20CRM=20y=20v1.3.2=20-=20Se=20a=C3=B1adi?= =?UTF-8?q?=C3=B3=20el=20bot=C3=B3n=20'Ver=20en=20CRM'=20en=20la=20vista?= =?UTF-8?q?=20de=20detalles=20del=20cliente.=20-=20Se=20implement=C3=B3=20?= =?UTF-8?q?l=C3=B3gica=20din=C3=A1mica=20para=20generar=20el=20enlace=20al?= =?UTF-8?q?=20perfil=20del=20cliente.=20-=20Actualizaci=C3=B3n=20de=20vers?= =?UTF-8?q?i=C3=B3n=20a=201.3.2=20en=20todos=20los=20metadatos=20y=20docum?= =?UTF-8?q?entaci=C3=B3n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ README.md | 4 ++-- data/plugin.log | 10 ++++++++++ manifest.json | 2 +- public.php | 12 ++++++++++++ vendor/composer/installed.php | 4 ++-- 6 files changed, 31 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 688bd1d..6fba538 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.3.2] - 06-01-2026 +### Added +- Botón "Ver en CRM" en la vista de detalles del cliente para acceso rápido a su perfil en UCRM. + ## [1.3.1] - 06-01-2026 ### Fixed - Eliminación de pagos duplicados: Delegación del registro de pagos a la integración nativa de UCRM mediante el ajuste de metadatos (`createdBy => UCRM`). diff --git a/README.md b/README.md index 6ba20e5..7a55b59 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SIIP - Generador de Payment Intents Stripe -![Version](https://img.shields.io/badge/version-1.3.1-blue.svg) +![Version](https://img.shields.io/badge/version-1.3.2-blue.svg) ![UCRM Compliancy](https://img.shields.io/badge/UCRM-v1.0.0%2B-success.svg) ![PHP](https://img.shields.io/badge/PHP-7.4%2B-777bb4.svg) ![License](https://img.shields.io/badge/license-MIT-green.svg) @@ -45,5 +45,5 @@ Para que los pagos se registren automáticamente en UCRM, debe configurar un Web - Si el cliente no tiene un "Stripe Customer ID", no se permitirá generar el pago. --- -**Versión**: 1.3.1 +**Versión**: 1.3.2 **Copyright**: © 2024 SIIP Internet. Todos los derechos reservados. diff --git a/data/plugin.log b/data/plugin.log index 76a4129..8ca57bc 100755 --- a/data/plugin.log +++ b/data/plugin.log @@ -22,3 +22,13 @@ Create Intent Result: {"success":true,"id":"pi_3Sg9DQEFY1WEUtgR1Ye5k6G3","status Create Intent Result: {"success":true,"id":"pi_3Sg9PLEFY1WEUtgR1iAOyHlS","status":"succeeded","amount":600,"currency":"mxn","next_action":null} Create Intent Result: {"success":true,"id":"pi_3Sg9kHEFY1WEUtgR0UDlXu7T","status":"requires_action","amount":250,"currency":"mxn","next_action":{"display_bank_transfer_instructions":{"amount_remaining":25000,"currency":"mxn","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI","clabe":"124180257395215094"},"supported_networks":["spei"],"type":"spei"}],"hosted_instructions_url":"https:\/\/payments.stripe.com\/bank_transfers\/instructions\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9UZFFiajNxbDd6bE9PNmgxOXNXSXZIRzlaaVAzd1pm0100rOmKqech","reference":"779272","type":"mx_bank_transfer"},"type":"display_bank_transfer_instructions"}} Create Intent Result: {"success":true,"id":"pi_3Shc8dEFY1WEUtgR123bgp1n","status":"succeeded","amount":750,"currency":"mxn","next_action":null} +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +Plugin Config Loaded: Server=venus.siip.mx, UCRM Token=35lAi..., Stripe Token=sk_test... +PaymentIntent created: pi_3Sn091EFY1WEUtgR0KJnQmtz Status: requires_action +Create Intent Result: {"success":true,"id":"pi_3Sn091EFY1WEUtgR0KJnQmtz","status":"requires_action","amount":100,"currency":"mxn","next_action":{"display_bank_transfer_instructions":{"amount_remaining":10000,"currency":"mxn","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI","clabe":"124180257395215094"},"supported_networks":["spei"],"type":"spei"}],"hosted_instructions_url":"https:\/\/payments.stripe.com\/bank_transfers\/instructions\/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9Ua1Y5M0lKbUQ1ZG02eUtKZm8xcGpuaHQzeUp4a0Q40100WiqtGS5n","reference":"813721","type":"mx_bank_transfer"},"type":"display_bank_transfer_instructions"}} diff --git a/manifest.json b/manifest.json index 432fdd1..d9d7c57 100755 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "displayName": "SIIP - Generador de Payment Intents Stripe", "description": "Generador manual de Payment Intents Stripe para los clientes de UISP CRM, útil para conciliación de pagos no registrados en UISP CRM", "url": "https://siip.mx", - "version": "1.3.1", + "version": "1.3.2", "ucrmVersionCompliancy": { "min": "1.0.0", "max": null diff --git a/public.php b/public.php index 8ebb03b..134eea5 100755 --- a/public.php +++ b/public.php @@ -624,6 +624,13 @@ if ($action === 'webhook') { +
+ + + Ver en CRM + +
+
@@ -725,6 +732,7 @@ if ($action === 'webhook') { }); let debounceTimer; + const baseUrl = ''; let selectedClient = null; // --- Search Logic --- @@ -786,6 +794,10 @@ if ($action === 'webhook') { // Show details detailsDiv.style.display = 'block'; + + // Update CRM Link + const btnViewInCrm = document.getElementById('btnViewInCrm'); + btnViewInCrm.href = `${baseUrl}/client/${data.id}`; // Validate Stripe ID for button if (!data.stripeCustomerId) { diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index f96983b..722565a 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '070fb757d2f83111f7d49baa82baeade35c7bffa', + 'reference' => '7bb6d7c0e2dcfaf848eb1c1b4bc72d81af970cef', 'name' => '__root__', 'dev' => false, ), @@ -16,7 +16,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '070fb757d2f83111f7d49baa82baeade35c7bffa', + 'reference' => '7bb6d7c0e2dcfaf848eb1c1b4bc72d81af970cef', 'dev_requirement' => false, ), 'guzzlehttp/guzzle' => array(