Skip to content

Commit dc6a223

Browse files
author
Didovick Andrew
committed
liqpay.com changed to liqpay.ua
1 parent 3b13c30 commit dc6a223

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ sdk-python
44
LiqPay SDK-PYTHON
55

66

7-
Documentation https://www.liqpay.com/ru/doc
7+
Documentation https://www.liqpay.ua/documentation/en

liqpay/liqpay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class LiqPay(object):
4242
FORM_TEMPLATE = u'''\
4343
<form method="post" action="{action}" accept-charset="utf-8">
4444
\t{param_inputs}
45-
<input type="image" src="//static.liqpay.com/buttons/p1{language}.radius.png" name="btn_text" />
45+
<input type="image" src="//static.liqpay.ua/buttons/p1{language}.radius.png" name="btn_text" />
4646
</form>'''
4747
INPUT_TEMPLATE = u'<input type="hidden" name="{name}" value="{value}"/>'
4848

@@ -51,7 +51,7 @@ class LiqPay(object):
5151
'result_url', 'server_url', 'type', 'signature', 'language', 'sandbox'
5252
]
5353

54-
def __init__(self, public_key, private_key, host='https://www.liqpay.com/api/'):
54+
def __init__(self, public_key, private_key, host='https://www.liqpay.ua/api/'):
5555
self._public_key = public_key
5656
self._private_key = private_key
5757
self._host = host

liqpay/liqpay3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LiqPay(object):
2525
FORM_TEMPLATE = """\
2626
<form method="post" action="{action}" accept-charset="utf-8">
2727
\t{param_inputs}
28-
<input type="image" src="//static.liqpay.com/buttons/p1{language}.radius.png" name="btn_text" />
28+
<input type="image" src="//static.liqpay.ua/buttons/p1{language}.radius.png" name="btn_text" />
2929
</form>"""
3030
INPUT_TEMPLATE = "<input type='hidden' name='{name}' value='{value}'/>"
3131

@@ -34,7 +34,7 @@ class LiqPay(object):
3434
"result_url", "server_url", "type", "signature", "language", "sandbox"
3535
]
3636

37-
def __init__(self, public_key, private_key, host="https://www.liqpay.com/api/"):
37+
def __init__(self, public_key, private_key, host="https://www.liqpay.ua/api/"):
3838
self._public_key = public_key
3939
self._private_key = private_key
4040
self._host = host

liqpay/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ def test_api(self):
1414

1515
def test_gen_form(self):
1616
expected_form_out = (
17-
u'<form method="post" action="https://www.liqpay.com/api/3/checkout/" accept-charset="utf-8">\n'
17+
u'<form method="post" action="https://www.liqpay.ua/api/3/checkout/" accept-charset="utf-8">\n'
1818
u'\t<input type="hidden" name="data" value="eyJwdWJsaWNfa2V5IjogIiIsICJkZXNjcmlwdGlvbiI6ICJcdTA0NDJcdTA0MzVcdTA0NDFcdTA0NDIiLCAibGFuZ3VhZ2UiOiAicnUiLCAic2FuZGJveCI6IDAsICJjdXJyZW5jeSI6ICJVQUgiLCAiYW1vdW50IjogIjM5NDAiLCAidGVzdCI6ICJjY2NjIn0="/>\n'
1919
u'\t<input type="hidden" name="signature" value="Zdm/xbS30v9ZTNXrLXeW9QFVxHQ="/>\n'
20-
u' <input type="image" src="//static.liqpay.com/buttons/p1ru.radius.png" name="btn_text" />\n'
20+
u' <input type="image" src="//static.liqpay.ua/buttons/p1ru.radius.png" name="btn_text" />\n'
2121
u'</form>'
2222
)
2323
# test unicode issue with ru symbols

0 commit comments

Comments
 (0)