I am integrating payment getway and i want to know callback parameter.

Vikasbisht366
Contributor
Contributor

hello sir i am using a method for payment getway like this --

string strpaypal = "<form action='https://www.paypal.com/cgi-bin/webscr' method=POST id='frm10' name='frm10'>";
strpaypal = strpaypal + "<table border='0' width='100%' cellpadding='0' cellspacing='0'><tr><td align='center'>";
strpaypal = strpaypal + "<input type='hidden' name='cmd' value='_ext-enter'>";
strpaypal = strpaypal + "<input type='hidden' name='redirect_cmd' value='_xclick'>";
strpaypal = strpaypal + "<input type='hidden' name='business' value=''>";
strpaypal = strpaypal + "<input type='hidden' name='invoice' value='ws" + oid + "'>";
strpaypal = strpaypal + "<input type='hidden' name='custom' value='" + dtcustInfo.Rows[0]["email"].ToString().Replace("'", "`") + "'>";
strpaypal = strpaypal + "<INPUT TYPE='hidden' NAME='return' value='http://localhost:58016/hnyV2/paypal_callback.aspx'>";
strpaypal = strpaypal + "<input type='hidden' name='cancel_return' value='http://localhost:58016/hnyV2/paypal_callback.aspx'>";
strpaypal = strpaypal + "<input type='hidden' name='notify_url' value='http://localhost:58016/hnyV2/paypal_callback.aspx'>";
strpaypal = strpaypal + "<input type=hidden name='amount' value='" + Convert.ToDouble(Session["gprice"]).ToString("##.00") + "'>";
strpaypal = strpaypal + "<input type=hidden name='currency_code' value='USD'>";
strcredit = strcredit + "<input type=hidden name='rm' value='2'";


description = description.Replace("<br/>", "; ");
if (description.Length > 120)
{
description = description.Substring(0, 95);
description += "...(Balance Items as per Cart)";
}
strpaypal = strpaypal + "<input type=hidden name='item_name' value='" + description + "'>";
strpaypal = strpaypal + "<input type=hidden name='first_name' value='" + dtcustInfo.Rows[0]["wsname"].ToString().Replace("'", "`") + "'>";
strpaypal = strpaypal + "<input type=hidden name='address1' value='" + dtcustInfo.Rows[0]["address"].ToString().Replace("'", "`") + "'+','+'" + dtcustInfo.Rows[0]["city"].ToString().Replace("'", "`") + "'+','+'" + dtcustInfo.Rows[0]["state"].ToString().Replace("'", "`") + "'>";
strpaypal = strpaypal + "<input type=hidden name='city' value='" + dtcustInfo.Rows[0]["city"].ToString().Replace("'", "`") + "'>";
strpaypal = strpaypal + "<input type=hidden name='zip' value='" + dtcustInfo.Rows[0]["pin"].ToString().Replace("'", "`") + "'>";
strpaypal = strpaypal + "<input type=hidden name='country' value='" + delcountry + "'>";
strpaypal = strpaypal + "<input type=hidden name='cpp_header_image' value='https://www.soulgenie.com/images/logo.png'>";
strpaypal = strpaypal + "<input type='hidden' name='cbt' value='Click here for Invoice & Transaction Reference'>";

strpaypal = strpaypal + "<br><br><b><font face='Verdana' size='4'>Transferring<br>";
strpaypal = strpaypal + "to SECURE PAYMENT SERVER<img src='../gif/tranfer.gif' width='29' height='8'></font></b>";
strpaypal = strpaypal + "<br><font size='2' face='Verdana'>If browser doesn't respond with in 5 seconds ";
strpaypal = strpaypal + "please click on following button...</font><br>";
strpaypal = strpaypal + "<input type='submit' name='wp' value='Secured Transaction(Visa/Master Card/Discover/Paypal)' >";
strpaypal = strpaypal + "</td></tr></table>";
strpaypal = strpaypal + "</form>";

 

 

actually this method is already used in our company and the responce is not integrated and now i want to callback parameter please help

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.