• Resolved Cascus

    (@cascus)


    Good Day @jaswsinc or @raamdev or anyone smarter than I of course :),
    I have a client that I am supporting that has the Pro version of s2member I am setting up on his site. I am trying to add Billing Modification forms for users to upgrade or downgrade their account.

    I am following the Pro Scripts Billing Modification Form directions and using some of the shortcode hooks in “Wrapping Multiple Shortcodes as “Checkout Options””, however, I am running into trouble.

    When I use those I get a form that wants the “current” user to “Create Profile” again even though they are already logged into their profile.

    Can you help me understand how to hook the Billing Modification for Stripe Pro Forms properly so I can help customers upgrade/downgrade their account? Thanks.

    Here is my code I am currently using in the “My Account” Profile page.
    The website is onestopdramashop.com.

    Code below:

    Hi there [s2Get constant="S2MEMBER_CURRENT_USER_DISPLAY_NAME" /]!    
    
    Your current plan is: [s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /].
    
    [s2If current_user_is(s2member_level2)]
    You can Downgrade to the Month-to-Month plan if you wish.
    
    [s2Member-Pro-Stripe-Form modify="1" level="2" ccaps="" desc="$15.00 USD / Monthly (recurring charge, for ongoing access)" cc="USD" custom="onestopdramashop.com" ta="0" tp="0" tt="D" ra="15.00" rp="1" rt="M" rr="1" coupon="" accept_coupons="1" default_country_code="US" captcha="1" /]
    [/s2if]
    
    [s2If current_user_is(s2member_level1)]
    Upgrade to the Yearly Plan! Save 25%!
    
    [s2Member-Pro-Stripe-Form modify="1" level="2" ccaps="" desc="$135.00 USD / Yearly (recurring charge, for ongoing access)" cc="USD" custom="onestopdramashop.com" ta="0" tp="0" tt="D" ra="135.00" rp="1" rt="Y" rr="1" coupon="" accept_coupons="1" default_country_code="US" captcha="1" /]
    [/s2If]
    
    [s2If current_user_is(s2member_level0)]
    You can upgrade to the Monthly or Yearly plan. The Yearly plan will save you 25% over the month-to-month subscription!
    [s2Member-Pro-Stripe-Form]
    [s2Member-Pro-Stripe-Form modify="1" level="1" ccaps="" desc="$15.00 USD / Monthly (recurring charge, for ongoing access)" cc="USD" custom="onestopdramashop.com" ta="0" tp="0" tt="D" ra="15.00" rp="1" rt="M" rr="1" coupon="" accept_coupons="1" default_country_code="US" captcha="1" /]
    
    [s2Member-Pro-Stripe-Form modify="1" level="2" ccaps="" desc="$135.00 USD / Yearly (recurring charge, for ongoing access)" cc="USD" custom="onestopdramashop.com" ta="0" tp="0" tt="D" ra="135.00" rp="1" rt="Y" rr="1" coupon="" accept_coupons="1" default_country_code="US" captcha="1" /]
    
    [/s2Member-Pro-Stripe-Form]
    
    [/s2If]

    https://wordpress.org/plugins/s2member/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Cascus

    (@cascus)

    I found out that this for SURE needs a separate page for the code to work properly. The suggestion came from Jason on this page: https://s2member.com/kb-article/how-do-i-let-my-members-upgrade-or-downgrade-their-account/.

    I hope this helps others. My code above works perfectly now.

    I rather wonder how can a user update his personal details on Stripe? E.g. address (important for tax) or credit card number without changing the payment plan? Can this be done via the modify form?

    Haven’t found any tutorials how to implement that…

    Thread Starter Cascus

    (@cascus)

    From what I see you can use the Billing Update form on a seperate page. I put in button links, using html, in the My Account page pointing to a new page that contains this type of shortcode: [s2Member-Pro-Stripe-Form update=”1″ desc=”Update your billing information.” default_country_code=”US” captcha=”1″ /]

    Are you saying your folks have to change their billing plan too? I see that as a separate set of forms under “Billing Modification” accordion.

    Yes – in principal users need to be able to change all their details except their email-address and username.

    So it needs to be possible to change:
    a) credit card number
    b) address details
    c) billing plan upsell, downsell, cancel

    Are you sure all of this is possible as long as it’s on a separate page?
    (real problem is that you’re supposed to tell your customers where to do that – and difficult if you have to move it somewhere else because it’s not working if on the normal checkout page).

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Billing Modification for Stripe Pro Forms’ is closed to new replies.