-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92083e9
commit a9b59a6
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,15 @@ protected void Page_Load(object sender, EventArgs e) | |
|
||
// CREATING LIST OF POST DATA | ||
NameValueCollection PostData = new NameValueCollection(); | ||
PostData.Add("total_amount", "1150.00"); | ||
PostData.Add("total_amount", "15.00"); | ||
PostData.Add("tran_id", "TESTASPNET1234"); | ||
PostData.Add("success_url",baseUrl+"Success.aspx"); | ||
PostData.Add("fail_url", baseUrl+"Fail.aspx"); // "Fail.aspx" page needs to be created | ||
PostData.Add("cancel_url", baseUrl+"Cancel.aspx"); // "Cancel.aspx" page needs to be created | ||
PostData.Add("version", "3.00"); | ||
PostData.Add("cus_name", "ABC XY"); | ||
PostData.Add("cus_email", "[email protected]"); | ||
PostData.Add( "cus_add1", "Address Line On"); | ||
PostData.Add("cus_add1", "Address Line On"); | ||
PostData.Add("cus_add2", "Address Line Tw"); | ||
PostData.Add("cus_city", "City Nam"); | ||
PostData.Add("cus_state", "State Nam"); | ||
|
@@ -41,8 +41,13 @@ protected void Page_Load(object sender, EventArgs e) | |
PostData.Add("value_b", "ref00"); | ||
PostData.Add("value_c", "ref00"); | ||
PostData.Add("value_d", "ref00"); | ||
PostData.Add("shipping_method", "NO"); | ||
PostData.Add("num_of_item", "1"); | ||
PostData.Add("product_name", "Demo"); | ||
PostData.Add("product_profile", "general"); | ||
PostData.Add("product_category", "Demo"); | ||
|
||
SSLCommerz sslcz = new SSLCommerz("YOUR STORE ID", "YOUR STORE PASSWORD"); | ||
SSLCommerz sslcz = new SSLCommerz("testbox", "qwerty", true); | ||
String response = sslcz.InitiateTransaction(PostData); | ||
Response.Redirect(response); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters