Support » Plugin: Stripe Payments WordPress Plugin – WP Simple Pay » multiple success landing pages

  • Resolved Steve Hirons

    (@stevehirons)


    Hi all,

    Hope someone can help with this. I have read through the docs and can see that you can redirect to different success landing pages using some custom code and form id. I am just struggling to find out where this custom code actually goes and which part of the code is the form id. If anyone could help , it would be amazing. Here is the sample code from WP Simple pay docs and a little underneath of how i think my edit should go.

    function simpay_custom_form_157_payment_success_page() {
    // Change the redirect URL
    return ‘http://www.mywebsite.com/somepage’;
    }
    add_filter( ‘simpay_form_157_payment_success_page’, ‘simpay_custom_form_157_payment_success_page’ );

    I take it the ‘157’ is the ID of the plan or subscription i would replace with my own one called newpurchase for examples sake? so it would be

    function simpay_custom_form_newpurchase_payment_success_page()

    thanks i advance guys

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Nick Young

    (@nickyoung87)

    The 157 is the form ID. You would need to replace this with the actual form ID of your form you want to change. This is the same ID number that shows up in the shortcode you would paste into the page.

    Steve Hirons

    (@stevehirons)

    Hi nick , thanks for replying. Ian not using short codes so would it just be the id of the stripe plan/subscription? Also where do I paste this code ?

    Thanks
    Steve

    Plugin Contributor Nick Young

    (@nickyoung87)

    No, the shortcode is just the example where you pull the ID from easily.

    2017-10-24_1336

    Steve Hirons

    (@stevehirons)

    I am using stripe code [stripe][/stripe] commands within a text box so I don’t create a form. But where does the code get pasted ?

    Steve Hirons

    (@stevehirons)

    Hi, I am using simple pay pro and it does not have the side menu you show in your picture. I can only use coding within a text box so there is no shortcode option on the page. i have linked some images so you can see. Also the function code snippet i mentioned earlier, which file does this go ?

    code box
    simple pay pro interface

    Plugin Author Phil Derksen

    (@pderksen)

    @stevehirons It looks like you’re using our legacy Pro version. Could you submit this over at https://wpsimplepay.com/contact/ for our team to take a look at and reply via email?

    Thanks,
    Phil

    Steve Hirons

    (@stevehirons)

    Hi Phil,

    I tried doing that but unfortunately our support has ended and it keeps referring me to this forum. Just had a chat with manager and agreed to update so will purchase new license and repost over at that link, but thanks phil for your replies.

    Thanks
    Steve

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘multiple success landing pages’ is closed to new replies.