Skip to content

Commit

Permalink
feat: added sandbox support
Browse files Browse the repository at this point in the history
  • Loading branch information
Mujhtech committed Apr 19, 2024
1 parent 8a80ac8 commit d8bbb15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ type SwervpayClient struct {
func NewSwervpayClient(config *SwervpayClientOption) *SwervpayClient {
if config.BaseURL == "" {
config.BaseURL = "https://api.swervpay.co/api/v1/"

if config.Sandbox {
config.BaseURL = "https://sandbox.swervpay.co/api/v1/"
}
}
baseURL, _ := url.Parse(config.BaseURL)

Expand Down

0 comments on commit d8bbb15

Please sign in to comment.