File size: 407 Bytes
2d73b8f
101ef6c
f0995ed
b43e2e7
9365a43
 
 
2d73b8f
9365a43
b43e2e7
 
9365a43
 
2902d8c
9365a43
 
101ef6c
c02ddff
932f59f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import globales
import funciones
from fastapi import FastAPI, Request, Header
import time

app = FastAPI()

string_key = globales.llave

print ("Obtuve string key...")

@app.get("/")
def start(): 
    return {f"Status":"Deployed"}

@app.post("/webhook")
async def webhook_received(request: Request, stripe_signature: str = Header(None)):

    return await funciones.procesa_evento(request, stripe_signature)