Spaces:
Sleeping
Sleeping
File size: 365 Bytes
be256d6 101ef6c f0995ed 9365a43 be256d6 b43e2e7 9365a43 2902d8c 9365a43 101ef6c c02ddff 932f59f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#import globales
import funciones
from fastapi import FastAPI, Request, Header
app = FastAPI()
#string_key = globales.llave
@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) |