Viincenttt / MollieApi

This project allows you to easily add the Mollie payment provider to your application.
MIT License
148 stars 85 forks source link

Bug or instead of and #249

Closed TimoTielens closed 3 years ago

TimoTielens commented 3 years ago

I'm pretty sure that this should be an and. Received an oath token exception when I was using Testmode.

The ValidateApiKeyIsOauthAccesstoken should only be triggered. If the paymentLinkRequest.ProfileId is filled in. To be honest not even sure if the Testmode should be there at all.

Viincenttt commented 3 years ago

Hi @TimoTielens,

Actually, you should only set testmode if you are using an oauth token. If you are not using oauth, you should use a test api key. When using a test api key, all payments you create are actually test payments.

This is better explained on the following URL: https://docs.mollie.com/overview/authentication

image

Kind regards, Vincent