Skip to content

Commit

Permalink
Merge pull request #8380 from ptibogxiv/patch-20
Browse files Browse the repository at this point in the history
Fix IPN delete customer stripe with new database
  • Loading branch information
eldy committed Mar 14, 2018
2 parents fe68e8a + e62df03 commit 8e58ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/public/stripe/ipn.php
Expand Up @@ -323,7 +323,7 @@
}
elseif ($event->type == 'customer.deleted') {
$db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_stripe WHERE fk_key = '".$event->data->object->id."' ";
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_account WHERE key_account = '".$event->data->object->id."' and site='stripe' ";
dol_syslog(get_class($this) . "::delete sql=" . $sql, LOG_DEBUG);
$db->query($sql);
$db->commit();
Expand Down

0 comments on commit 8e58ef5

Please sign in to comment.