• Resolved Ben Castellani

    (@ben-castellani)


    Update Billing Information is no longer working on my site. It has been working for years and just recently stopped working, possibly following the recent Paid Membership Pro update a week or two ago. I noticed when a user reported it just now.

    Basically if a member updates their credit card information, it does not do anything and returns a Stripe error. This is the webpage:

    https://example.com/membership-account/membership-billing/

    POST https://api.stripe.com/v1/payment_methods ERROR: HTTP 400

    Everything else on my site is working. Existing user payments are going through and new users can checkout just fine.

    Is this a new bug?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Ben Castellani

    (@ben-castellani)

    Looking further into the issue from Stripe, it seems my website is not passing the country correctly.

    Stripe reports this error:

    parameter_invalid_empty – billing_details[address][country]
    You passed an empty string for ‘billing_details[address][country]’. We assume empty values are an attempt to unset a parameter; however ‘billing_details[address][country]’ cannot be unset. You should remove ‘billing_details[address][country]’ from your request or supply a non-empty value.

    {
      "billing_details": {
        "address": {
          "line2": "",
          "line1": "1234 Main Street",
          "state": "CO",
          "city": "Denver",
          "postal_code": "80234",
          "country": ""
        },
        "name": "John Smith"
      },

    The country is coming from a drop down menu on the Billing Info page. This has always been there. So seems like a new bug..

    Plugin Support Kim White

    (@kimwhite)

    Hello @ben-castellani,

    I’m sorry to hear you are getting this error. We have seen this on sites using our Multiple Memberships Per User. If you are using this plugin, also you can apply the fix to your site until the update is released.

    https://github.com/strangerstudios/pmpro-multiple-memberships-per-user/pull/120

    If you are not using MMPU and getting this error, it would help to know what other plugins you have installed.

    Kim W

    Thread Starter Ben Castellani

    (@ben-castellani)

    HEllo @kimwhite,

    Thanks for the link, but I am not using that specific plugin. For PMP, I have only the bbPress Addon and “Cancel on Next Payment Date”.

    I have a lot of non PMP plugins installed on my site. I have one called “Accept Stripe Payments” but that is not a new one for me.

    I did notice that Stripe says they updated their API on November 15th for the first time in a long time. May be related.

    Plugin Support Kim White

    (@kimwhite)

    Thank you so much @ben-castellani, for providing this information.

    It appears our billing page is having the same issues. Our developers created a fix, and it will be included in our next update.

    If you are comfortable editing code or have a developer working with, you can apply the fix yourself to the paid-memberships-pro/pages/billing.php page.
    https://github.com/strangerstudios/paid-memberships-pro/pull/2289

    Otherwise, the fix will be included in our next PMPro update.

    Thank you,
    Kim W

    Thread Starter Ben Castellani

    (@ben-castellani)

    Thanks, Kim. I tried to implement the fix but it did not work. It is not urgent so I will just await the next update. Cheers.

    Plugin Support Kim White

    (@kimwhite)

    Hello Ben!
    The update to fix this went out Wednesday morning!

    Thank you again for using Paid Memberships Pro!

    Kim W

    Thread Starter Ben Castellani

    (@ben-castellani)

    Thank you, Kim. I applied the automatic update and the issue is resolved. Cheers!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Update Billing Info not working with Stripe’ is closed to new replies.