Go to file
mohammadreza javid 10aac2cb31 add readme 2026-04-12 17:15:46 +03:30
delivery Implement example of sep 2026-04-12 17:09:32 +03:30
service Implement example of sep 2026-04-12 17:09:32 +03:30
.gitignore Implement example of sep 2026-04-12 17:09:32 +03:30
README.md add readme 2026-04-12 17:15:46 +03:30
go.mod Implement example of sep 2026-04-12 17:09:32 +03:30
go.sum Implement example of sep 2026-04-12 17:09:32 +03:30
main.go add readme 2026-04-12 17:15:46 +03:30

README.md

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:

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
}