Print Request Data
Browse files
main.py
CHANGED
|
@@ -36,6 +36,9 @@ async def webhook_received(request: Request, stripe_signature: str = Header(None
|
|
| 36 |
#webhook_secret = os.environ["STRIPE_WEBHOOK_SECRET"]
|
| 37 |
|
| 38 |
data = await request.body()
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
event = stripe.Webhook.construct_event(
|
| 41 |
payload=data,
|
|
@@ -56,7 +59,7 @@ async def webhook_received(request: Request, stripe_signature: str = Header(None
|
|
| 56 |
print('charge succeed')
|
| 57 |
autorizacion = sulkuPypi.authorize(19, 'picswap')
|
| 58 |
print("Autorización: ", autorizacion)
|
| 59 |
-
|
| 60 |
else:
|
| 61 |
print(f'unhandled event: {event_type}')
|
| 62 |
|
|
|
|
| 36 |
#webhook_secret = os.environ["STRIPE_WEBHOOK_SECRET"]
|
| 37 |
|
| 38 |
data = await request.body()
|
| 39 |
+
print("Estoy imprimiendo la data del request: ")
|
| 40 |
+
print(data)
|
| 41 |
+
print("TERMINÉ")
|
| 42 |
|
| 43 |
event = stripe.Webhook.construct_event(
|
| 44 |
payload=data,
|
|
|
|
| 59 |
print('charge succeed')
|
| 60 |
autorizacion = sulkuPypi.authorize(19, 'picswap')
|
| 61 |
print("Autorización: ", autorizacion)
|
| 62 |
+
|
| 63 |
else:
|
| 64 |
print(f'unhandled event: {event_type}')
|
| 65 |
|