get convenio from .env
This commit is contained in:
6
bbpay.py
6
bbpay.py
@@ -31,7 +31,7 @@ class BBPay(Resource):
|
|||||||
self.token_url = getenv("ITP_TOKEN_URL")
|
self.token_url = getenv("ITP_TOKEN_URL")
|
||||||
|
|
||||||
self.params = {
|
self.params = {
|
||||||
'numeroConvenio': 701,
|
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||||
'gw-dev-app-key': getenv("DEV_APP_KEY")
|
'gw-dev-app-key': getenv("DEV_APP_KEY")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ class Register(BBPay):
|
|||||||
def post(self):
|
def post(self):
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
body = {
|
body = {
|
||||||
'numeroConvenio': 701,
|
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||||
'nomeParticipante': data['chainID'],
|
'nomeParticipante': data['chainID'],
|
||||||
'tipoDocumento': data['tipoDocumento'],
|
'tipoDocumento': data['tipoDocumento'],
|
||||||
'numeroDocumento': data['numeroDocumento'],
|
'numeroDocumento': data['numeroDocumento'],
|
||||||
@@ -79,7 +79,7 @@ class Request(BBPay):
|
|||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
body = {
|
body = {
|
||||||
"geral": {
|
"geral": {
|
||||||
"numeroConvenio": 701,
|
"numeroConvenio": getenv("BBPAY_CONVENIO"),
|
||||||
"pagamentoUnico": True,
|
"pagamentoUnico": True,
|
||||||
"descricaoSolicitacao": "P2Pix",
|
"descricaoSolicitacao": "P2Pix",
|
||||||
"valorSolicitacao": data['amount'],
|
"valorSolicitacao": data['amount'],
|
||||||
|
|||||||
Reference in New Issue
Block a user