File size: 466 Bytes
2d73b8f
101ef6c
f0995ed
b43e2e7
9365a43
 
 
b43e2e7
 
 
2d73b8f
9365a43
b43e2e7
 
 
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
19
20
21
22
23
24
25
import globales
import funciones
from fastapi import FastAPI, Request, Header
import time

app = FastAPI()

print("Cree fatapi...")
time.sleep(16)

string_key = globales.llave

print ("Obtuve string key...")
time.sleep(15)

@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)