Skip to content

Commit

Permalink
Fix: the stripe_account is not filled
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 23, 2019
1 parent 85f3f55 commit 6f97d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/stripe/class/stripe.class.php
Expand Up @@ -246,8 +246,8 @@ public function customerStripe(Societe $object, $key = '', $status = 0, $createi
}

// Create customer in Dolibarr
$sql = "INSERT INTO ".MAIN_DB_PREFIX."societe_account (fk_soc, login, key_account, site, status, entity, date_creation, fk_user_creat)";
$sql .= " VALUES (".$object->id.", '', '".$this->db->escape($customer->id)."', 'stripe', ".$status.", ".$conf->entity.", '".$this->db->idate(dol_now())."', ".$user->id.")";
$sql = "INSERT INTO ".MAIN_DB_PREFIX."societe_account (fk_soc, login, key_account, site, site_account, status, entity, date_creation, fk_user_creat)";
$sql .= " VALUES (".$object->id.", '', '".$this->db->escape($customer->id)."', 'stripe', '".$this->db->escape($stripearrayofkeysbyenv[$status]['publishable_key'])."', ".$status.", ".$conf->entity.", '".$this->db->idate(dol_now())."', ".$user->id.")";
$resql = $this->db->query($sql);
if (!$resql)
{
Expand Down

0 comments on commit 6f97d16

Please sign in to comment.