mollie / mollie-api-node

Official Mollie API client for Node
http://www.mollie.com
BSD 3-Clause "New" or "Revised" License
228 stars 62 forks source link

Enable/disable payment methods #310

Closed lucienbl closed 1 year ago

lucienbl commented 1 year ago

Hello,

Sorry if this is a dumb question, but I can't figure out where/how I can enable or disable a payment method with this API wrapper. Is this possible ?

Thanks in advance.

Best regards, Lucien

Pimm commented 1 year ago

Hi Lucien!

It is possible, like so:

await mollieClient.profileMethods.enable({ profileId: 'pfl_v9hTwCvYqw', id: 'ideal' })

The catch is, profileMethods is only available starting with version 3.7.0 of the library, which is currently in beta. You can use it today by installing the beta tag: npm install @mollie/api-client@beta.

lucienbl commented 1 year ago

Hello,

Oh, that's why I didn't find it :) After installing the beta I'm indeed able to use this feature now. Thank you very much!

Closing issue.