177 Commits

Author SHA1 Message Date
Laurent Destailleur
e6f6231c48 WIP Code to set payment request to processed also for credit cards 2026-03-04 18:50:44 +01:00
Laurent Destailleur
89d3afe517 Fix error management 2026-03-03 12:47:24 +01:00
Erwan-Wiwit
08feb72c6c Add hook stripeWebhookEvent in Stripe IPN for external modules (#37293)
* Add hook stripeWebhookEvent in Stripe IPN for external modules

Allow external modules to intercept and handle Stripe webhook events
via the standard Dolibarr hook system. The hook is called before the
built-in event processing, and modules can return >0 to stop default
processing if they handled the event entirely.

Hook context: stripeipn
Hook method: stripeWebhookEvent
Parameters: event (full Stripe event), servicestatus, service

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix phpstan: instantiate HookManager before use in ipn.php

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-23 01:43:25 +01:00
minimexat
92562150ec QUAL Replace var_export() with json_encode() in dol_syslog() calls (#37138)
var_export() produces multiline output that breaks log aggregators
(Loki, Splunk, Elasticsearch, Graylog) as each line becomes a separate
log entry.

json_encode() produces single-line structured output that works correctly
with all log aggregation tools. This pattern is already used elsewhere
in Dolibarr (accountancy, install modules).

Files changed:
- core/class/commoninvoice.class.php (payment intent logging)
- core/class/commonobject.class.php (payment terms logging)
- core/modules/mailings/advthirdparties.modules.php (mailing targets)
- core/modules/oauth/google_oauthcallback.php (userinfo logging)
- core/modules/oauth/generic_oauthcallback.php (userinfo logging)
- public/payment/newpayment.php (GET/POST debug logging)
- public/payment/paymentok.php (payment tag logging)
- public/stripe/ipn.php (Stripe event data logging)
- paypal/lib/paypal.lib.php (PayPal response logging)
- api/index.php (API debug logging)
- stripe/class/stripe.class.php (payment/setup intent logging)

Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-02-11 01:44:21 +01:00
Laurent Destailleur
249feb265f CI 2026-02-10 01:32:04 +01:00
Laurent Destailleur
36108255e3 Complete call to setStatus so we have a trigy as 4th parameter (help to
fix the #37129)
2026-02-10 00:44:46 +01:00
Laurent Destailleur
ca7e4346f0 More complete message 2026-02-03 18:16:05 +01:00
Laurent Destailleur
92e655a28d Debug v23 - Fix ipn for dispute and withdraw funds. 2026-01-30 05:48:51 +01:00
Laurent Destailleur
882dc419d4 Label 2026-01-21 21:49:13 +01:00
Laurent Destailleur
669e2bd726 Need a label for autorecord stripe payouts 2026-01-21 21:48:28 +01:00
Laurent Destailleur
34a195c810 Fix label 2026-01-21 21:46:38 +01:00
Laurent Destailleur
0e960ea32d Fix round in stripe amount 2026-01-21 21:00:37 +01:00
Laurent Destailleur
00024048ca Fix CI 2025-11-26 02:18:14 +01:00
Laurent Destailleur
1d9313200d Fix CI 2025-11-26 01:55:38 +01:00
Laurent Destailleur
e486d22b61 Fix CI 2025-11-26 01:43:23 +01:00
Laurent Destailleur
54cba89bc5 Fix CI 2025-11-26 01:40:45 +01:00
Laurent Destailleur
0027e0c126 Fix CI 2025-11-26 01:35:10 +01:00
Laurent Destailleur
2580d0dd7f Fix missing email 2025-11-25 12:16:55 +01:00
Laurent Destailleur
81527a9fe9 Clean code 2025-11-18 12:03:23 +01:00
Mohamed DAOUD
4637214644 Prepare SEPA payments for supplier invoices via Stripe (#35078)
* preparation for supplier invoice payment via SEPA Stripe

* use stripe cynematic

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-28 16:33:54 +02:00
ldestailleur
82ac5b3ea2 Clean code 2025-08-25 20:12:20 +02:00
ldestailleur
d41ce132f3 Save more information into exp_payment_id for Stripe payments. 2025-08-24 19:50:38 +02:00
ldestailleur
2a9f9960f0 Fix warnings 2025-08-17 17:03:55 +02:00
ldestailleur
1f8486611c Better log 2025-08-17 16:29:03 +02:00
ldestailleur
4dd00f5370 Disable a test that may be wrong to manage charge back 2025-08-17 16:25:21 +02:00
ldestailleur
2d97709644 Fix var name 2025-08-17 16:22:21 +02:00
ldestailleur
2ebb814b67 More logs 2025-08-17 16:14:36 +02:00
ldestailleur
b1b1504111 Enhance the stripe IPN on dispute 2025-08-17 16:10:14 +02:00
ldestailleur
01d168afb7 Add doc comment, and add field date_reception in commande_fournisseur
for #34975
2025-08-17 01:45:34 +02:00
Laurent Destailleur
3f10bd2b7e Fix warning 2025-07-08 15:32:27 +02:00
Laurent Destailleur
226a50e1f6 More logs 2025-07-07 23:53:51 +02:00
Laurent Destailleur
421802cc87 Doc 2025-07-07 23:40:20 +02:00
ldestailleur
351b3b4dd3 Debug v22 2025-06-20 11:56:10 +02:00
ldestailleur
e6ff3280f6 Debug v22 2025-06-20 11:55:14 +02:00
ldestailleur
d7976f28ba Debug v22 2025-06-02 15:42:44 +02:00
Laurent Destailleur
186c1bd036 NEW Add a delay to be sure that any Stripe action from webhooks are
executed after interactive actions
2025-05-12 01:51:50 +02:00
ldestailleur
5760ecc38b Complementary message in actionmsgmore should work on all cases. 2025-05-05 04:07:23 +02:00
ldestailleur
2736a4b382 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-05-05 00:07:09 +02:00
ldestailleur
73d48d8795 Fix warning 2025-05-05 00:00:47 +02:00
Laurent Destailleur
0239873ac9 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-24 01:27:39 +02:00
Laurent Destailleur
021d2f751f Fix CI 2025-04-24 01:27:06 +02:00
Laurent Destailleur
eb99f51a38 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-04-24 01:12:50 +02:00
Laurent Destailleur
cd3cc8f28b Fix debug log 2025-04-24 01:12:21 +02:00
Laurent Destailleur
a4c97c0651 Fix CI 2025-04-23 23:27:45 +02:00
Laurent Destailleur
5e064f32e2 Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
develop
2025-04-22 03:57:47 +02:00
Laurent Destailleur
cebfdbd69a Add log to help debug payment 2025-04-21 23:33:30 +02:00
MDW
3b1200df77 Qual: Fix phan notices (public-2) 2025-02-12 23:41:07 +01:00
Laurent Destailleur
8f7881a871 Debug v21 2025-01-21 17:51:01 +01:00
Laurent Destailleur (aka Eldy)
8a2a67f2ec Clean sql 2024-12-15 02:02:14 +01:00
Frédéric FRANCE
1adc883b56 add baseline exclude for phpstan (#31632)
* add baseline exclude for phpstan

* update

* update

* update

* update

* update

* merge

* restore one filter

* delete old errors

* fix

* fix

* fix

* $moreforfilter can t be empty

* fix

* enable check

* refresh baseline

* add phpdoc

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* update phpstan baseline

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-11-04 23:53:20 +01:00