Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/imran110219/sslcommerz-springboot
SSLCOMMERZ is a bangladeshi payment gateway provider. This is Spring Boot library for SSLCOMMERZ.
https://github.com/imran110219/sslcommerz-springboot
payment payment-gateway spring-boot sslcommerz
Last synced: 27 days ago
JSON representation
SSLCOMMERZ is a bangladeshi payment gateway provider. This is Spring Boot library for SSLCOMMERZ.
- Host: GitHub
- URL: https://github.com/imran110219/sslcommerz-springboot
- Owner: imran110219
- Created: 2024-12-07T19:12:47.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-07T20:40:18.000Z (about 1 month ago)
- Last Synced: 2024-12-07T21:26:19.421Z (about 1 month ago)
- Topics: payment, payment-gateway, spring-boot, sslcommerz
- Language: Java
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSLCommerz Spring Boot Integration
This project integrates SSLCommerz payment gateway with a Spring Boot application.
## Technologies Used
- Java
- Spring Boot
- Maven## Getting Started
### Prerequisites
- Java 11 or higher
- Maven 3.6.0 or higher### Installation
1. Clone the repository:
```sh
git clone https://github.com/yourusername/sslcommerz-spring-boot.git
cd sslcommerz-spring-boot
```2. Update the `application.properties` file with your SSLCommerz credentials and URLs.
3. Build the project:
```sh
mvn clean install
```4. Run the application:
```sh
mvn spring-boot:run
```## API Documentation
### Initiate Transaction
**Endpoint:** `POST /api/payment/initiate`
**Request Body:**
```json
{
"total_amount": "100.00",
"currency": "BDT",
"tran_id": "TRANSACTION_ID",
"cus_name": "Customer Name",
"cus_email": "[email protected]",
"cus_add1": "Customer Address 1",
"cus_add2": "Customer Address 2",
"cus_city": "Customer City",
"cus_state": "Customer State",
"cus_postcode": "Customer Postcode",
"cus_country": "Customer Country",
"cus_phone": "Customer Phone",
"cus_fax": "Customer Fax",
"ship_name": "Shipping Name",
"ship_add1": "Shipping Address 1",
"ship_add2": "Shipping Address 2",
"ship_city": "Shipping City",
"ship_state": "Shipping State",
"ship_postcode": "Shipping Postcode",
"ship_country": "Shipping Country",
"multi_card_name": "Multi Card Name",
"shipping_method": "Shipping Method",
"product_name": "Product Name",
"product_category": "Product Category",
"product_profile": "Product Profile",
"value_a": "Value A",
"value_b": "Value B",
"value_c": "Value C",
"value_d": "Value D"
}
```### Validate Transaction
**Endpoint:** `POST /api/payment/validate`**Request Parameter**
```angular2html
tran_id
```