Merge pull request #16052 from ptibogxiv/patch-405

Fix stripe Payment method delete
This commit is contained in:
Laurent Destailleur 2021-01-24 15:20:04 +01:00 committed by GitHub
commit 97aba6d767
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,7 @@ if ($event->type == 'payout.created') {
}
} elseif ($event->type == 'payment_method.detached') {
$db->begin();
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_rib WHERE ref = '".$db->escape($event->data->object->id)."' and status = ".$servicestatus;
$sql = "DELETE FROM ".MAIN_DB_PREFIX."societe_rib WHERE number = '".$db->escape($event->data->object->id)."' and status = ".$servicestatus;
$db->query($sql);
$db->commit();
} elseif ($event->type == 'charge.succeeded') {