More log
This commit is contained in:
parent
0bcd4c630d
commit
0a607d697f
@ -174,12 +174,12 @@ class Stripe extends CommonObject
|
|||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$tiers = $obj->key_account;
|
$tiers = $obj->key_account;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::customerStripe found stripe customer key_account = ".$tiers);
|
|
||||||
|
|
||||||
// Force to use the correct API key
|
// Force to use the correct API key
|
||||||
global $stripearrayofkeysbyenv;
|
global $stripearrayofkeysbyenv;
|
||||||
\Stripe\Stripe::setApiKey($stripearrayofkeysbyenv[$status]['secret_key']);
|
\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 {
|
try {
|
||||||
if (empty($key)) { // If the Stripe connect account not set, we use common API usage
|
if (empty($key)) { // If the Stripe connect account not set, we use common API usage
|
||||||
$customer = \Stripe\Customer::retrieve("$tiers");
|
$customer = \Stripe\Customer::retrieve("$tiers");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user