Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit a31916f

Browse files
committed
altera versão do pix cobrança
1 parent b935de1 commit a31916f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: bb_wrapper/wrapper/pix_cob.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class PIXCobBBWrapper(BaseBBWrapper):
1111

1212
SCOPE = "cob.read cob.write pix.read pix.write"
1313

14-
BASE_DOMAIN = ".bb.com.br/pix/v1"
14+
BASE_DOMAIN = ".bb.com.br/pix/v2"
1515

1616
def listar_pix(self, inicio=None, fim=None, page=0):
1717
"""

Diff for: tests/wrapper/test_pix_cob.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_construct_url_1(self):
172172
"""
173173
result = PIXCobBBWrapper()._construct_url(end_bar=True)
174174

175-
expected = "https://api.sandbox.bb.com.br/pix/v1/?gw-dev-app-key="
175+
expected = "https://api.sandbox.bb.com.br/pix/v2/?gw-dev-app-key="
176176

177177
self.assertIn(expected, result)
178178

@@ -188,7 +188,7 @@ def test_construct_url_2(self):
188188
"""
189189
result = PIXCobBBWrapper()._construct_url(end_bar=False)
190190

191-
expected = "https://api.sandbox.bb.com.br/pix/v1?gw-dev-app-key="
191+
expected = "https://api.sandbox.bb.com.br/pix/v2?gw-dev-app-key="
192192

193193
self.assertIn(expected, result)
194194

0 commit comments

Comments
 (0)