From 0a607d697f0cf276767c19905bff7352de7a745f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 11 Nov 2019 00:34:05 +0100 Subject: [PATCH] More log --- htdocs/stripe/class/stripe.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php index b9aacf51e03..7edccbfeeb7 100644 --- a/htdocs/stripe/class/stripe.class.php +++ b/htdocs/stripe/class/stripe.class.php @@ -174,12 +174,12 @@ class Stripe extends CommonObject $obj = $this->db->fetch_object($resql); $tiers = $obj->key_account; - dol_syslog(get_class($this)."::customerStripe found stripe customer key_account = ".$tiers); - // Force to use the correct API key global $stripearrayofkeysbyenv; \Stripe\Stripe::setApiKey($stripearrayofkeysbyenv[$status]['secret_key']); + dol_syslog(get_class($this)."::customerStripe found stripe customer key_account = ".$tiers." with publishable_key = ".$stripearrayofkeysbyenv[$status]['publishable_key']); + try { if (empty($key)) { // If the Stripe connect account not set, we use common API usage $customer = \Stripe\Customer::retrieve("$tiers");