diff --git a/bbpay.py b/bbpay.py index af32d93..53d41dc 100755 --- a/bbpay.py +++ b/bbpay.py @@ -54,7 +54,7 @@ class BBPay(Resource): class Register(BBPay): def post(self): - data = request.get_data(as_text=True) + data = request.get_json(force=True) app.logger.debug(data) body = { 'numeroConvenio': getenv("BBPAY_CONVENIO"), @@ -80,7 +80,7 @@ class Register(BBPay): class Request(BBPay): def post(self): - data = request.get_data(as_text=True) + data = request.get_json(force=True) app.logger.debug(data) body = { "geral": {