mollie / WooCommerce

Official Mollie extension for WooCommerce
https://wordpress.org/plugins/mollie-payments-for-woocommerce/
Other
131 stars 53 forks source link

Subscriptions not possible without SEPA Direct Debit or Creditcard #129

Closed ndijkstra closed 6 years ago

ndijkstra commented 7 years ago

In WooCommerce Subscription you can choose for manual renewal and turn the automatic renwal off. This is not possible with the Mollie plugin. The following error occurs:

Error executing API call (request): The recurring payment method is inactive.

davdebcom commented 7 years ago

Are you referring to

For me it does work with: iDEAL, Bank Transfer, Belfius, SOFORT

It does not work with: SEPA Direct Debit

That it fails with SEPA Direct Debit might not be an issue at all, as I need to remove that as gateway anyway, see issue 104.

ndijkstra commented 7 years ago

No, if SEPA Direct Debit is not activated in the Mollie account, it is not possible to create an iDEAL payment. Mollie throws an error (The recurring payment method is inactive.). If SEPA Direct Debit and Creditcard isn't active, the first payment should not be a first payment. (remove the parameter "recurringType").

JorikMollie commented 7 years ago

A related usecase: Merchant creates a yearly subscription with a length of 1 year. So, after the first payment no further payments are required.

If direct debit / credit card is not active the same error is thrown: "The recurring payment method is inactive".

davdebcom commented 6 years ago

Tested all scenarios mentioned above and they all seem tow work now. Please e-open if I missed a scenario that still causes issues.

If customers ask questions about this, ask them to check the following setting: WooCommerce > Settings > Subscriptions > "Accept Manual Renewals" set to enabled

ndijkstra commented 6 years ago

This is not working. See the settings:

mollie_wc_gateway_ideal: Failed to create payment for order 915: Error executing API call (request): The recurring payment method is inactive.

screenshot 2018-01-17 17 04 23

davdebcom commented 6 years ago

@ndijkstra I can't reproduce, can you tell me more about your test environment? What payment methods do you have active? A screenshot would be helpful.

And if this is your own API key, can you email it to me so I can use it to reproduce this?

davdebcom commented 6 years ago

Closing this as I can't reproduce and didn't get more information. Please re-open if it's still and issue or more information is available.

JairZijp commented 6 years ago

I'm having the same problem right now.. The payment methods Creditcard, Paypal and iDeal are active and the option 'Accept manual renewals' is enabled. But still i'm getting error: The recurring payment method is inactive. When I try to pay with iDeal.

davdebcom commented 6 years ago

I can imagine what's happening now, as I'm also rewriting that part of the codebase to support Mollie API v2. I'll do some more research and get back to you.

If you want to test a quick fix, it will probably help to remove these 2 lines of code, so uncomment the check, not the entire block: https://monosnap.com/file/FZ1rRkp6dFWSAcukTpLrHwbFVLbWx7.png

In this file: mollie-payments-for-woocommerce/includes/mollie/wc/gateway/abstractseparecurring.php

JairZijp commented 6 years ago

Thanks for your reply. I commented out the line you said, but I'm still getting the same error.

davdebcom commented 6 years ago

@JairZijp Please email me on mollie@paytium.nl and I'll have a look.

davdebcom commented 6 years ago

Seems to work now with Mollie 4.0. Please email me if you still encounter issues: mollie@paytium.nl.

k1ev commented 5 years ago

Hi, I'm getting this same error again. Did anything change with the latest update of the Mollie plugin maybe?

Log: 2018-11-08T09:08:03+00:00 DEBUG Creating payment object: type Order, did not fail because of incorrect customerId, so trying Payment now.

2018-11-08T09:08:03+00:00 DEBUG Creating payment object: type Payment, final try, creating a Payment.

2018-11-08T09:08:03+00:00 DEBUG mollie_wc_gateway_paypal: Order xxxx webhookUrl: https://xxxxx.xxxx/wc-api/mollie_wc_gateway_paypal/?order_id=xxxx&key=wc_order_xxxxxxxxx

2018-11-08T09:08:03+00:00 DEBUG mollie_wc_gateway_paypal: Failed to create Mollie payment object for order 7330: Error executing API call (422: Unprocessable Entity): The payment method does not support recurring type. Field: recurringType. Documentation: https://docs.mollie.com/guides/handling-errors

Does anybody have an idea what's up?

davdebcom commented 5 years ago

@k1ev It's not exactly the same issue, if I'm reading the logs correctly. Can you email me on mollie@paytium.nl. I'll need a bit more information about the product settings and WooSubs settings.

k1ev commented 5 years ago

@k1ev It's not exactly the same issue, if I'm reading the logs correctly. Can you email me on mollie@paytium.nl. I'll need a bit more information about the product settings and WooSubs settings.

E-mail sent! Thanks in advance!