TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
vishnu vishnu
NA
287
8.9k
paytm .please help..i got below page while intigrate paytm
Jan 11 2019 4:38 AM
protected
void
Page_Load(
object
sender, EventArgs e)
{
String merchantKey =
"o@w1qIz8qqUh0Bdg"
;
Dictionary<
string
,
string
> parameters =
new
Dictionary<
string
,
string
>();
parameters.Add(
"MID"
,
"SsCkKW41335934713275"
);
parameters.Add(
"CHANNEL_ID"
,
"WEB"
);
parameters.Add(
"INDUSTRY_TYPE_ID"
,
"Retail"
);
parameters.Add(
"WEBSITE"
,
"WEB_STAGING"
);
parameters.Add(
"EMAIL"
,
"
[email protected]
"
);
parameters.Add(
"MOBILE_NO"
,
"8500414141"
);
parameters.Add(
"CUST_ID"
,
"2"
);
parameters.Add(
"ORDER_ID"
,
"1"
);
parameters.Add(
"TXN_AMOUNT"
,
"20"
);
// parameters.Add("CALLBACK_URL", "url"); //This parameter is not mandatory. Use this to pass the callback url dynamically.
string
checksum = CheckSum.generateCheckSum(merchantKey, parameters);
string
paytmURL =
"https://securegw-stage.paytm.in/theia/processTransaction?orderid="
+
"6"
;
string
outputHTML =
"<html>"
;
outputHTML +=
"<head>"
;
outputHTML +=
"<title>Merchant Check Out Page</title>"
;
outputHTML +=
"</head>"
;
outputHTML +=
"<body>"
;
outputHTML +=
"<center><h1>Please do not refresh this page...</h1></center>"
;
outputHTML +=
"<form method='post' action='"
+ paytmURL +
"' name='f1'>"
;
outputHTML +=
"<table border='1'>"
;
outputHTML +=
"<tbody>"
;
foreach
(
string
key
in
parameters.Keys)
{
outputHTML +=
"<input type='hidden' name='"
+ key +
"' value='"
+ parameters[key] +
"'>"
;
}
outputHTML +=
"<input type='hidden' name='CHECKSUMHASH' value='"
+ checksum +
"'>"
;
outputHTML +=
"</tbody>"
;
outputHTML +=
"</table>"
;
outputHTML +=
"<script type='text/javascript'>"
;
outputHTML +=
"document.f1.submit();"
;
outputHTML +=
"</script>"
;
outputHTML +=
"</form>"
;
outputHTML +=
"</body>"
;
outputHTML +=
"</html>"
;
Response.Write(outputHTML);
}
Reply
Answers (
1
)
How to create a object from collection after grouping
How to call first gridview row button using jQuery