@@ -14,15 +14,15 @@ protected void Page_Load(object sender, EventArgs e)
1414
1515 // CREATING LIST OF POST DATA
1616 NameValueCollection PostData = new NameValueCollection ( ) ;
17- PostData . Add ( "total_amount" , "1150 .00" ) ;
17+ PostData . Add ( "total_amount" , "15 .00" ) ;
1818 PostData . Add ( "tran_id" , "TESTASPNET1234" ) ;
1919 PostData . Add ( "success_url" , baseUrl + "Success.aspx" ) ;
2020 PostData . Add ( "fail_url" , baseUrl + "Fail.aspx" ) ; // "Fail.aspx" page needs to be created
2121 PostData . Add ( "cancel_url" , baseUrl + "Cancel.aspx" ) ; // "Cancel.aspx" page needs to be created
2222 PostData . Add ( "version" , "3.00" ) ;
2323 PostData . Add ( "cus_name" , "ABC XY" ) ;
2424 PostData . Add ( "cus_email" , "[email protected] " ) ; 25- PostData . Add ( "cus_add1" , "Address Line On" ) ;
25+ PostData . Add ( "cus_add1" , "Address Line On" ) ;
2626 PostData . Add ( "cus_add2" , "Address Line Tw" ) ;
2727 PostData . Add ( "cus_city" , "City Nam" ) ;
2828 PostData . Add ( "cus_state" , "State Nam" ) ;
@@ -41,8 +41,13 @@ protected void Page_Load(object sender, EventArgs e)
4141 PostData . Add ( "value_b" , "ref00" ) ;
4242 PostData . Add ( "value_c" , "ref00" ) ;
4343 PostData . Add ( "value_d" , "ref00" ) ;
44+ PostData . Add ( "shipping_method" , "NO" ) ;
45+ PostData . Add ( "num_of_item" , "1" ) ;
46+ PostData . Add ( "product_name" , "Demo" ) ;
47+ PostData . Add ( "product_profile" , "general" ) ;
48+ PostData . Add ( "product_category" , "Demo" ) ;
4449
45- SSLCommerz sslcz = new SSLCommerz ( "YOUR STORE ID " , "YOUR STORE PASSWORD" ) ;
50+ SSLCommerz sslcz = new SSLCommerz ( "testbox " , "qwerty" , true ) ;
4651 String response = sslcz . InitiateTransaction ( PostData ) ;
4752 Response . Redirect ( response ) ;
4853 }
0 commit comments