Skip to content

Commit b746fed

Browse files
authored
Merge pull request #96 from bobbrodie/5.0.x
SP-893 Fix POS client creation
2 parents 75c377d + 647501d commit b746fed

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 = "5.0.4"
7+
version = "5.0.5"
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
@@ -57,11 +57,11 @@ def __init__(
5757
raise BitPayException("failed to initiate clients: " + str(exe))
5858

5959
@staticmethod
60-
def create_pos_client(self, pos_token: str, environment: Environment = Environment.PROD): # type: ignore
60+
def create_pos_client(pos_token: str, environment: Environment = Environment.PROD): # type: ignore
6161
token_container = TokenContainer()
6262
token_container.add_pos(pos_token)
6363

64-
bitpay_client = BitPayClient(self.get_base_url(environment))
64+
bitpay_client = BitPayClient(Client.get_base_url(environment))
6565

6666
return Client(bitpay_client, token_container, GuidGenerator())
6767

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_v5.0.4"
8+
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v5.0.5"
99
BITPAY_API_FRAME = "std"
1010
BITPAY_API_FRAME_VERSION = "1.0.0"

0 commit comments

Comments
 (0)