• Resolved oahvenla

    (@oahvenla)


    Hi,

    I recently took this plugin to use on a Woocommerce side offering subscriotions. Just found out that if a customer signs up with a discount coupon, that coupon is not applied in the first payment. I think I traced this down to the Paymill ‘offer’ handling: the subscriotion plan has been registered without any discounts to Paymill, and that’s the payment plan applied to the sub, even if it should receive a discount.

    Perhaps relatedly, the same customer was also charged twice on the day of the sub: so instead of needing to pay 45€ -11€ discount (34€) at first, then €45 monthly, she was charged 2x 45€ on the day of sign-up. I don’t quite understand the cause for the double-charge yet, but Paymill does say she’s up for a renewal payment in two months time, instead of next month.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter oahvenla

    (@oahvenla)

    found this commented out in woocommerce.inc.php (line 461):

    // currently, there is no initial payment fee possible through paymill, so we are required to make a refund if a coupon is reducing initial fee.
    /*if($this->total < 0){
    $this->total_sub_refund = (($this->total)*(-1));
    }*/

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Hi,

    unfortunately, discounts/coupons on subscription items are not possible with Paymill. That’s a limitation of the API and cannot be bypassed through plugin. There may be a new premium subscription service of Paymill allowing that, but there isn’t anything proofed at the moment.

    Double Charges shouldn’t occur. Please check wether charge already has been refunded by script or isn’t finished (no green point on payment in Paymill dashboard).

    If you have any questions, please don’t hesitate to ask.

    Kind regards,

    Matthias

    Thread Starter oahvenla

    (@oahvenla)

    Thanks for the answer! We refunded the intended discount (which I suppose the commented-out code was intended for as well), so one of the charges now shows gray point (“partially refunded”), while the other shows green (“closed”). We’ll have to confirm with the customer they have not been charged twice – and keep following when the next payment is received, since Paymill shows next due date on 30.9., rather than end of August. I can send you a screenshot of the Paymill dashboard, if that would be helpful.

    Plugin Author straightvisions GmbH

    (@matthias-reuter)

    Yeah, I’ve commented that out, as discounting on subscriptions is not supported :/ Refunds results in extra costs for merchants, so I didn’t see that as an option. You may want to customize / re-use my code to achieve an interims solution until there is a new/updated subscriptions API from Paymill.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce subs don't get discount coupons applied’ is closed to new replies.