From 9fe2e113e876b065be752dfc03eb49da390a7ced Mon Sep 17 00:00:00 2001 From: cherif Date: Sat, 21 Jan 2023 17:39:47 +0100 Subject: [PATCH] 21/01/23 - 17h30 --- .idea/workspace.xml | 21 +- Log/log_file.log | 756 +++++++++++++++++++++++++++++++++++++++++++ Session_Formation.py | 37 ++- class_mgt.py | 33 +- 4 files changed, 804 insertions(+), 43 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index e434dcc..545fe60 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,14 +1,11 @@ - + - - - - - + + @@ -256,7 +260,8 @@ - diff --git a/Log/log_file.log b/Log/log_file.log index 8532f95..32e8b8c 100644 --- a/Log/log_file.log +++ b/Log/log_file.log @@ -1004116,3 +1004116,759 @@ INFO:paramiko.transport.sftp:[chan 0] sftp session closed. DEBUG:paramiko.transport:[chan 0] EOF sent (0) DEBUG:paramiko.transport:EOF in transport thread INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:13:08] "GET /myclass/api/GetCustomerInvoice/Khj9OnIPxc8cZfkVm2mdU9TVgrbhn3_MuA/FACT_23100068 HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:04.530123 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:04.533119 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:04.557645 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:04] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:04.575648 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:04] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_31rgHP4fLiWu8E message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:04] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:05.779178 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:05.784176 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:05.958540 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfg2AbmaEugrFTtXw7ys3V",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302166,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302166,\n "currency": "eur",\n "current_period_end": 1676980566,\n "current_period_start": 1674302166,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5rRmnRVKBn7J",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302166,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfg2AbmaEugrFTtXw7ys3V",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfg2AbmaEugrFTtXw7ys3V"\n },\n "latest_invoice": {\n "id": "in_1MSfg2AbmaEugrFTqtR8iGhX",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302166,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDVyUVNKTGplelJTc3hLS2ludUhnNlNzNjVJYWg1LDY0ODQyOTY30200pvYCu4hU?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDVyUVNKTGplelJTc3hLS2ludUhnNlNzNjVJYWg1LDY0ODQyOTY30200pvYCu4hU/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfg2AbmaEugrFTT00twJgm",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980566,\n "start": 1674302166\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfg2AbmaEugrFTtXw7ys3V",\n "subscription_item": "si_ND5rRmnRVKBn7J",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfg2AbmaEugrFTqtR8iGhX/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0436",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfg2AbmaEugrFT1mPER7zq",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfg2AbmaEugrFT1mPER7zq"\n },\n "client_secret": "pi_3MSfg2AbmaEugrFT1mPER7zq_secret_iAWH3mXN5un4GUFmRg7RuMUau",\n "confirmation_method": "automatic",\n "created": 1674302166,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfg2AbmaEugrFTqtR8iGhX",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302166,\n "period_start": 1674302166,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302166,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfg2AbmaEugrFTtXw7ys3V",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302166\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302166,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_8hBfwpjdIT2FW2 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:07] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:09.587585 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:09.592584 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:09] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:09.598584 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:09.608580 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:09] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:09] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:11.242566 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:11] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:15.586067 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:15.597052 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:15.598045 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:15] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_dNUPyAoaxOi0n0 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:16] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:22.366661 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:22.370655 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:22.374666 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:22.379676 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:22] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_jjiE6eWqHwPClN message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:22] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:22.845202 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:56:22.850767 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:56:22.859752 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfgIAbmaEugrFTdAdZLbLT",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302182,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302182,\n "currency": "eur",\n "current_period_end": 1676980582,\n "current_period_start": 1674302182,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5sncV1cFzHsI",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302183,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfgIAbmaEugrFTdAdZLbLT",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfgIAbmaEugrFTdAdZLbLT"\n },\n "latest_invoice": {\n "id": "in_1MSfgJAbmaEugrFTlUtDCbY2",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302183,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDVzVXZJR2pKWjZwcWdad290QTZJVXRCS09la21ILDY0ODQyOTgz0200b69CvQYr?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDVzVXZJR2pKWjZwcWdad290QTZJVXRCS09la21ILDY0ODQyOTgz0200b69CvQYr/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfgJAbmaEugrFTyCqsEnOO",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980582,\n "start": 1674302182\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfgIAbmaEugrFTdAdZLbLT",\n "subscription_item": "si_ND5sncV1cFzHsI",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfgJAbmaEugrFTlUtDCbY2/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0437",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfgJAbmaEugrFT0JuRnvh4",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfgJAbmaEugrFT0JuRnvh4"\n },\n "client_secret": "pi_3MSfgJAbmaEugrFT0JuRnvh4_secret_5yUj74q4F7hbhSvFOkH8GESf8",\n "confirmation_method": "automatic",\n "created": 1674302183,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfgJAbmaEugrFTlUtDCbY2",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302182,\n "period_start": 1674302182,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302183,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfgIAbmaEugrFTdAdZLbLT",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302183\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302182,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_t5wRl7wJtPPtCr message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:56:24] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:14.425654 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:14.428652 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:14.431654 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:14] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:14.437164 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:14] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_HJJXB6XdVLbON9 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:14] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:14.893670 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:14.898697 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:14] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:14.904678 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfi7AbmaEugrFTS4kZD3tf",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302295,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302295,\n "currency": "eur",\n "current_period_end": 1676980695,\n "current_period_start": 1674302295,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5tol8MyPqoNa",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302295,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfi7AbmaEugrFTS4kZD3tf",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfi7AbmaEugrFTS4kZD3tf"\n },\n "latest_invoice": {\n "id": "in_1MSfi7AbmaEugrFTNtqzxmP2",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302295,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV0NEIxT2pac0lMbWVPQjE3bmJvalJIY2pzMkJKLDY0ODQzMDk20200jiw81rIU?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV0NEIxT2pac0lMbWVPQjE3bmJvalJIY2pzMkJKLDY0ODQzMDk20200jiw81rIU/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfi7AbmaEugrFTgWxEeqid",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980695,\n "start": 1674302295\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfi7AbmaEugrFTS4kZD3tf",\n "subscription_item": "si_ND5tol8MyPqoNa",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfi7AbmaEugrFTNtqzxmP2/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0438",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfi7AbmaEugrFT1E4ygYyk",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfi7AbmaEugrFT1E4ygYyk"\n },\n "client_secret": "pi_3MSfi7AbmaEugrFT1E4ygYyk_secret_r5rGIfHIuiQOohVqMoHZuJPIq",\n "confirmation_method": "automatic",\n "created": 1674302295,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfi7AbmaEugrFTNtqzxmP2",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302295,\n "period_start": 1674302295,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302295,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfi7AbmaEugrFTS4kZD3tf",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302295\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302295,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_XoMfVLfdisozzh message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:16] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:23.452892 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:23.457224 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:23.459257 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:23] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:23.466270 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_bUbUz8T0vE8kCC message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:24] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:24.440606 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:24.446599 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:24] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:24.455133 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfiGAbmaEugrFT6520nQ8m",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302304,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302304,\n "currency": "eur",\n "current_period_end": 1676980704,\n "current_period_start": 1674302304,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5uPUV3osKTGA",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302305,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfiGAbmaEugrFT6520nQ8m",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfiGAbmaEugrFT6520nQ8m"\n },\n "latest_invoice": {\n "id": "in_1MSfiGAbmaEugrFT6b5gskp8",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302304,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1ck1Pa2QwcWhjRDVnUEpXYWRVdFI1cVpQcFdaLDY0ODQzMTA10200B9EokHnk?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1ck1Pa2QwcWhjRDVnUEpXYWRVdFI1cVpQcFdaLDY0ODQzMTA10200B9EokHnk/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfiGAbmaEugrFT71ZewhEp",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980704,\n "start": 1674302304\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfiGAbmaEugrFT6520nQ8m",\n "subscription_item": "si_ND5uPUV3osKTGA",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfiGAbmaEugrFT6b5gskp8/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0439",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfiHAbmaEugrFT1QBeFBby",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfiHAbmaEugrFT1QBeFBby"\n },\n "client_secret": "pi_3MSfiHAbmaEugrFT1QBeFBby_secret_8tcH2ibptkxettfuR3UH655cn",\n "confirmation_method": "automatic",\n "created": 1674302305,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfiGAbmaEugrFT6b5gskp8",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302304,\n "period_start": 1674302304,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302304,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfiGAbmaEugrFT6520nQ8m",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302304\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302304,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_5taisXJorlosxm message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:25] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:28.426441 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:28.428435 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:28] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:28.433440 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:28.437441 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:28] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:28.867334 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:28] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:31.447768 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:31.452774 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:31.459759 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_oIs6be5xxCt6j5 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:31] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:35.477323 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:35.482555 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:35.486560 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:35.491571 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:35] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_z8CbdDPBYXRBrg message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:35] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:35.949981 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:35.956986 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:36.091643 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfiUAbmaEugrFTksm2MKST",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302318,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302318,\n "currency": "eur",\n "current_period_end": 1676980718,\n "current_period_start": 1674302318,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5ueTL721Vv0D",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302318,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfiUAbmaEugrFTksm2MKST",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfiUAbmaEugrFTksm2MKST"\n },\n "latest_invoice": {\n "id": "in_1MSfiUAbmaEugrFTf98brUOA",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302318,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1VFhjY1pBdmhkTzFhS0o5MjBHSklGa0ZQYzNULDY0ODQzMTE40200DAfttsfZ?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1VFhjY1pBdmhkTzFhS0o5MjBHSklGa0ZQYzNULDY0ODQzMTE40200DAfttsfZ/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfiUAbmaEugrFT8m6cLPXv",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980718,\n "start": 1674302318\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfiUAbmaEugrFTksm2MKST",\n "subscription_item": "si_ND5ueTL721Vv0D",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfiUAbmaEugrFTf98brUOA/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0440",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfiUAbmaEugrFT0zoB2yDH",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfiUAbmaEugrFT0zoB2yDH"\n },\n "client_secret": "pi_3MSfiUAbmaEugrFT0zoB2yDH_secret_7XiDegrIwwss7glaayL3dteMQ",\n "confirmation_method": "automatic",\n "created": 1674302318,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfiUAbmaEugrFTf98brUOA",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302318,\n "period_start": 1674302318,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302318,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfiUAbmaEugrFTksm2MKST",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302318\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302318,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_5uM09BPYeN4CQk message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:39] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:47.740246 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:47] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:47.769740 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:47] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:49.091391 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:49.094931 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:49.099955 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:49] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_DumK4RG1NA3zm5 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:50] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:52.843456 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:52.848747 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:52.850754 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:52.855748 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:52] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:52] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_VE3w4PCScLffJo message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:54] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:54.487108 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 12:58:54.496122 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 12:58:54.536220 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfikAbmaEugrFT7i8e2xBh",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302334,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302334,\n "currency": "eur",\n "current_period_end": 1676980734,\n "current_period_start": 1674302334,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5urcwlojIIJO",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302335,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfikAbmaEugrFT7i8e2xBh",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfikAbmaEugrFT7i8e2xBh"\n },\n "latest_invoice": {\n "id": "in_1MSfikAbmaEugrFTBy6n8QjH",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302334,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1bGtIZXI5Y3c1clRNWFlraERqU3ZzNnlaUk1NLDY0ODQzMTM10200UA2yDPML?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV1bGtIZXI5Y3c1clRNWFlraERqU3ZzNnlaUk1NLDY0ODQzMTM10200UA2yDPML/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfikAbmaEugrFTHJSFvOiS",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980734,\n "start": 1674302334\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfikAbmaEugrFT7i8e2xBh",\n "subscription_item": "si_ND5urcwlojIIJO",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfikAbmaEugrFTBy6n8QjH/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0441",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfilAbmaEugrFT1SvMFZ23",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfilAbmaEugrFT1SvMFZ23"\n },\n "client_secret": "pi_3MSfilAbmaEugrFT1SvMFZ23_secret_LCNCTyNx26jcXifxqiWGWnRn0",\n "confirmation_method": "automatic",\n "created": 1674302335,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfikAbmaEugrFTBy6n8QjH",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302334,\n "period_start": 1674302334,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302334,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfikAbmaEugrFT7i8e2xBh",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302334\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302334,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_jTHwCsNv4Jmw5k message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 12:58:55] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:07.762509 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:07.765521 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:07.768505 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:07.775509 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:07] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:07] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_VvFyzDdiCoxQzj message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:08] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:08.561685 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:08.567685 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:08] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:08.644459 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfjxAbmaEugrFTshz3rEJ4",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302409,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302409,\n "currency": "eur",\n "current_period_end": 1676980809,\n "current_period_start": 1674302409,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5vhoJhH5zEUM",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302410,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfjxAbmaEugrFTshz3rEJ4",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfjxAbmaEugrFTshz3rEJ4"\n },\n "latest_invoice": {\n "id": "in_1MSfjxAbmaEugrFTAcYUysEs",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302409,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV2RVkxR3hadzBGMXpFbzVyM2RJSzJoU3JZMHZFLDY0ODQzMjEw0200MAbIxP46?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV2RVkxR3hadzBGMXpFbzVyM2RJSzJoU3JZMHZFLDY0ODQzMjEw0200MAbIxP46/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfjxAbmaEugrFTqcSA3OxZ",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980809,\n "start": 1674302409\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfjxAbmaEugrFTshz3rEJ4",\n "subscription_item": "si_ND5vhoJhH5zEUM",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfjxAbmaEugrFTAcYUysEs/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0442",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfjyAbmaEugrFT0tSRlizA",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfjyAbmaEugrFT0tSRlizA"\n },\n "client_secret": "pi_3MSfjyAbmaEugrFT0tSRlizA_secret_3J1D22Q0oGgQhlUT7wWHOdG6H",\n "confirmation_method": "automatic",\n "created": 1674302410,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfjxAbmaEugrFTAcYUysEs",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302409,\n "period_start": 1674302409,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302409,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfjxAbmaEugrFTshz3rEJ4",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302409\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302409,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_RZ0JallLA91qeI message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:11] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:11.883277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:11.887277 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:11.891275 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:11] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:11.896289 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:11] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:11] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:12.837304 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:12] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:19.693753 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:19.702998 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:19.705003 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:19] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_kR7lbQwKpVURT5 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:20] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:29.527303 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:29.537306 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:29.538312 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:29] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:29.544337 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:29] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_6BMWK1Jw4mW2nu message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:30] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:30.595595 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:00:30.602631 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:30] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:00:30.760715 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfkJAbmaEugrFTnOvIsAce",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302431,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302431,\n "currency": "eur",\n "current_period_end": 1676980831,\n "current_period_start": 1674302431,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5wii6V3bYc8R",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302431,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfkJAbmaEugrFTnOvIsAce",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfkJAbmaEugrFTnOvIsAce"\n },\n "latest_invoice": {\n "id": "in_1MSfkJAbmaEugrFTozifCw41",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302431,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV3V2JDMWpydWtkQ2tOcGJKTTExTmRPdnhsZjZHLDY0ODQzMjMy0200mAXR2sDo?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV3V2JDMWpydWtkQ2tOcGJKTTExTmRPdnhsZjZHLDY0ODQzMjMy0200mAXR2sDo/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfkJAbmaEugrFTAw7Cg3T1",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980831,\n "start": 1674302431\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfkJAbmaEugrFTnOvIsAce",\n "subscription_item": "si_ND5wii6V3bYc8R",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfkJAbmaEugrFTozifCw41/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0443",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfkJAbmaEugrFT1TCLHsua",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfkJAbmaEugrFT1TCLHsua"\n },\n "client_secret": "pi_3MSfkJAbmaEugrFT1TCLHsua_secret_190meH0Q1UnU0nkgPjdgDmTPL",\n "confirmation_method": "automatic",\n "created": 1674302431,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfkJAbmaEugrFTozifCw41",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302431,\n "period_start": 1674302431,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302431,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfkJAbmaEugrFTnOvIsAce",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302431\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302431,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_CxfOrEjOvkDU1H message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:00:32] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:02:22.446386 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:02:22.451935 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:02:22.456925 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:02:22.461924 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:02:22] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:02:22] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_lYiFsraTsPoRRx message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:02:23] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:02:23.730493 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:02:23.737518 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:02:23] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:02:23.748530 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfm7AbmaEugrFTQjGEzQWW",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302543,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302543,\n "currency": "eur",\n "current_period_end": 1676980943,\n "current_period_start": 1674302543,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5yb8LflMOZhw",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302544,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfm7AbmaEugrFTQjGEzQWW",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfm7AbmaEugrFTQjGEzQWW"\n },\n "latest_invoice": {\n "id": "in_1MSfm7AbmaEugrFTlmTHK9Wk",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302543,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV5SFVFaTFpRTI0blJmR0NGbVpsUjJpZFo0TjYyLDY0ODQzMzQ00200qcRG9FWl?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV5SFVFaTFpRTI0blJmR0NGbVpsUjJpZFo0TjYyLDY0ODQzMzQ00200qcRG9FWl/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfm7AbmaEugrFTAkQZLhzg",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676980943,\n "start": 1674302543\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfm7AbmaEugrFTQjGEzQWW",\n "subscription_item": "si_ND5yb8LflMOZhw",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfm7AbmaEugrFTlmTHK9Wk/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0444",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfm8AbmaEugrFT0SnNjqP3",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfm8AbmaEugrFT0SnNjqP3"\n },\n "client_secret": "pi_3MSfm8AbmaEugrFT0SnNjqP3_secret_ggtn9FZNk09voCClrRAhNPTgC",\n "confirmation_method": "automatic",\n "created": 1674302544,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfm7AbmaEugrFTlmTHK9Wk",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302543,\n "period_start": 1674302543,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302543,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfm7AbmaEugrFTQjGEzQWW",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302543\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302543,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_R0MCIe2uhLWoiB message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:02:25] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:28.807923 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:28.812436 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:28.817435 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:28] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:28.822949 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:28] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:28] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:29.663473 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:29] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:31.877631 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:31.882019 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:31.889037 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:31] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_M0ZMQBydk0kDYn message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:32] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:35.758616 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:35.762428 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:35.768544 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:35] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:35.775540 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_vU0rHjz3wWQKZ2 message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:36] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:36.567462 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:03:36.574460 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:36] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:03:36.583652 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfnJAbmaEugrFTJKHGqqNg",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302617,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302617,\n "currency": "eur",\n "current_period_end": 1676981017,\n "current_period_start": 1674302617,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND5zqJhsGeUFTw",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302617,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfnJAbmaEugrFTJKHGqqNg",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfnJAbmaEugrFTJKHGqqNg"\n },\n "latest_invoice": {\n "id": "in_1MSfnJAbmaEugrFTPX0AzPcV",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302617,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV6MFFteFdRSkNXaWcyMGtiOTdXOVFSYUk1S3EwLDY0ODQzNDE402007pWW2VSI?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDV6MFFteFdRSkNXaWcyMGtiOTdXOVFSYUk1S3EwLDY0ODQzNDE402007pWW2VSI/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfnJAbmaEugrFTG4y2lc6O",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676981017,\n "start": 1674302617\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfnJAbmaEugrFTJKHGqqNg",\n "subscription_item": "si_ND5zqJhsGeUFTw",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfnJAbmaEugrFTPX0AzPcV/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0445",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfnJAbmaEugrFT11BqMbr2",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfnJAbmaEugrFT11BqMbr2"\n },\n "client_secret": "pi_3MSfnJAbmaEugrFT11BqMbr2_secret_p8N849I4yKNJl20ubdeMI9QO8",\n "confirmation_method": "automatic",\n "created": 1674302617,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfnJAbmaEugrFTPX0AzPcV",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302617,\n "period_start": 1674302617,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302617,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfnJAbmaEugrFTJKHGqqNg",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302617\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302617,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_AGzX1vXFCJBvHo message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:03:38] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:35.950569 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:35.960961 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:35.963954 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:35] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:35.969942 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:35] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:36.468040 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:36] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:38.135201 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:38.139203 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:38.146217 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_7t4VrNbeRoRYNO message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:38] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:42.721039 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:42.725038 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:42.731038 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:42] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:42.737037 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:42] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_zjNjN95PEuFu2o message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:43] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:43.225963 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:04:43.231981 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:43] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:04:43.330577 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfoPAbmaEugrFT3tAFxOE1",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302685,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302685,\n "currency": "eur",\n "current_period_end": 1676981085,\n "current_period_start": 1674302685,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND60FXuFZAYuVg",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302685,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfoPAbmaEugrFT3tAFxOE1",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfoPAbmaEugrFT3tAFxOE1"\n },\n "latest_invoice": {\n "id": "in_1MSfoPAbmaEugrFTxDz5HudU",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302685,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDYwcmFYaFZYajg0Uk5zU2F1NmZLV1V6Y2VhRjhtLDY0ODQzNDg20200pFzGV8TN?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDYwcmFYaFZYajg0Uk5zU2F1NmZLV1V6Y2VhRjhtLDY0ODQzNDg20200pFzGV8TN/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfoPAbmaEugrFTdxyTJzbM",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676981085,\n "start": 1674302685\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfoPAbmaEugrFT3tAFxOE1",\n "subscription_item": "si_ND60FXuFZAYuVg",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfoPAbmaEugrFTxDz5HudU/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0446",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfoPAbmaEugrFT1VSmr1vR",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfoPAbmaEugrFT1VSmr1vR"\n },\n "client_secret": "pi_3MSfoPAbmaEugrFT1VSmr1vR_secret_M0seIauaI0P9aL5I4LR2Erf1X",\n "confirmation_method": "automatic",\n "created": 1674302685,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfoPAbmaEugrFTxDz5HudU",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302685,\n "period_start": 1674302685,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302685,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfoPAbmaEugrFT3tAFxOE1",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302685\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302685,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_Vc4aJMb5CHcfkj message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:04:47] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:08:58.945883 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:08:58.948887 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:08:58.958653 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:08:58] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:08:58.965656 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:08:58] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:08:58] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:08:59.619600 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:08:59] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:09:01.388607 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:09:01.392575 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:09:01.396121 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:01] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_qw3EX0m5k2qIaz message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:01] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:09:05.834387 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:09:05.840492 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:09:05.848480 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:05] "POST /myclass/api/get_product_service/ HTTP/1.1" 200 - +INFO:stripe:message='Request to Stripe api' method=get path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card +INFO:root:2023-01-21 13:09:05.861022 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=type=card +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:05] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/customers/cus_MrtgqQxPM3z229/payment_methods?type=card response_code=200 +DEBUG:stripe:body='{\n "object": "list",\n "data": [\n {\n "id": "pm_1MSf03AbmaEugrFTcZSMvipW",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674299563,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSekqAbmaEugrFTiSWNQiIm",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674298620,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe7FAbmaEugrFTM6FuOHMo",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296165,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSe5xAbmaEugrFTo0C3AALd",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": "dsfdsfsdds : 11h15",\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": "pass"\n },\n "country": "US",\n "exp_month": 4,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674296086,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSdBoAbmaEugrFTqf0JYafh",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674292604,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSyYAbmaEugrFT3rpq5QTE",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674253342,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSnSAbmaEugrFTGd9EvkUu",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252654,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSkLAbmaEugrFTReFHGawn",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674252461,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSckAbmaEugrFTdQOsLyou",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251990,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n },\n {\n "id": "pm_1MSSZTAbmaEugrFTAZymXiht",\n "object": "payment_method",\n "billing_details": {\n "address": {\n "city": null,\n "country": null,\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "email": null,\n "name": null,\n "phone": null\n },\n "card": {\n "brand": "visa",\n "checks": {\n "address_line1_check": null,\n "address_postal_code_check": null,\n "cvc_check": null\n },\n "country": "US",\n "exp_month": 1,\n "exp_year": 2024,\n "fingerprint": "WLHU5xJ28QiE3f4x",\n "funding": "credit",\n "generated_from": null,\n "last4": "4242",\n "networks": {\n "available": [\n "visa"\n ],\n "preferred": null\n },\n "three_d_secure_usage": {\n "supported": true\n },\n "wallet": null\n },\n "created": 1674251787,\n "customer": "cus_MrtgqQxPM3z229",\n "livemode": false,\n "metadata": {},\n "type": "card"\n }\n ],\n "has_more": true,\n "url": "/v1/customers/cus_MrtgqQxPM3z229/payment_methods"\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_yDjzwKUCePjF8g message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:07] "POST /myclass/api/get_payement_mode/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:09:07.486854 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:09:07.496907 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:07] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:09:07.506886 : Security check : IP adresse '127.0.0.1' connected +INFO:stripe:message='Request to Stripe api' method=post path=https://api.stripe.com/v1/subscriptions +DEBUG:stripe:api_version=2020-08-27 message='Post details' post_data=customer=cus_MrtgqQxPM3z229&items[0][price]=price_1LpyndAbmaEugrFTKZAAkm72&payment_behavior=default_incomplete&expand[0]=latest_invoice.payment_intent +INFO:stripe:message='Stripe API response' path=https://api.stripe.com/v1/subscriptions response_code=200 +DEBUG:stripe:body='{\n "id": "sub_1MSfseAbmaEugrFTITdcaWsZ",\n "object": "subscription",\n "application": null,\n "application_fee_percent": null,\n "automatic_tax": {\n "enabled": false\n },\n "billing_cycle_anchor": 1674302948,\n "billing_thresholds": null,\n "cancel_at": null,\n "cancel_at_period_end": false,\n "canceled_at": null,\n "collection_method": "charge_automatically",\n "created": 1674302948,\n "currency": "eur",\n "current_period_end": 1676981348,\n "current_period_start": 1674302948,\n "customer": "cus_MrtgqQxPM3z229",\n "days_until_due": null,\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "ended_at": null,\n "items": {\n "object": "list",\n "data": [\n {\n "id": "si_ND64oIq5CfikgT",\n "object": "subscription_item",\n "billing_thresholds": null,\n "created": 1674302948,\n "metadata": {},\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "quantity": 1,\n "subscription": "sub_1MSfseAbmaEugrFTITdcaWsZ",\n "tax_rates": []\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/subscription_items?subscription=sub_1MSfseAbmaEugrFTITdcaWsZ"\n },\n "latest_invoice": {\n "id": "in_1MSfseAbmaEugrFTCkMtylDC",\n "object": "invoice",\n "account_country": "FR",\n "account_name": "dd",\n "account_tax_ids": null,\n "amount_due": 1100,\n "amount_paid": 0,\n "amount_remaining": 1100,\n "application": null,\n "application_fee_amount": null,\n "attempt_count": 0,\n "attempted": false,\n "auto_advance": false,\n "automatic_tax": {\n "enabled": false,\n "status": null\n },\n "billing_reason": "subscription_create",\n "charge": null,\n "collection_method": "charge_automatically",\n "created": 1674302948,\n "currency": "eur",\n "custom_fields": null,\n "customer": "cus_MrtgqQxPM3z229",\n "customer_address": {\n "city": "",\n "country": "",\n "line1": null,\n "line2": null,\n "postal_code": null,\n "state": null\n },\n "customer_email": "mysytraining@gmail.com",\n "customer_name": "3IL",\n "customer_phone": null,\n "customer_shipping": null,\n "customer_tax_exempt": "none",\n "customer_tax_ids": [],\n "default_payment_method": null,\n "default_source": null,\n "default_tax_rates": [],\n "description": null,\n "discount": null,\n "discounts": [],\n "due_date": null,\n "ending_balance": 0,\n "footer": null,\n "from_invoice": null,\n "hosted_invoice_url": "https://invoice.stripe.com/i/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDY0ZlRBZGVoNkpUaUJ5NVpva3pqRXJjWnpROGNWLDY0ODQzNzQ50200nVAyTRdK?s=ap",\n "invoice_pdf": "https://pay.stripe.com/invoice/acct_1LUUfAAbmaEugrFT/test_YWNjdF8xTFVVZkFBYm1hRXVnckZULF9ORDY0ZlRBZGVoNkpUaUJ5NVpva3pqRXJjWnpROGNWLDY0ODQzNzQ50200nVAyTRdK/pdf?s=ap",\n "last_finalization_error": null,\n "latest_revision": null,\n "lines": {\n "object": "list",\n "data": [\n {\n "id": "il_1MSfseAbmaEugrFTm7tt8zWD",\n "object": "line_item",\n "amount": 1100,\n "amount_excluding_tax": 1100,\n "currency": "eur",\n "description": "1 × sample_premium (at €11.00 / month)",\n "discount_amounts": [],\n "discountable": true,\n "discounts": [],\n "livemode": false,\n "metadata": {},\n "period": {\n "end": 1676981348,\n "start": 1674302948\n },\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "price": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "price",\n "active": true,\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "custom_unit_amount": null,\n "livemode": false,\n "lookup_key": null,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "recurring": {\n "aggregate_usage": null,\n "interval": "month",\n "interval_count": 1,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "tax_behavior": "unspecified",\n "tiers_mode": null,\n "transform_quantity": null,\n "type": "recurring",\n "unit_amount": 1100,\n "unit_amount_decimal": "1100"\n },\n "proration": false,\n "proration_details": {\n "credited_items": null\n },\n "quantity": 1,\n "subscription": "sub_1MSfseAbmaEugrFTITdcaWsZ",\n "subscription_item": "si_ND64oIq5CfikgT",\n "tax_amounts": [],\n "tax_rates": [],\n "type": "subscription",\n "unit_amount_excluding_tax": "1100"\n }\n ],\n "has_more": false,\n "total_count": 1,\n "url": "/v1/invoices/in_1MSfseAbmaEugrFTCkMtylDC/lines"\n },\n "livemode": false,\n "metadata": {},\n "next_payment_attempt": null,\n "number": "E58073E6-0447",\n "on_behalf_of": null,\n "paid": false,\n "paid_out_of_band": false,\n "payment_intent": {\n "id": "pi_3MSfseAbmaEugrFT0ZAiaJ0X",\n "object": "payment_intent",\n "amount": 1100,\n "amount_capturable": 0,\n "amount_details": {\n "tip": {}\n },\n "amount_received": 0,\n "application": null,\n "application_fee_amount": null,\n "automatic_payment_methods": null,\n "canceled_at": null,\n "cancellation_reason": null,\n "capture_method": "automatic",\n "charges": {\n "object": "list",\n "data": [],\n "has_more": false,\n "total_count": 0,\n "url": "/v1/charges?payment_intent=pi_3MSfseAbmaEugrFT0ZAiaJ0X"\n },\n "client_secret": "pi_3MSfseAbmaEugrFT0ZAiaJ0X_secret_Z6LkQGXIYtEEJGkUja5icUR2g",\n "confirmation_method": "automatic",\n "created": 1674302948,\n "currency": "eur",\n "customer": "cus_MrtgqQxPM3z229",\n "description": "Subscription creation",\n "invoice": "in_1MSfseAbmaEugrFTCkMtylDC",\n "last_payment_error": null,\n "livemode": false,\n "metadata": {},\n "next_action": null,\n "on_behalf_of": null,\n "payment_method": null,\n "payment_method_options": {\n "card": {\n "installments": null,\n "mandate_options": null,\n "network": null,\n "request_three_d_secure": "automatic"\n },\n "sepa_debit": {}\n },\n "payment_method_types": [\n "card",\n "sepa_debit"\n ],\n "processing": null,\n "receipt_email": null,\n "review": null,\n "setup_future_usage": "off_session",\n "shipping": null,\n "source": null,\n "statement_descriptor": null,\n "statement_descriptor_suffix": null,\n "status": "requires_payment_method",\n "transfer_data": null,\n "transfer_group": null\n },\n "payment_settings": {\n "default_mandate": null,\n "payment_method_options": null,\n "payment_method_types": null\n },\n "period_end": 1674302948,\n "period_start": 1674302948,\n "post_payment_credit_notes_amount": 0,\n "pre_payment_credit_notes_amount": 0,\n "quote": null,\n "receipt_number": null,\n "rendering_options": null,\n "starting_balance": 0,\n "statement_descriptor": null,\n "status": "open",\n "status_transitions": {\n "finalized_at": 1674302948,\n "marked_uncollectible_at": null,\n "paid_at": null,\n "voided_at": null\n },\n "subscription": "sub_1MSfseAbmaEugrFTITdcaWsZ",\n "subtotal": 1100,\n "subtotal_excluding_tax": 1100,\n "tax": null,\n "test_clock": null,\n "total": 1100,\n "total_discount_amounts": [],\n "total_excluding_tax": 1100,\n "total_tax_amounts": [],\n "transfer_data": null,\n "webhooks_delivered_at": 1674302948\n },\n "livemode": false,\n "metadata": {},\n "next_pending_invoice_item_invoice": null,\n "on_behalf_of": null,\n "pause_collection": null,\n "payment_settings": {\n "payment_method_options": null,\n "payment_method_types": null,\n "save_default_payment_method": "off"\n },\n "pending_invoice_item_interval": null,\n "pending_setup_intent": null,\n "pending_update": null,\n "plan": {\n "id": "price_1LpyndAbmaEugrFTKZAAkm72",\n "object": "plan",\n "active": true,\n "aggregate_usage": null,\n "amount": 1100,\n "amount_decimal": "1100",\n "billing_scheme": "per_unit",\n "created": 1665080881,\n "currency": "eur",\n "interval": "month",\n "interval_count": 1,\n "livemode": false,\n "metadata": {},\n "nickname": null,\n "product": "prod_MZ71B8JnZPoL32",\n "tiers_mode": null,\n "transform_usage": null,\n "trial_period_days": null,\n "usage_type": "licensed"\n },\n "quantity": 1,\n "schedule": null,\n "start_date": 1674302948,\n "status": "incomplete",\n "test_clock": null,\n "transfer_data": null,\n "trial_end": null,\n "trial_start": null\n}' message='API response body' +DEBUG:stripe:link=https://dashboard.stripe.com/test/logs/req_8wc8OUIAb9xZib message='Dashboard link for request' +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:09:09] "POST /myclass/api/create-subscription/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\class_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 2253828225616 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253828225616 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 2253828225616 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253828225616 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 2253828277648 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253828277648 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 2253828277648 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253828277648 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 2253512333712 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253512333712 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 2253512333712 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2253512333712 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:19:23.805077 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-01-21 13:19:23.805077 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 13:19:23.806066 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:19:23.806066 : ++ FLASK PORT 5001 ++ +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\class_mgt.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 2980935989008 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980935989008 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 2980935989008 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980935989008 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 2980936024528 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980936024528 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 2980936024528 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980936024528 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 2980936169936 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980936169936 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:20:06.331272 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-01-21 13:20:06.331272 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 13:20:06.331272 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:20:06.331272 : ++ FLASK PORT 5001 ++ +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 2980936169936 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2980936169936 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1905051563152 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1905051563152 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1905051563152 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1905051563152 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1905051500688 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1905051500688 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 1905051500688 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1905051500688 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1905051500944 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:23:10.165608 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-01-21 13:23:10.165608 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 13:23:10.165608 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:23:10.165608 : ++ FLASK PORT 5001 ++ +DEBUG:filelock:Lock 1905051500944 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1905051500944 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1905051500944 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:root:2023-01-21 13:23:48.983621 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:23:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:23:49.059183 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:23:49] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:23:57.960566 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:23:57.963579 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:23:57.966578 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:23:57] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:23:57] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:23:57] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:24:44.693423 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:24:45.485594 : Add_Update_SessionFormation_mass : entete du fichier csv. 'distantiel' n'est pas acceptée +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:24:45] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:25:13.659099 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:25:13.707684 : CheckisDate -time data '23/02/223' does not match format '%d/%m/%Y' - ERRORRRR AT Line : 501 +INFO:root:2023-01-21 13:25:13.712736 : Add_Update_SessionFormation_mass - Impossible de créer/mettre à jour la session de formation à ligne 0.La date debut n'est pas au format jj/mm/aaaa +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:25:13] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 2324976891664 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2324976891664 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 2324976891664 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2324976891664 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 2324976847696 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2324976847696 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 2324976847696 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2324976847696 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 2324976843088 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 2324976843088 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:26:26.293276 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +INFO:root:2023-01-21 13:26:26.293276 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +DEBUG:filelock:Attempting to release lock 2324976843088 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:26:26.294273 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:26:26.294273 : ++ FLASK PORT 5001 ++ +DEBUG:filelock:Lock 2324976843088 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:root:2023-01-21 13:26:30.655404 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:26:31.444656 : CheckisDate -time data '23/02/223' does not match format '%d/%m/%Y' - ERRORRRR AT Line : 501 +INFO:root:2023-01-21 13:26:31.448655 : Add_Update_SessionFormation_mass - Impossible de créer/mettre à jour la session de formation à ligne 2.La date debut n'est pas au format jj/mm/aaaa +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:26:31] "POST /myclass/api/Add_Update_SessionFormation_mass/ HTTP/1.1" 200 - +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1989883820816 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989883820816 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1989883820816 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989883820816 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1989883856400 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989883856400 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 1989883856400 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989883856400 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1989884381008 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989884381008 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:27:55.094157 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +INFO:root:2023-01-21 13:27:55.094157 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 13:27:55.094157 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:27:55.094157 : ++ FLASK PORT 5001 ++ +DEBUG:filelock:Attempting to release lock 1989884381008 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1989884381008 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:werkzeug: * Detected change in 'C:\\Users\\cheri\\Documents\\myclass.com\\Siteweb\\Production\\Ela_back\\Back_Office\\Session_Formation.py', reloading +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 3129678231312 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 3129678231312 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 3129678231312 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 3129678231312 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 3129678186960 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 3129678186960 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 3129678186960 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 3129678186960 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 3129683555280 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 3129683555280 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +INFO:root:2023-01-21 13:29:30.298711 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +DEBUG:filelock:Attempting to release lock 3129683555280 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 13:29:30.298711 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 13:29:30.298711 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 13:29:30.299711 : ++ FLASK PORT 5001 ++ +DEBUG:filelock:Lock 3129683555280 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:root:2023-01-21 13:32:48.744502 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:32:48.747586 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:32:48.750780 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:48] "POST /myclass/api/GetPartnerAttestation_Certificat/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:48] "POST /myclass/api/GetAllValideSessionFormation_List/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:48] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:32:49.991539 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:32:49.995534 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:49] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:32:49.998536 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 13:32:50.004549 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:50] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 13:32:51.654877 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 13:32:51] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +DEBUG:filelock:Attempting to acquire lock 1318941286416 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941286416 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1318941286416 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941286416 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1318941289296 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941289296 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 1318941289296 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941289296 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1318941289552 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941289552 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1318941289552 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1318941289552 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 17:09:20.488773 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +INFO:root:2023-01-21 17:09:20.488773 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 17:09:20.489777 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 17:09:20.489777 : ++ FLASK PORT 5001 ++ +INFO:werkzeug:WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://localhost:5001 +INFO:werkzeug:Press CTRL+C to quit +INFO:werkzeug: * Restarting with stat +DEBUG:filelock:Attempting to acquire lock 1832852531664 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1832852531664 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +DEBUG:filelock:Attempting to release lock 1832852531664 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1832852531664 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Starting optional update of built-in blacklist. +DEBUG:filelock:Attempting to acquire lock 1832852652432 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1832852652432 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.updater:Not updating because file is fresh enough. +DEBUG:filelock:Attempting to release lock 1832852652432 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1832852652432 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Attempting to acquire lock 1832854153232 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:filelock:Lock 1832854153232 acquired on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +DEBUG:validate_email.domainlist_check:(Re)loading blacklist from C:\Users\cheri\Documents\myclass.com\Siteweb\Production\Ela_back\Back_Office\venv\Lib\site-packages\validate_email\data\blacklist.txt +INFO:root:2023-01-21 17:09:28.114217 : ++++ ENVIRONNEMENT DEVELOPPEMENT ++++ +DEBUG:filelock:Attempting to release lock 1832854153232 on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +INFO:root:2023-01-21 17:09:28.114217 : ++ DATABASE mongodb://localhost:27017/cherifdb_dev ++ +INFO:root:2023-01-21 17:09:28.114217 : ++ DBNAME Database(MongoClient(host=['localhost:27017'], document_class=dict, tz_aware=False, connect=True), 'cherifdb_dev') ++ +INFO:root:2023-01-21 17:09:28.115219 : ++ FLASK PORT 5001 ++ +DEBUG:filelock:Lock 1832854153232 released on C:\Users\cheri\AppData\Local\Temp\tmp-py3-validate-email-1\blacklistupdater.lock +WARNING:werkzeug: * Debugger is active! +INFO:werkzeug: * Debugger PIN: 127-713-359 +INFO:root:2023-01-21 17:09:28.292042 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:09:28.966287 : partner_login Connexion partnair mysytraining@gmail.com : OK, Date : 2023-01-21 17:09:28.293046 , _id = 638139d0934a818b1f6f85f7 +INFO:root:2023-01-21 17:09:28.979965 : partner_login Connexion partener_token : OK , _id = 63813a72b4c6b1dce20a0481 +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:28] "POST /myclass/api/partner_login/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:09:29.185048 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:09:29.187567 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:09:29.190113 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:29] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:09:29.216114 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:29] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:29] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:09:29.428307 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:29] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:09:32.944714 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:09:32.947602 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:09:32] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:11:35.110970 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:11:35.113970 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:11:35] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:11:35] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:12:49.614253 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:12:49.616253 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:12:49] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:12:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:13:32.361672 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:13:32.371695 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:13:32] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:13:32] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:07.861850 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:16:07.864848 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:07] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:07] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:15.894859 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:16:15.897859 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:15] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:15.900861 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:16:15.903858 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:15] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:15] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:16.406961 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:16] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:22.044010 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:16:22.048012 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:22] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:22] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:16:37.762673 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:16:37.765676 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:37] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:16:37] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:23:50.760557 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:23:50.762558 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:50] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:50] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:23:54.382149 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:23:54.385143 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:23:54.387145 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:54] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:23:54.393157 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:54] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:54] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:23:55.007347 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:55] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:23:57.451449 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:23:57.453454 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:57] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:23:57] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:29:38.925041 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:29:38.928043 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:38] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:29:38.931041 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:29:38.969595 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:38] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:38] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:29:39.534861 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:39] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:29:42.604094 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:29:42.607100 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:42] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:42] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:29:52.582034 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:29:52.585037 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:52] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:29:52] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:00.371746 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:00.374747 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:00] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:00.378744 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:00.382747 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:00] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:00] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:01.057582 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:01] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:04.148259 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:04.154261 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:04] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:04] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:45.866088 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:45.869096 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:45] "POST /myclass/api/getRecodedImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:45.872096 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:45.876090 : Connexion du partner recid = 57c241ea55744b884d1f6c974e90fd1f905556bb1c80677d7d OK. Mise à jour du firstconnexion et/ou lastconnexion : OK +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:45] "POST /myclass/api/get_partner_account/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:45] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:46.739236 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:46] "POST /myclass/api/find_partner_class_like/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:49.919075 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:49.922073 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:49] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:49] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:34:59.063817 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:34:59.070803 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:59] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:34:59] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:02.901686 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:02.905690 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:02] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:02] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:16.125812 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:16.129823 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:16] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:16] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:19.719446 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:19.722457 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:19] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:19] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:23.289354 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:23.295359 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:23] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:23] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:26.366294 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:26.371290 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:26] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:26] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - +INFO:root:2023-01-21 17:35:33.830764 : Security check : IP adresse '127.0.0.1' connected +INFO:root:2023-01-21 17:35:33.834760 : Security check : IP adresse '127.0.0.1' connected +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:33] "POST /myclass/api/getRecodedClassImage/ HTTP/1.1" 200 - +INFO:werkzeug:127.0.0.1 - - [21/Jan/2023 17:35:33] "POST /myclass/api/get_partner_class/ HTTP/1.1" 200 - diff --git a/Session_Formation.py b/Session_Formation.py index 3c3df88..a2390c6 100644 --- a/Session_Formation.py +++ b/Session_Formation.py @@ -572,27 +572,26 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): for n in x: mydata = {} - mydata['date_debut'] = str(df['date_debut'].values[n]).strip().split(" ")[0] local_status = mycommon.CheckisDate(mydata['date_debut']) if(local_status is False ): mycommon.myprint( str(inspect.stack()[0][ - 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne "+str(n)+"." + 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne "+str(n+2)+"." "La date debut n'est pas au format jj/mm/aaaa ") - return False, " - Impossible de créer/mettre à jour la session de formation à ligne "+str(n)+". La date debut n'est pas au format jj/mm/aaaa " + return False, " - Impossible de créer/mettre à jour la session de formation à ligne "+str(n+2)+". La date debut n'est pas au format jj/mm/aaaa " mydata['date_fin'] = str(df['date_fin'].values[n]).strip().split(" ")[0] local_status = mycommon.CheckisDate(mydata['date_fin']) if (local_status is False): mycommon.myprint( str(inspect.stack()[0][ - 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n) + "." + 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "." "La date date_fin n'est pas au format jj/mm/aaaa ") return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str( - n) + ". La date fin n'est pas au format jj/mm/aaaa " + n+1) + ". La date fin n'est pas au format jj/mm/aaaa " ## Verification de la cohérence des dates. Date_du doit <= Date_au @@ -601,10 +600,10 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): mycommon.myprint( str(inspect.stack()[0][ 3]) + " - Impossible de créer la session de formation : La date debut " + str(mydata['date_debut']) + - " est postérieur à la date de fin " + str(mydata['date_fin']) + " pour la ligne "+str(n)+" ") + " est postérieur à la date de fin " + str(mydata['date_fin']) + " pour la ligne "+str(n+2)+" ") return False, " Impossible de créer la session de formation : La date debut " + str(mydata['date_debut']) +\ - " est postérieur à la date de fin " + str(mydata['date_fin']) + " pour la ligne "+str(n)+" " + " est postérieur à la date de fin " + str(mydata['date_fin']) + " pour la ligne "+str(n+2)+" " local_nb_participants = "0" @@ -615,8 +614,8 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): local_status, new_participants = mycommon.IsInt(local_nb_participants) if (local_status is False): mycommon.myprint( - str(inspect.stack()[0][3]) + " Le champs 'nb_participant' de ligne " + str(n) + " est incorrecte.") - return False, " Le champs nb_participant de ligne " + str(n) + " est incorrecte. " + str(inspect.stack()[0][3]) + " Le champs 'nb_participant' de ligne " + str(n+2) + " est incorrecte.") + return False, " Le champs nb_participant de ligne " + str(n+2) + " est incorrecte. " mydata['nb_participant'] = str(new_participants) @@ -628,8 +627,8 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): local_status, new_prix_session = mycommon.IsFloat(prix_session) if (local_status is False): mycommon.myprint( - str(inspect.stack()[0][3]) + " Le champs 'prix_session' de ligne " + str(n) + " est incorrecte.") - return False, " Le champs prix_session de ligne " + str(n) + " est incorrecte. " + str(inspect.stack()[0][3]) + " Le champs 'prix_session' de ligne " + str(n+2) + " est incorrecte.") + return False, " Le champs prix_session de ligne " + str(n+2) + " est incorrecte. " mydata['prix_session'] = str(new_prix_session) @@ -694,8 +693,8 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): if( str(local_session) != "0" and str(local_session) != "1" and str(local_session) != "2"): mycommon.myprint( - str(inspect.stack()[0][3]) + " Le champs 'session_status' de ligne " + str(n) + " est incorrecte. Les valeurs acceptées sont 0,1,2") - return False, " Le champs 'session_status' de ligne " + str(n) + " est incorrecte. Les valeurs acceptées sont 0,1,2" + str(inspect.stack()[0][3]) + " Le champs 'session_status' de ligne " + str(n+2) + " est incorrecte. Les valeurs acceptées sont 0,1,2") + return False, " Le champs 'session_status' de ligne " + str(n+2) + " est incorrecte. Les valeurs acceptées sont 0,1,2" if( str(local_session) == "1"): mydata['session_status'] = str("true") @@ -706,11 +705,11 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): if (local_status is False): mycommon.myprint( str(inspect.stack()[0][ - 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n) + "." + 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "." "La date_debut_inscription n'est pas au format jj/mm/aaaa ") return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str( - n) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa " + n+2) + ". La date_debut_inscription n'est pas au format jj/mm/aaaa " mydata['date_fin_inscription'] = str(df['date_fin_inscription'].values[n]).strip().split(" ")[0] @@ -718,11 +717,11 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): if (local_status is False): mycommon.myprint( str(inspect.stack()[0][ - 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n) + "." + 3]) + " - Impossible de créer/mettre à jour la session de formation à ligne " + str(n+2) + "." "La date_fin_inscription n'est pas au format jj/mm/aaaa ") return False, " - Impossible de créer/mettre à jour la session de formation à ligne " + str( - n) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa " + n+1) + ". La date_fin_inscription n'est pas au format jj/mm/aaaa " ## Verification de la cohérence des dates. Date_du doit <= Date_au if (datetime.strptime(str(mydata['date_debut_inscription']).strip(), '%d/%m/%Y') > datetime.strptime( @@ -731,9 +730,9 @@ def Add_Update_SessionFormation_mass(file=None, Folder=None, diction=None): str(inspect.stack()[0][ 3]) + " - Impossible de créer la session de formation : La date debut des inscriptions " + str( mydata['date_debut_inscription']) + - " est postérieur à la date de fin des inscriptions " + str(mydata['date_fin_inscription']) + " pour la ligne "+str(n)+" ") + " est postérieur à la date de fin des inscriptions " + str(mydata['date_fin_inscription']) + " pour la ligne "+str(n+2)+" ") - return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne "+str(n)+" " + return False, " Impossible de créer la session de formation : La date de fin des inscriptions est antérieure à la date de début des inscriptions : Ligne "+str(n+2)+" " mydata['token'] = str(my_token) mydata['class_internal_url'] = str(class_internal_url) diff --git a/class_mgt.py b/class_mgt.py index a924e2a..7386f6f 100644 --- a/class_mgt.py +++ b/class_mgt.py @@ -45,7 +45,7 @@ def add_class(diction): ''' field_list = ['external_code', 'title', 'description', 'trainer', 'institut_formation', 'distantiel', 'presentiel', 'price', 'url','duration', 'duration_unit', 'token', 'plus_produit', 'mots_cle','domaine', - 'internal_url', 'zone_diffusion', 'metier', 'date_lieu', 'published', 'img_url', 'objectif', + 'internal_url', 'zone_diffusion', 'metier', 'published', 'img_url', 'objectif', 'programme', 'prerequis', 'note', 'cpf', 'certif', 'class_inscription_url', 'pourqui', 'support', 'img_banner_detail_class'] @@ -330,7 +330,7 @@ def add_class(diction): Traitement date_lieu. Date_lieu definit une session et au format : date_du;data_au;ville;code_postal; adresse - ''' + mydata['datelieu'] = "" if ("date_lieu" in diction.keys()): @@ -450,6 +450,7 @@ def add_class(diction): "jj/mm/aaaa-jj/mm/aaaa-ville-code_postale-adresse;jj/mm/aaaa-jj/mm/aaaa-ville-code_postale-adresse 1" mydata['datelieu'] = tab_dl + ''' mydata['valide'] = '1' mydata['locked'] = '0' @@ -554,7 +555,7 @@ def update_class(diction): field_list = ['external_code', 'title', 'description', 'trainer', 'institut_formation', 'distantiel', 'presentiel','price', 'url', 'duration', 'token','plus_produit', 'mots_cle', 'domaine', 'internal_code', 'internal_url','zone_diffusion', 'metier', - 'date_lieu', 'published', 'img_url', 'objectif', 'programme', 'prerequis', 'note', + 'published', 'img_url', 'objectif', 'programme', 'prerequis', 'note', 'cpf', 'certif', 'class_inscription_url','pourqui', 'support', 'img_banner_detail_class'] incom_keys = diction.keys() @@ -768,7 +769,7 @@ def update_class(diction): Traitement date_lieu. Date_lieu definit une session et au format : date_du;data_au;ville;code_postal; adresse - ''' + mydata['datelieu'] = "" if ("date_lieu" in diction.keys()): if(len(str(diction['date_lieu'])) == 0 ): @@ -882,7 +883,7 @@ def update_class(diction): "jj/mm/aaaa-jj/mm/aaaa-ville-code_postale-adresse;jj/mm/aaaa-jj/mm/aaaa-ville-code_postale-adresse 1" mydata['datelieu'] = tab_dl - + ''' mydata['date_update'] = str(datetime.now()) # A supprimer apres @@ -2452,7 +2453,7 @@ def add_class_mass(file=None, Folder=None, diction=None): ''' field_list = ['external_code', 'titre', 'description', 'formateur', 'institut_formation', 'distantiel', 'presentiel', 'prix', 'domaine', 'url','duree', 'plus_produit', - 'mots_cle', 'zone_diffusion', 'metier', 'date_lieu', 'publie', 'img_url', + 'mots_cle', 'zone_diffusion', 'metier', 'publie', 'img_url', 'objectif', 'programme', 'prerequis', 'formateur', 'note', 'cpf', 'certif', 'class_inscription_url', 'pourqui', 'support', 'img_banner_detail_class'] @@ -2503,28 +2504,28 @@ def add_class_mass(file=None, Folder=None, diction=None): if ("external_code" not in df.keys()): mycommon.myprint(str( inspect.stack()[0][ - 3]) + " - Absence de 'external_code' pour la formation à la ligne "+str(n)) - return False, " Absence de 'external_code' pour la formation à la ligne "+str(n) + 3]) + " - Absence de 'external_code' pour la formation à la ligne "+str(n+2)) + return False, " Absence de 'external_code' pour la formation à la ligne "+str(n+2) if ("titre" not in df.keys()): mycommon.myprint(str( inspect.stack()[0][ - 3]) + " - Absence de 'titre' pour la formation à la ligne "+str(n)) - return False, " Absence de 'titre' pour la formation à la ligne "+str(n) + 3]) + " - Absence de 'titre' pour la formation à la ligne "+str(n+2)) + return False, " Absence de 'titre' pour la formation à la ligne "+str(n+2) if ("domaine" not in df.keys()): mycommon.myprint(str( inspect.stack()[0][ - 3]) + " - Absence de 'domaine' pour la formation à la ligne "+str(n)) - return False, " Absence de 'domaine' pour la formation à la ligne "+str(n) + 3]) + " - Absence de 'domaine' pour la formation à la ligne "+str(n+2)) + return False, " Absence de 'domaine' pour la formation à la ligne "+str(n+2) if ("domaine" not in df.keys()): mycommon.myprint(str( inspect.stack()[0][ - 3]) + " - Absence de 'description' pour la formation à la ligne "+str(n)) - return False, " Absence de 'description' pour la formation à la ligne "+str(n) + 3]) + " - Absence de 'description' pour la formation à la ligne "+str(n+2)) + return False, " Absence de 'description' pour la formation à la ligne "+str(n+2) mydata['external_code'] = str(df['external_code'].values[n]).strip() @@ -2723,14 +2724,14 @@ def add_class_mass(file=None, Folder=None, diction=None): ''' Traitement des date et lieu de la formation - ''' + date_lieu = "" if ("date_lieu" in df.keys()): if(str(df['date_lieu'].values[n])): date_lieu =str(df['date_lieu'].values[n]).strip() mydata['date_lieu'] = date_lieu - + ''' if ("token" in diction.keys()): if diction['token']: