• Resolved cookney

    (@cookney)


    just updated plugin and had 3 failed orders in 4 mins with same error

    Error processing payment. Reason: Unit amount must be greater than zero. .

    why?

    orders after processed ok but. getting a lot of failed orders way. more than normal like 5-8 a day vs that a week recently

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @cookney,

    Do you have fees or coupons that have amounts of $0 on your site?

    In version 3.2.1, we added additional transaction line items for accounting. The new code includes fees and coupons but I wouldn’t expect a fee or coupon to have a $0 amount but that’s the only way you would be getting that message.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    @cookney,

    I just released a new version, 3.2.2, which prevents $0 unit amounts. Or you can just disable line items all together which prevents those validations.

    Can you explain how your site could have $0 fee or $0 coupons?

    Kind Regards,

    Thread Starter cookney

    (@cookney)

    we have a coupon which adds a product for free to the basket if they spend £20+

    these 3 baskets had this however we have had baskets over £20 and paid by PayPal and these sent through ok..

    I. did disable line amounts so hopefully now looks like is ok.

    • This reply was modified 4 years, 8 months ago by cookney.
    Plugin Author Payment Plugins

    (@mrclayton)

    @cookney,

    Thanks for explaining. The new release, 3.2.2, will ensure line items with unit amounts of $0 are not added to the transaction and thus not fail Braintree’s validation.

    Kind Regards,

    Plugin Author Payment Plugins

    (@mrclayton)

    @cookney,

    Would you mind contacting me via our support email? I have some more questions about how you are using coupons and if you’re using the WC coupon functionality or a coupon plugin.

    Kind Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error processing payment. Reason: Unit amount must be greater than zero. .’ is closed to new replies.