Giter VIP home page Giter VIP logo

Comments (6)

yadavrg avatar yadavrg commented on May 27, 2024 1

@Viincenttt got it now, thanks for clarification so quickly.

from mollieapi.

lgoudriaan avatar lgoudriaan commented on May 27, 2024

Hi,

You probably have filled the testmode field which is only for Oauth tokens like you can see here:

if (!string.IsNullOrWhiteSpace(paymentRequest.ProfileId) || paymentRequest.Testmode.HasValue || paymentRequest.ApplicationFee != null) {
this.ValidateApiKeyIsOauthAccesstoken();

You can just leave this property empty.

from mollieapi.

Viincenttt avatar Viincenttt commented on May 27, 2024

Hi jbosch,

Did you manage to resolve this issue?

Kind regards,
Vincent

from mollieapi.

jbosch111 avatar jbosch111 commented on May 27, 2024

Hi Vincent,

Yes that soved my problem )
Sorry for the late reply, I was kinda busy...

Jim

from mollieapi.

yadavrg avatar yadavrg commented on May 27, 2024

Hi,

You probably have filled the testmode field which is only for Oauth tokens like you can see here:

if (!string.IsNullOrWhiteSpace(paymentRequest.ProfileId) || paymentRequest.Testmode.HasValue || paymentRequest.ApplicationFee != null) {
this.ValidateApiKeyIsOauthAccesstoken();

You can just leave this property empty.

This resolves the issue, but it shouldn't work in this way. We should be able to request with testmode paramter as specified in original Mollie document, otherwise it will always return results in Live mode.
https://docs.mollie.com/reference/v2/payments-api/get-payment

testmode boolean OPTIONAL

  • Set this to true to get a payment made in test mode. If you omit this parameter, you can only retrieve live mode payments.

from mollieapi.

Viincenttt avatar Viincenttt commented on May 27, 2024

Hi @yadavrg ,

It depends. If you are using a test api key, you do not need to use the testmode parameter at all. All requests you do, will be in test mode. If you are using a oath access token, you do need to use the Testmode property to specify you are using test mode. This is also explained on the Mollie website: https://docs.mollie.com/overview/testing
image

I hope this clears things up. I know this part isn't very well documented. I'll try to update the readme.md to make this a bit more clear.

Kind regards,
Vincent

from mollieapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.