Skip to content

Commit

Permalink
SP-893 Update Python POS client creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbrodie committed Mar 11, 2024
1 parent 75c377d commit d9e48e3
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit d9e48e3

Please sign in to comment.