From 57842d8db4ee66d733b6d5b50bb297a3b1069263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ch=C3=A9rifBALDE?= Date: Wed, 12 Oct 2022 09:44:05 +0200 Subject: [PATCH] 12/10/22 - 9h30 --- strype_payement.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/strype_payement.py b/strype_payement.py index dab82a2..65f8a38 100644 --- a/strype_payement.py +++ b/strype_payement.py @@ -215,13 +215,16 @@ def create_update_payment_card(diction): Si le champs "stripe_paymentmethod_id" est vide, alors c'est une creation + Attachement au client """ - #print(" ## stripe_paymentmethod_id = "+str(stripe_paymentmethod_id)) + print(" ## stripe_paymentmethod_id existe. donc suppression de = "+str(stripe_paymentmethod_id)) if (len(stripe_paymentmethod_id) > 2): - #print(" ### UPDATE ==> detache") + print(" ### UPDATE ==> detache") detache = stripe.PaymentMethod.detach( stripe_paymentmethod_id, ) + print(" #### detache "+str(detache)) + + #print(" ### CREATE ")