Merge pull request #9329 from ptibogxiv/patch-44

FIX deletion of stripe customer
This commit is contained in:
Laurent Destailleur 2018-08-29 21:12:53 +02:00 committed by GitHub
commit c071e751f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,6 +176,11 @@ class InterfaceStripe
if ($customer) { if ($customer) {
$customer->delete(); $customer->delete();
} }
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_account";
$sql.= " WHERE site='stripe' AND fk_soc = " . $object->id;
$this->db->query($sql);
} }
// If payment mode is linked to Strip, we update/delete Stripe too // If payment mode is linked to Strip, we update/delete Stripe too