• Resolved pollame78

    (@pollame78)


    Hello,

    I am using the plugin with WooCommerce Subscription. For some subscriptions, I have set the first week to be free (0 cost). This generates the following error: “You passed an empty string for ‘payment_method’. We assume empty values are an attempt to unset a parameter; however, ‘payment_method’ cannot be unset. You should remove ‘payment_method’ from your request or supply a non-empty value.”

    This happens because, at the time of payment, if the user does not enter card details or enters fake information, the system generates the error but still creates the order in the backend, which immediately fails.

    For now, I have temporarily resolved the issue by enabling the old checkout via the “legacy experience” function. With the old checkout, the system does not proceed until the correct credit card information is provided.

Viewing 1 replies (of 1 total)
  • Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @pollame78,

    Thank you for reaching out and sharing the details of the error you’re encountering with the WooCommerce Subscriptions plugin when offering an initial free week.

    It seems that enabling the old checkout experience has provided a temporary solution by requiring valid payment information before proceeding. This is an insightful workaround for ensuring that the order process isn’t interrupted by invalid payment details.

    If I understand correctly, you are using the premium plugin?WooCommerce Subscriptions?here. If you have a valid license with us, can you please?open a support request?for us to investigate further about your issue?

    Meanwhile, I will mark this thread as resolved since your concern would be best handled by our Happiness Engineers there.

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Issue with Free Trial Week and Payment Method Error in WooCommerce Subscription’ is closed to new replies.