added get and post for hooks
This commit is contained in:
@@ -235,13 +235,19 @@ def myproduct_provision_actions():
|
|||||||
response = MyProductsService.process_provision_actions(data)
|
response = MyProductsService.process_provision_actions(data)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
@api.route("/stripe/payments", methods=["POST","GET"])
|
@api.route("/stripe/payments", methods=["POST"])
|
||||||
def stripe_payments_webhook():
|
def stripe_payments_webhook_post():
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
logger.info(f"Route Stripe Webhook ==>>>> {data}")
|
logger.info(f"Route Stripe Webhook POST ==>>>> {data}")
|
||||||
# response = MyProductsService.process_provision_actions(data)
|
# response = MyProductsService.process_provision_actions(data)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
@api.route("/stripe/payments", methods=["GET"])
|
||||||
|
def stripe_payments_webhook_get():
|
||||||
|
data = request.args()
|
||||||
|
logger.info(f"Route Stripe Webhook GET ==>>>> {data}")
|
||||||
|
# response = MyProductsService.process_provision_actions(data)
|
||||||
|
return []
|
||||||
|
|
||||||
# /panel/account/calendar
|
# /panel/account/calendar
|
||||||
@api.route("/panel/account/calendar", methods=["POST"])
|
@api.route("/panel/account/calendar", methods=["POST"])
|
||||||
|
|||||||
Reference in New Issue
Block a user