Moibe commited on
Commit
7b6556f
1 Parent(s): 79f7172

Back to normal

Browse files
Files changed (1) hide show
  1. funciones.py +2 -15
funciones.py CHANGED
@@ -91,25 +91,12 @@ def create_checkout_session(price_id, customer_email=None, customer_id=None, fir
91
  'mode': mode, #payment o subscription
92
  'payment_method_types': ['card'],
93
  'success_url': 'https://app.splashmix.ink/',
94
- 'cancel_url': 'https://app.splashmix.ink/',
95
  'locale': 'auto',
96
  # 'client_reference_id': 'HERC',
97
  'metadata': {
98
  'imagenes': unidades
99
- }, # Inicializamos metadata para a帽adir el customer_id y firebase_user si existen
100
- 'payment_intent_data': {
101
- # Habilita los m茅todos de pago autom谩ticos
102
- 'automatic_payment_methods': {
103
- 'enabled': True,
104
- 'allow_redirects': 'always',
105
- },
106
- # Configura la conversi贸n autom谩tica de moneda
107
- 'currency_conversion': {
108
- 'automatic': {
109
- 'enabled': True,
110
- },
111
- },
112
- },
113
  }
114
 
115
  # Asociar el cliente encontrado/creado a la sesi贸n
 
91
  'mode': mode, #payment o subscription
92
  'payment_method_types': ['card'],
93
  'success_url': 'https://app.splashmix.ink/',
94
+ 'cancel_url': 'https://app.splashmix.ink/',
95
  'locale': 'auto',
96
  # 'client_reference_id': 'HERC',
97
  'metadata': {
98
  'imagenes': unidades
99
+ } # Inicializamos metadata para a帽adir el customer_id y firebase_user si existen
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  }
101
 
102
  # Asociar el cliente encontrado/creado a la sesi贸n