Compare commits
1 Commits
925002c572
...
0cfb371051
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cfb371051 |
6
bbpay.py
6
bbpay.py
@@ -15,9 +15,6 @@ from eth_utils import to_wei
|
||||
|
||||
# Load environment variables from .env file
|
||||
load_dotenv()
|
||||
ENVIRONMENT = getenv('ENVIRONMENT', 'dev')
|
||||
dotenv_path = f'.env.{ENVIRONMENT}'
|
||||
load_dotenv(dotenv_path)
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app, origins=['https://p2pix.co'])
|
||||
@@ -55,7 +52,6 @@ class BBPay(Resource):
|
||||
class Register(BBPay):
|
||||
def post(self):
|
||||
data = request.get_json()
|
||||
app.logger.debug(data)
|
||||
body = {
|
||||
'numeroConvenio': getenv("BBPAY_CONVENIO"),
|
||||
'nomeParticipante': data['chainID'],
|
||||
@@ -81,7 +77,6 @@ class Register(BBPay):
|
||||
class Request(BBPay):
|
||||
def post(self):
|
||||
data = request.get_json()
|
||||
app.logger.debug(data)
|
||||
body = {
|
||||
"geral": {
|
||||
"numeroConvenio": getenv("BBPAY_CONVENIO"),
|
||||
@@ -117,7 +112,6 @@ class Request(BBPay):
|
||||
|
||||
class Release(BBPay):
|
||||
def get(self, numeroSolicitacao):
|
||||
app.logger.debug(request.get_json())
|
||||
response = self.oauth.get(
|
||||
self.baseUrl+f"/solicitacoes/{numeroSolicitacao}",
|
||||
params=self.params,
|
||||
|
||||
Reference in New Issue
Block a user