Skip to content

Commit

Permalink
feat(terminals): ensure testmode is enabled based on config
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorAvelar committed Aug 10, 2023
1 parent ba8abb3 commit da233ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mollie/terminals.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ func (ts *TerminalsService) List(ctx context.Context, options *TerminalListOptio
tl *TerminalList,
err error,
) {
if ts.client.HasAccessToken() && ts.client.config.testing {
options.TestMode = true
}

res, err = ts.client.get(ctx, "v2/terminals", options)
if err != nil {
return
Expand Down

0 comments on commit da233ae

Please sign in to comment.