main: Import stripe python module
All checks were successful
Build Docker / Build Master (push) Successful in 26s
Build Docker / Build Bot (push) Successful in 25s

This commit is contained in:
Nathan Woodburn 2023-08-24 16:44:17 +10:00
parent 230dc2a12a
commit 969e5e17a5
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -2,6 +2,7 @@ from flask import Flask, request, jsonify
import dotenv
import os
import requests
import stripe
dotenv.load_dotenv()
@ -240,7 +241,7 @@ def stripeapi():
payload = request.data
stripe.api_key = os.getenv('STRIPE_SECRET')
endpoint_secret = os.getenv('STRIPE_ENDPOINT_SECRET')
sig_header = request.headers.get('HTTP_STRIPE_SIGNATURE')
sig_header = request.headers.get('Stripe-Signature')
events = None
try:
event = stripe.Webhook.construct_event(