To install the widget, you need to write the script in the head section of your website:
'script src="//meeg.io/modules/widget/js.js">'/script>
To make the payment form appear, call the meegPayWidget() function by passing parameters to it:
'meegPayWidget({
'merchant_uuid': '9c83a4fc-0448-4769-8bcc-363f0faea481',
'order_id': '123123',
'amount': 60,
'currency': 'RUB',
'client_name': 'Petrov I.I.',
'client_email': '[email protected]',
'products': ['product one', 'product other'].
});