Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit c1389fa

Browse files
Merge pull request #4 from sabanworld/Fix-TEST-modus
Fix comparison issue in set_modus
2 parents e796a08 + a408221 commit c1389fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

multisafepay/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def set_api_key(self, api_key):
2525

2626
def set_modus(self, modus):
2727
self.modus = modus
28-
if self.modus is 'TEST':
28+
if self.modus == 'TEST':
2929
self.api_url = 'https://testapi.multisafepay.com/v1/json'
30-
elif self.modus is 'LIVE':
30+
elif self.modus == 'LIVE':
3131
self.api_url = 'https://api.multisafepay.com/v1/json'
3232
else:
3333
raise ValueError('Invalid API mode, needs to be LIVE or TEST')

0 commit comments

Comments
 (0)