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.params = {
|
||||
'numeroConvenio': 701,
|
||||
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||
'gw-dev-app-key': getenv("DEV_APP_KEY")
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class Register(BBPay):
|
||||
def post(self):
|
||||
data = request.get_json()
|
||||
body = {
|
||||
'numeroConvenio': 701,
|
||||
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||
'nomeParticipante': data['chainID'],
|
||||
'tipoDocumento': data['tipoDocumento'],
|
||||
'numeroDocumento': data['numeroDocumento'],
|
||||
@@ -79,7 +79,7 @@ class Request(BBPay):
|
||||
data = request.get_json()
|
||||
body = {
|
||||
"geral": {
|
||||
"numeroConvenio": 701,
|
||||
"numeroConvenio": getenv("BBPAY_CONVENIO"),
|
||||
"pagamentoUnico": True,
|
||||
"descricaoSolicitacao": "P2Pix",
|
||||
"valorSolicitacao": data['amount'],
|
||||
|
||||
Reference in New Issue
Block a user