Example #1
0
        private string RenderHtmlForm(string data, LiqPayRequestLanguage language, string signature)
        {
            var form = new StringBuilder();

            form.Append($"<form method=\"post\" action=\"{ LiqPayConsts.LiqpayApiCheckoutUrl }\" accept-charset=\"utf-8\">\n");
            form.Append($"<input type=\"hidden\" name=\"data\" value=\"{ data }\" />\n");
            form.Append($"<input type=\"hidden\" name=\"signature\" value=\"{ signature }\" />\n");

            if (WithRenderPayButton)
            {
                form.Append($"<input type=\"image\" src=\"//static.liqpay.ua/buttons/p1{language.GetAttributeOfType<EnumMemberAttribute>().Value}.radius.png\" name=\"btn_text\" />\n");
            }
            form.Append("</form>\n");

            return(form.ToString());
        }
Example #2
0
 private string RenderHtmlForm(string data, LiqPayRequestLanguage language, string signature)
 {
     String form = "";
     form += "<form method=\"post\" action=\"" + LiqPayConsts.LiqpayApiCheckoutUrl + "\" accept-charset=\"utf-8\">\n";
     form += "<input type=\"hidden\" name=\"data\" value=\"" + data + "\" />\n";
     form += "<input type=\"hidden\" name=\"signature\" value=\"" + signature + "\" />\n";
     if (WithRenderPayButton)
     {
         form += "<input type=\"image\" src=\"//static.liqpay.ua/buttons/p1" + language.GetAttributeOfType<EnumMemberAttribute>().Value + ".radius.png\" name=\"btn_text\" />\n";
     }
     form += "</form>\n";
     return form;
 }