<!doctype html>
<html lang="ru">
<head>
<base href="https://pro.selfwork.ru/merchant-app/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="apple-touch-icon" sizes="180x180" href="https://pro.selfwork.ru/merchant-app/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="https://pro.selfwork.ru/merchant-app/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://pro.selfwork.ru/merchant-app/favicon-16x16.png" />
<link rel="manifest" href="https://pro.selfwork.ru/merchant-app/site.webmanifest" />
<link rel="mask-icon" href="https://pro.selfwork.ru/merchant-app/safari-pinned-tab.svg" color="#284195" />
<meta name="theme-color" content="#ffffff" />
<link rel="manifest" href="https://pro.selfwork.ru/merchant-app/manifest.json" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<title>Самозанятые.рф - Смарт оплата</title>
<link href="https://pro.selfwork.ru/merchant-app/static/css/main.0dfe3354.chunk.css" rel="stylesheet">
</head>
<body><noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script>
window.smzInitPayment = {"orderId":null,"amount":null,"merchantName":null,"info":null,"smart":null,"style":null,"referrer":"botbogach.fun","account":null,"merchantRequestId":null,"signature":null,"serviceId":null,"urlSuccess":null,"urlFail":null,"redirectImmediately":null};
window.smzInitError = {"error":true,"errorMessage":"\u0421\u0443\u043C\u043C\u0430 \u0437\u0430\u043A\u0430\u0437\u0430 \u043D\u0435 \u0441\u043E\u0432\u043F\u0430\u0434\u0430\u0435\u0442 \u0441 \u043E\u0431\u0449\u0435\u0439 \u0441\u0443\u043C\u043C\u043E\u0439 \u0441\u043F\u0438\u0441\u043A\u0430 \u043F\u043E\u043A\u0443\u043F\u043E\u043A"};
</script>
<script></script>
<script>
!function(e){function r(r){for(var n,l,p=r[0],a=r[1],f=r[2],c=0,s=[];c<p.length;c++)l=p[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(i&&i(r);s.length;)s.shift()();return u.push.apply(u,f||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,p=1;p<t.length;p++){var a=t[p];0!==o[a]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={1:0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="https://pro.selfwork.ru/merchant-app/";var p=this["webpackJsonpselfwork-payment-widget"]=this["webpackJsonpselfwork-payment-widget"]||[],a=p.push.bind(p);p.push=r,p=p.slice();for(var f=0;f<p.length;f++)r(p[f]);var i=a;t()}([])
</script>
<script src="https://pro.selfwork.ru/merchant-app/static/js/2.189d0755.chunk.js"></script>
<script src="https://pro.selfwork.ru/merchant-app/static/js/main.826059a3.chunk.js"></script>
</body>
</html>
PARAMS = {
"order_id": "4543-vrer-432f-fff",
"amount": "200000",
"info": [{"name": "test", "quantity": "1", "amount": "200000"}]
}
signature = hashlib.sha256((PARAMS["order_id"] + PARAMS["amount"] + PARAMS["info"][0]["name"] +
PARAMS["info"][0]["quantity"] + PARAMS["info"][0]["amount"] + api_key).encode()).hexdigest()
PARAMS["signature"] = signature
BASE_URL = 'https://pro.selfwork.ru/merchant/v1/init'
response = requests.post(BASE_URL, headers=HEAD, data=PARAMS)
print(response.text)