- Visual Studio 2017
- Sandbox Account
- TLS V1.2
- First create your Sanbox(Test Environment) store account from below url. After registration you will get two mail. One for Store_id and Store_password. Another one for Report panel access.
Note: For live store id or account you have to communicate with us. Our mail address:
operation@sslcommerz.com
-
Then give the store_id and store_password in Default.aspx.cs and Success.aspx.cs page.
-
To send a Payment request using this ASP.Net code snippet, User need to construct a NameValueCollection, as shown in Page_Load method of Default.aspx.cs.
-
After constructing this NameValueCollection, SSLCommerz Class is instantiated with user store Id and password. Then InitiateTransaction Method is called which will return a URL or JSON list depending on user choice of receiving Gateway list or not.
-
User will hit that URL returned by previous InitiateTransaction method call. That will prompt user to choose payment option and perform payment procedures. After completing payment, SSL Commerz page will redirect user to
success_url
defined by user during initial parameter NameValueCollection construction in previous Call to initiateTransaction method. -
User should pass MerchantTrxID, MerchantTrxAmount, MerchantTrxCurrency, HttpRequest into this method: Page_Load of Success.aspx.cs This will validate those query parameters returned by payment success redirect, and return true if successful transaction and false otherwise.
In case of false, user should check status in that first returned response.
Customer need to do a live transaction to check the full process. After the transaction below things need to ensure
- Transaction is showing successful in SSLCOMMERZ Panel (https://report.sslcommerz.com)
- Transaction details are same in SSLCOMMERZ Panel (https://report.sslcommerz.com) and Customer site admin Panel.
- Transaction amount is same in Issuer bank end.
- In Transaction Details API Validated by Merchant is YES.
Note: In the gateway you may not found Banks. After getting live store id, it takes 10 to 15 working days to enable these. You may follow up your KAM(Key Account Manager).
Prabal Mallick
Md. Rakibul Islam