Skip to content

Commit

Permalink
Merge pull request #97 from bobbrodie/6.0.x
Browse files Browse the repository at this point in the history
SP-893 Fix Python POS client creation
  • Loading branch information
bobbrodie authored Mar 11, 2024
2 parents 4b4b754 + e747e89 commit d2b084a
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 = "6.0.0"
version = "6.0.1"
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 @@ -61,11 +61,11 @@ def __init__(
)

@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_v6.0.0"
BITPAY_PLUGIN_INFO = "BitPay_Python_Client_v6.0.1"
BITPAY_API_FRAME = "std"
BITPAY_API_FRAME_VERSION = "1.0.0"

0 comments on commit d2b084a

Please sign in to comment.