Skip to content

Commit 3b1fedc

Browse files
LuboZlubos.zlatohlavek
andauthored
Python (#4)
* triv: #23799 wip: python documentation * triv: #23799 wip: python documentation - added chargeback and save card section * triv: #23799 wip: python documentation - added preuthorization, updated create payment code * triv: #23799 wip: python documentation - added direct payment section * triv: #23799 added cancel payment section * triv: #23799 code samples and appearance section * triv: #23799 added logger section * triv: #23799 moved redirect uri parameter from client initialization, changed indent in python code * triv: #23799 moved redirect uri parameter from client initialization, changed indent in python code * triv: #23799 added error handling section * triv: #23799 added error handling section * triv: #23799 added full payment to create payment code example * triv: #23799 added ip_address as parameter to create_payment * triv: #23799 renamed simple statuses * triv: #23799 moved base_url from client initialization added mode parameter * triv: #23799 added node logging documentation * triv: #23799 install command * triv: #23799 renamed client to TBPlusSDK * triv: #23799 added simple status mapping info * triv: #23799 added simple status mapping info --------- Co-authored-by: lubos.zlatohlavek <lubos.zlatohlavek@smartbase.sk>
1 parent 33c52d4 commit 3b1fedc

17 files changed

+49
-32
lines changed

code_samples/python/v1.0.0/cancel_payment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22

3-
client = TatrapayPlusClient(
3+
client = TBPlusSDK(
44
"your-client-id",
55
"your-client-secret"
66
)

code_samples/python/v1.0.0/chargeback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret"
77
)

code_samples/python/v1.0.0/confirm_cancel_pre_authorization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret"
77
)

code_samples/python/v1.0.0/create_payment.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret",
77
)

code_samples/python/v1.0.0/create_payment_pre_authorization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret",
77
)

code_samples/python/v1.0.0/get_access_token.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22

3-
client = TatrapayPlusClient(
3+
client = TBPlusSDK(
44
"your-client-id",
55
"your-client-secret",
66
)

code_samples/python/v1.0.0/get_available_payment_methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from tatrapayplus import TatrapayPlusClient, PaymentMethod
1+
from tatrapayplus import TBPlusSDK, PaymentMethod
22

3-
client = TatrapayPlusClient(
3+
client = TBPlusSDK(
44
"your-client-id",
55
"your-client-secret",
66
)

code_samples/python/v1.0.0/get_payment_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22

3-
client = TatrapayPlusClient(
3+
client = TBPlusSDK(
44
"your-client-id",
55
"your-client-secret",
66
)

code_samples/python/v1.0.0/set_colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret"
77
)

code_samples/python/v1.0.0/set_logo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from tatrapayplus import TatrapayPlusClient
1+
from tatrapayplus import TBPlusSDK
22
from tatrapayplus.models import *
33

4-
client = TatrapayPlusClient(
4+
client = TBPlusSDK(
55
"your-client-id",
66
"your-client-secret"
77
)

0 commit comments

Comments
 (0)