21 lines
780 B
Markdown
21 lines
780 B
Markdown
# 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
|
|
} |