• Resolved Covovker

    (@covovker)


    Hi. We’ve found an error introduced in 7.3 version that is still present. It is a major issue that prevents us from updating the plugin to the latest versions, we have to stay with 7.2.1. The error does not allow to place an order if the cart has a subscription product with specific configuration. 

    Here is how to reproduce it. The set up is default latest WordPress, WooCommerce, WooCommerce Stripe Gateway and WooCommerce Subscriptions. Create a variable subscription product with one variation having a non-zero set up fee and zero recurring fee, and the other with a non-zero recurring fee. Add that product to the cart with the zero recurring fee variation and try to place an order. It fails. If you choose a variation with a recurring fee, the order is placed successfully. 

    The error was introduced in the new mandate feature release within ver 7.3. For subscriptions products it adds up all subscriptions recurring fees for the ?amount? field. If the order has only one product with a subscription has no recurring fee but has a set up fee, then the amount is zero, and stripe refuses to process the order.

    That’s what the mandate part looks like in the request:

    "payment_method_options": {
        "card": {
          "mandate_options": {
            "start_date": "1688476957",
            "interval_count": "1",
            "interval": "year",
            "amount_type": "fixed",
            "reference": "12345",
            "supported_types": {
              "0": "india"
            },
            "amount": "0"
          }
        }
      },

    Here is the response body:

    {
      "error": {
        "code": "parameter_invalid_integer",
        "doc_url": "https://stripe.com/docs/error-codes/parameter-invalid-integer",
        "message": "This value must be greater than or equal to 1.",
        "param": "payment_method_options[card][mandate_options][amount]",
        ...
        "type": "invalid_request_error"
      }
    }
    • This topic was modified 1 year, 4 months ago by Covovker.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I understand there is an issue that prevents the completion of an order if the cart has a subscription product with a specific configuration (non-zero setup fee and zero recurring fee).

    To take a closer look, could you please send me a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Download for support” (after you scroll down a bit)”.

    Thanks.

    Thread Starter Covovker

    (@covovker)

    Well, if a system report of a fresh installation of wordpress and those plugins made half an hour before reporting here is of any value… here it is: https://pastebin.com/ymfvgM7K

    • This reply was modified 1 year, 4 months ago by Covovker.

    Hi,

    Thanks for sending the system report.

    For better assistance, please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.

    Please include a link to this forum thread.

    We will be able to help you further there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Payment fails for certain subscription product configuration’ is closed to new replies.