Stripe - Edit Payment Method no longer works

Edit payment method with Stripe seems to have stopped working recently.

I am pretty sure this worked before because we never received any complaints in the past. But over the past couple weeks we’ve received many complaints about this not working. I can reproduce this issue in a testing environment.

I create a new subscription that bills daily using the Stripe test Visa 4242.

I then immediately change it to Stripe test MC 4444. As you can see below, Stripe properly sees the new card under “Payment Methods” and marks it as default

But subsequent payments still charge to Stripe test Visa 4242, instead of the new default MC 4444:

Hi Alan.

Thanks for reporting this.

Do you mean the using the s2 shortcode, or are you updating it from Stripe’s dashboard?

I am not updating it from the Stripe Dashboard, but using the s2member form on the website. I believe I am essentially using the shortcode. I output the result of this call:

c_ws_plugin__s2member_pro_stripe_form::sc_stripe_form(array(
			"cancel" => 1,
			"desc" => $desc,
			"unsub" => 0,
			"captcha" => 0
		));

EDIT: The code above is incorrect, I meant to write:

c_ws_plugin__s2member_pro_stripe_form::sc_stripe_form(array(
			"update" => 1
		));

Thanks for the new details.

I believe I am essentially using the shortcode. I output the result of this call:

What do you mean? Are you using the s2 stripe cancellation shortcode on a page for the user to cancel?

Or did you write a custom script that includes that code snippet you posted above? If so, could you show me the full code of your customization, please? Where did you put it?

Thanks. :slight_smile:

I am really sorry, I sent the wrong code. I meant to say we output the result of this call:

c_ws_plugin__s2member_pro_stripe_form::sc_stripe_form(array(
			"update" => 1
		));

This is on a page for updating billing. It shows the s2member form for updating billing, I believe it’s the same form as given by the shortcode. The student then uses that form to edit their billing details.

@clavaque Please let me know if you need any logs or other information. I can reproduce this bug on a test site so it’s easy for me to give you logs without worrying about privacy