• Resolved n8-b

    (@n8-b)


    Hi Matthias,

    I have two recent WooCommerce variable subscription orders in which the coupons are not being applied. In the Paymill dashboard I see the pre-authorization transaction with the correct amount, that is with the coupon amount applied to the total. However, the next transaction charges the customer’s card with the full amount.

    Also, these orders stay in the ‘on-hold’ status in WooCommerce. In the order notes I see ‘Awaiting payment confirmation from Paymill. Order status changed from pending to on-hold.’

    I have all the latest versions of WordPress, WooCommerce, Paymill for WordPress and WooCommerce Subscriptions.

    Let me know if there is any other information you need.

    Nathan

    https://www.ads-software.com/plugins/paymill/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter n8-b

    (@n8-b)

    I just took a quick look at the code in woocommerce.php and see in the function beginning on line 445 the ‘get_item_recurring_amount’ is being used. Is this correct or should it be ‘get_total_initial_payment’ as the WooCommerce coupons are applied to the initial order total, not the recurring amount.

    Thread Starter n8-b

    (@n8-b)

    Update – a customer just wrote saying that his bank account is showing two charges for the same order. One for the amount of the subscription – the coupon amount and another for the full subscription amount. Not sure what’s going on so I’ve decided to remove Paymill as a gateway for subscription products for now.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    HI n-8,

    thank you for giving me such detailed feedback. I’ll need to take a closer look on your issue, as this issue did not occur during beta. Could you write me an email to [email protected] with screenshots of the affected orders from WooCommerce and Paymill dashboard?

    Kind regards,

    Matthias

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Concerning your issue: That’s no error, bug or something else, it’s just not not beautiful. Let me explain in detail:

    Subscriptions will be preauthed through my plugin before trying to actually create the subscription. The reason is, that there is no direct feedback during checkout while subscription is created wether there is an error. These errors would be sent delayed through a webhook. To avoid a delay in user feedback, there is a preauth performed. Currently, it’s not possible through paymill API to use the preauthed amount for subscription, so you’ll see two entries in your payments overview in Paymill: One for the preauth, one for the subscription. Only the subscription amount actually is charged, the preauth amount will discard after usually 7 days.

    I am already in contact with Paymill support to allow using the preauthed amount for subscriptions instead of waiting for 7 days until that is discarded.

    Finally, your customer’s credit card isn’t charged twice, it’s charged with the correctly calculated amount.

    Thread Starter n8-b

    (@n8-b)

    OK, great. Thanks for the detailed explanation, Matthias. I know subscriptions are more difficult to deal with than regular products. However, I think Paymill could develop a more elegant solution. Having pre-auth amount appear in customers’ account leads to confusion for them – and also requires quite a bit of time handling their supports emails. Having the pre-auth transaction visible in the Paymill dashboard is not a problem. Having the pre-atuh amount appear in customers’ accounts/bank statements and retained for 7 days, even though ultimately they are not charged, is not ideal.

    Again, thanks for all the work you’ve done on the plugin.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    100% agree!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WooCommerce coupons not being applied’ is closed to new replies.