Spaces:
Running
Running
Check card content on oxxo payment
Browse files
main.py
CHANGED
@@ -55,6 +55,13 @@ async def webhook_received(request: Request, stripe_signature: str = Header(None
|
|
55 |
print(event_data['payment_method_options'])
|
56 |
print("Cantidad de elementos:")
|
57 |
print(len(event_data['payment_method_options']))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
if event_type == 'checkout.session.async_payment_succeeded':
|
60 |
print("Pago asíncrono completado.")
|
|
|
55 |
print(event_data['payment_method_options'])
|
56 |
print("Cantidad de elementos:")
|
57 |
print(len(event_data['payment_method_options']))
|
58 |
+
#Si hay un elemento que es card abona inmediatamente.
|
59 |
+
#Si no, por ahora ignora.
|
60 |
+
#if len(event_data['payment_method_options']) > 0:
|
61 |
+
print("Imprimiendo payment method cards con pago en oxxo: ")
|
62 |
+
time.sleep(2)
|
63 |
+
print(event_data['payment_method_options']["card"])
|
64 |
+
time.sleep(3)
|
65 |
|
66 |
if event_type == 'checkout.session.async_payment_succeeded':
|
67 |
print("Pago asíncrono completado.")
|