SSLCommerz integration in ASP.NET Core
You need to create a free sandbox account from SSLCommerz. After signing up you will get your store id and store password via email.
In this demo project I've only used the parameters that are absolutely required to work with SSLCommerz api version 4.00. The official documentation provide much more details regarding the processes involved as well as explanation of each parameters. You should read the entire documentation for better understanding. You can find the link to the documentation in here.
You need to have docker installed on your machine before running the followings:
$ docker pull shibbir/sslcommerz
$ docker run -d --rm -p 8080:80 --name sslcommerz -e StoreId='<your_store_id>' -e StorePassword='your_store_password' sslcommerz-aspnetcore
Open appsettings.json
and add your store id and store password in EnvironmentVariables
section.
"EnvironmentVariables": {
"StoreId": "your_store_id",
"StorePassword": "your_store_password"
}
Name | Description |
---|---|
StoreId | Your SSLCommerz Store ID |
StorePassword | Your SSLCommerz Store Password |