Compare commits
3 Commits
ae01e72776
...
04a3ed6046
Author | SHA1 | Date | |
---|---|---|---|
|
04a3ed6046 | ||
|
9da3fe0e24 | ||
|
18bf7c389b |
7
bbpay.py
7
bbpay.py
@ -65,7 +65,8 @@ class Register(BBPay):
|
|||||||
'numeroConta': data['numeroConta'],
|
'numeroConta': data['numeroConta'],
|
||||||
'numeroAgencia': data['numeroAgencia'],
|
'numeroAgencia': data['numeroAgencia'],
|
||||||
'tipoConta': data['tipoConta'],
|
'tipoConta': data['tipoConta'],
|
||||||
'codigoIspb': 0 # Código identificador do Sistema de Pagamentos Brasileiro. Atualmente aceitamos apenas Banco do Brasil, codigoIspb igual a 0
|
'codigoIspb': data['codigoIspb'] # Código identificador do Sistema de Pagamentos Brasileiro. Atualmente aceitamos apenas Banco do Brasil, codigoIspb igual a 0
|
||||||
|
'
|
||||||
}
|
}
|
||||||
response = self.oauth.post(
|
response = self.oauth.post(
|
||||||
self.baseUrl+"/participantes",
|
self.baseUrl+"/participantes",
|
||||||
@ -124,8 +125,8 @@ class Release(BBPay):
|
|||||||
signable = eth_account.messages.encode_defunct(keccak(packed))
|
signable = eth_account.messages.encode_defunct(keccak(packed))
|
||||||
signature = eth_account.account.Account.sign_message(signable, private_key=getenv('PRIVATE_KEY')).signature.hex()
|
signature = eth_account.account.Account.sign_message(signable, private_key=getenv('PRIVATE_KEY')).signature.hex()
|
||||||
return {
|
return {
|
||||||
'pixTarget': numeroParticipante,
|
'pixTarget': str(numeroParticipante),
|
||||||
'amount': valorSolicitacao,
|
'amount': str(valorSolicitacao),
|
||||||
'pixTimestamp': pixTimestamp.hex(),
|
'pixTimestamp': pixTimestamp.hex(),
|
||||||
'signature': signature }
|
'signature': signature }
|
||||||
|
|
||||||
|
@ -7,6 +7,5 @@ eth-abi
|
|||||||
eth-account
|
eth-account
|
||||||
eth-hash[pycryptodome]
|
eth-hash[pycryptodome]
|
||||||
eth-utils
|
eth-utils
|
||||||
base64
|
|
||||||
urllib3
|
urllib3
|
||||||
waitress
|
waitress
|
Loading…
x
Reference in New Issue
Block a user