Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcium-Ion committed Apr 7, 2024
1 parent b44335d commit 2aac1a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import (
)

func main() {
baseUrl := "http://localhost:8080"
client, err := epay.NewClient(&epay.Config{
PartnerID: "1000",
Key: "KEY",
}, "http://localhost:3111")
}, baseUrl)
if err != nil {
log.Panicln(err)
}
notify, _ := url.Parse("http://localhost:3111/verify")
notify, _ := url.Parse(baseUrl + "/verify")
mux := http.NewServeMux()
mux.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {
url, params, err := client.Purchase(&epay.PurchaseArgs{
Expand Down

0 comments on commit 2aac1a4

Please sign in to comment.