Skip to content

Commit

Permalink
Merge pull request #96 from bobbrodie/5.0.x
Browse files Browse the repository at this point in the history
SP-893 Fix POS client creation
  • Loading branch information
bobbrodie authored Mar 11, 2024
2 parents 75c377d + 647501d commit b746fed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bitpay"
version = "5.0.4"
version = "5.0.5"
authors = [
{ name="Antonio Buedo", email="sales-engineering@bitpay.com" },
]
Expand Down
4 changes: 2 additions & 2 deletions src/bitpay/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ def __init__(
raise BitPayException("failed to initiate clients: " + str(exe))

@staticmethod
def create_pos_client(self, pos_token: str, environment: Environment = Environment.PROD): # type: ignore
def create_pos_client(pos_token: str, environment: Environment = Environment.PROD): # type: ignore
token_container = TokenContainer()
token_container.add_pos(pos_token)

bitpay_client = BitPayClient(self.get_base_url(environment))
bitpay_client = BitPayClient(Client.get_base_url(environment))

return Client(bitpay_client, token_container, GuidGenerator())

Expand Down
2 changes: 1 addition & 1 deletion src/bitpay/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ class Config(Enum):
TEST_URL = "https://test.bitpay.com/"
PROD_URL = "https://bitpay.com/"
BITPAY_API_VERSION = "2.0.0"
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v5.0.4"
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v5.0.5"
BITPAY_API_FRAME = "std"
BITPAY_API_FRAME_VERSION = "1.0.0"

0 comments on commit b746fed

Please sign in to comment.