Skip to content

Get payment using Connect and Test Env #219

Answered by VictorAvelar
mschewe asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @mschewe, I appreciate you bringing this issue to our attention. I have a few theories and suggestions to: 1. Verify that it is operating in test-mode (which, as of right now, I believe it is not); and 2. Resolve the connect client problem.

Verify that it is operating in test-mode

// client initialization

tokenSource := m.authConfig.TokenSource(context.Background(), &token)
baseClient := oauth2.NewClient(context.Background(), tokenSource)

logrus.WithField("testMode", m.testMode).Info("testMode") // testMode=true
config := mollie.NewConfig(m.testMode, false, "NOT_NEEDED_HERE?")

mollieClient, err := mollie.NewClient(baseClient, config)
if err != nil {
  logrus.WithError(err).Error("…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mschewe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area/payments Issues or requests related to the payments API area/connect Issues or discussions related to mollie connects.
2 participants