add readme

This commit is contained in:
mohammadreza javid 2026-04-12 17:15:46 +03:30
parent a63fe09f26
commit 10aac2cb31
2 changed files with 22 additions and 1 deletions

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# SEP Payment Gateway Integration
A simple Go implementation for integrating with SEP (Shaparak Electronic Payment) gateway.
## Prerequisites
- Go 1.21 or higher
- Internet connection (for testing with SEP sandbox/production)
## Configuration
Before running the project, you need to configure the payment gateway credentials in `main.go`:
```go
config := service.Config{
PaymentGetToken: "https://sep.shaparak.ir/OnlinePG/OnlinePG",
PaymentVerifyURL: "https://sep.shaparak.ir/verifyTxnRandomSessionkey/ipg/VerifyTransaction",
PaymentReverseURL: "https://sep.shaparak.ir/verifyTxnRandomSessionkey/ipg/ReverseTransaction",
CallbackURL: "http://localhost:8070/api/callback",
Credential: "YOUR_TERMINAL_ID", // Replace with your Terminal ID
}

View File

@ -10,7 +10,7 @@ func main() {
PaymentGetToken: "https://sep.shaparak.ir/OnlinePG/OnlinePG",
PaymentVerifyURL: "https://sep.shaparak.ir/verifyTxnRandomSessionkey/ipg/VerifyTransaction",
CallbackURL: "http://localhost:8070/api/callback",
Credential: "15144433",
Credential: "000000",
}
paymentSvc := service.NewPaymentService(config)