File size: 367 Bytes
2d73b8f
101ef6c
f0995ed
9365a43
 
 
2d73b8f
9365a43
 
 
2902d8c
9365a43
 
101ef6c
c02ddff
101ef6c
7b23511
101ef6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 funciones.procesa_evento(request, stripe_signature)