Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP-893 Fix POS client creation #96

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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="[email protected]" },
]
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"
Loading