File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def cnb_form(self, params):
100100 )
101101 params_templ = {'data' : base64 .b64encode (json .dumps (params ))}
102102 params_templ ['signature' ] = self ._make_signature (self ._private_key , params_templ ['data' ], self ._private_key )
103- form_action_url = urljoin (self ._host , 'checkout/' )
103+ form_action_url = urljoin (self ._host , '3/ checkout/' )
104104 format_input = lambda k , v : self .INPUT_TEMPLATE .format (name = k , value = to_unicode (v ))
105105 inputs = [format_input (k , v ) for k , v in params_templ .iteritems ()]
106106 return self .FORM_TEMPLATE .format (
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ 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/checkout/" accept-charset="utf-8">\n '
17+ u'<form method="post" action="https://www.liqpay.com/3/ api/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 '
2020 u' <input type="image" src="//static.liqpay.com/buttons/p1ru.radius.png" name="btn_text" />\n '
You can’t perform that action at this time.
0 commit comments