pronamic / wp-pronamic-pay-woocommerce

WooCommerce driver for the WordPress payment processing library.
http://www.wp-pay.org/extensions/woocommerce/
6 stars 2 forks source link

Change payment method / mandate description #61

Open remcotolsma opened 10 months ago

remcotolsma commented 10 months ago

We have added support for the WooCommerce Subscriptions payment method change feature:

https://github.com/pronamic/wp-pronamic-pay-woocommerce/blob/49f7c07711b6d963fe57214bebdd0cd97d704c46/src/Gateway.php#L432-L470

Currently the Mollie payment description is something like "Order #1359":

Scherm­afbeelding 2023-10-24 om 10 37 03

This is confusing when entering the payment into an accounting program, because it is not in fact a payment for an order. There is usually no invoice available for these micro payments. It would be nicer/better if it said something like "change payment method for order X" or something like that. In addition, the customer pays € 0.01, but the transaction costs € 0.29. The current minimum amounts are fixed in the code, but it might be desirable to make this adjustable?

CC @rvdsteege

rvdsteege commented 10 months ago

Would "change payment method for order X" be a fixed text as in Payment method change for {subscription_description} or configurable (if so, how/where?). I think fixed is fine in this case (decisions, not options).

In addition, the customer pays € 0.01, but the transaction costs € 0.29. The current minimum amounts are fixed in the code, but it might be desirable to make this adjustable?

Hmm, wouldn't it be kind of strange if customers are charged for changing their payment method? The € 0,01 is out of necessity. Such a setting would apply for all payment methods regardless of their minimum amount, so for example an advanced setting 'Subscription payment method update amount' or could this be a filter (we will then need to use the highest of the payment method minimum amount and the filtered amount)?