Viincenttt / MollieApi

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

Not able to specify testmode when creating a customer #252

Closed frankguns closed 3 years ago

frankguns commented 3 years ago

I'm using organization access tokens to setup recurring payments. First of all I need to create a customer.

According to https://docs.mollie.com/reference/v2/customers-api/create-customer it should be possible to enable test mode through the testmode parameter. However in the API I cannot find a testmode property in the CustomerRequest object.

I can see the parameter is available in the PaymentRequest object.

How to specify testmode when creating a customer?

Viincenttt commented 3 years ago

Hi @frankguns ,

You appear to be right. I don't think the CustomerClient supports the testmode property for access tokens right now. You can ofcourse still test it using a test API key.

If you'd like to create a pull request to fix this, I'd be happy to take a look at it. If not, I'll keep this issue open until me or someone else has time to implement it.

Kind regards, Vincent

Viincenttt commented 3 years ago

Closing due to inactivity. If you have any further questions, feel free to reply or open a new issue :)