correct JSON handling
This commit is contained in:
4
bbpay.py
4
bbpay.py
@@ -54,7 +54,7 @@ class BBPay(Resource):
|
|||||||
|
|
||||||
class Register(BBPay):
|
class Register(BBPay):
|
||||||
def post(self):
|
def post(self):
|
||||||
data = request.get_data(as_text=True)
|
data = request.get_json(force=True)
|
||||||
app.logger.debug(data)
|
app.logger.debug(data)
|
||||||
body = {
|
body = {
|
||||||
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||||
@@ -80,7 +80,7 @@ class Register(BBPay):
|
|||||||
|
|
||||||
class Request(BBPay):
|
class Request(BBPay):
|
||||||
def post(self):
|
def post(self):
|
||||||
data = request.get_data(as_text=True)
|
data = request.get_json(force=True)
|
||||||
app.logger.debug(data)
|
app.logger.debug(data)
|
||||||
body = {
|
body = {
|
||||||
"geral": {
|
"geral": {
|
||||||
|
|||||||
Reference in New Issue
Block a user