Skip to content

Commit d2b084a

Browse files
authored
Merge pull request #97 from bobbrodie/6.0.x
SP-893 Fix Python POS client creation
2 parents 4b4b754 + e747e89 commit d2b084a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bitpay"
7-
version = "6.0.0"
7+
version = "6.0.1"
88
authors = [
99
{ name="Antonio Buedo", email="[email protected]" },
1010
]

src/bitpay/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def __init__(
6161
)
6262

6363
@staticmethod
64-
def create_pos_client(self, pos_token: str, environment: Environment = Environment.PROD): # type: ignore
64+
def create_pos_client(pos_token: str, environment: Environment = Environment.PROD): # type: ignore
6565
token_container = TokenContainer()
6666
token_container.add_pos(pos_token)
6767

68-
bitpay_client = BitPayClient(self.get_base_url(environment))
68+
bitpay_client = BitPayClient(Client.get_base_url(environment))
6969

7070
return Client(bitpay_client, token_container, GuidGenerator())
7171

src/bitpay/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ class Config(Enum):
55
TEST_URL = "https://test.bitpay.com/"
66
PROD_URL = "https://bitpay.com/"
77
BITPAY_API_VERSION = "2.0.0"
8-
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v6.0.0"
8+
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v6.0.1"
99
BITPAY_API_FRAME = "std"
1010
BITPAY_API_FRAME_VERSION = "1.0.0"

0 commit comments

Comments
 (0)