Can a customer change their credit card information if using Stripe?

One customer is set for a recurring payment using Stripe. They asked me how they can change their credit card information. I contacted Stripe and it seems that they can’t and I would have to do it for them, which I find a little counterproductive because I don’t want to know their CC info.

When using Paypal, if someone subscribes a second time, it automatically cancels the previous subscription. Would that work for a Stripe subscription? The support at Stripe didn’t seem to understand what I was asking.

there is an update form that you need to show the customer.

What update form? From s2M or from Stripe?

This is the shortcode to add to a page which shows the form to edit account info:

[s2Member-Pro-Stripe-Form update=“1” desc=“Update your billing information.” default_country_code=“US” captcha=“0” /]

You can find this and other shortcodes under the S2Member Pro > Stripe Pro-Forms menu in Wordpress admin

Thanks. I now have something to look into.

In case this is helpful for you to know: the shortcode above might not work for you. It recently stopped working for me (I hope you have better luck with it!).

Relevant thread here: Stripe - Edit Payment Method no longer works

Although I have a shortcode that I can use for a payment modification that a user can use, I have another challenge with this: if I have that as a button, on their account page, is there a way to conditionally display the Stripe one and the Paypal one based on what the user used? I would rather not display both as for some people, they might not remember which way they paid.

I guess that If customer is using Paypal, they have to use Payapl to update the card info.

For Stripe, I use s2If and S2MEMBER_CURRENT_USER_SUBSCR_GATEWAY to know if the gateway is Stripe or not before show the Stripe form.

I hope it will be useful.


Thanks. I didn’t know that was a variable that could be used!

What would be the syntax for this code?
Would this work?
[s2If current_user_can(access_s2member_ccap_diamond) AND s2member_current_user_subscr_gateway(stripe)]

I am not sure how I can test it as I don’t have a paid account (Stripe or Paypal).
Would that syntax also work with paypal?