Skip to content

Commit

Permalink
Merge pull request #24 from amirhoseinjfri/main
Browse files Browse the repository at this point in the history
fixed vandar api endpoint and example
  • Loading branch information
Ja7ad authored Jul 3, 2023
2 parents 28fd977 + 5a51a54 commit 5fa63d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _example/vandar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func main() {
log.Printf("%+v\n", detailResp)

//and verify Transction
verifyResp, verifyErr := v.TransactionDetail(context.Background(), resp.Token)
verifyResp, verifyErr := v.VerifyPayment(context.Background(), resp.Token)
if verifyErr != nil {
log.Fatal(err)
}
Expand Down
8 changes: 4 additions & 4 deletions providers/vandar/vandar.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (
const API_VERSION = "3"

const (
VANDAR_HOST = "https://ipg.vandar.io/api"
VANDAR_HOST = "https://ipg.vandar.io"
)

const (
VANDAR_REQUEST_API_ENDPOINT = "/v3/send"
VANDAR_REQUEST_API_ENDPOINT = "/api/v3/send"
VANDAR_REDIRECT_API_ENDPOINT = "/v3/"
VANDAR_VERIFY_API_ENDPOINT = "/v3/verify"
VANDAR_TRANSACTION_DETAIL_API_END_POINT = "/v3/transaction"
VANDAR_VERIFY_API_ENDPOINT = "/api/v3/verify"
VANDAR_TRANSACTION_DETAIL_API_END_POINT = "/api/v3/transaction"
)

// New create vandar provider object for user factory request methods
Expand Down

0 comments on commit 5fa63d6

Please sign in to comment.