Moibe's picture
Debug Mode gone
932f59f
raw
history blame
407 Bytes
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)