WordPress.org

Forums

Simple Stripe Checkout
[resolved] No button appearing on redirect page (7 posts)

  1. kaboomer
    Member
    Posted 11 months ago #

    Hi:

    I'm having a strange issue where the page my customer is redirected to after a successful purchase, an upsell page which is supposed to have another Stripe Checkout button, does not have the intended button (so the upsell won't work). Here's what's supposed to happen:

    - Customer clicks the blue button on this page to buy a CD ( http://www.radionowhere.net/kit/ )
    - Stripe purchase process goes as intended and redirects buyer to this page ( http://www.radionowhere.net/up/ )
    - Customer sees 2nd blue button and clicks to purchase upsell

    What's actually happening is that Stripe is redirecting the post-purchase customer to a page with a different URL - http://www.radionowhere.net/up/?payment=success&amount=1000 - and this URL is not generating the button from the Simple Stripe Checkout shortcode.

    If you can do anything to help me figure out the problem, so that http://www.radionowhere.net/up/?payment=success&amount=1000 displays the correct blue button as intended, I'd truly appreciate it.

    Thanks!

    P.S. this has all been in test mode so far

    https://wordpress.org/plugins/stripe/

  2. Phil Derksen
    Member
    Plugin Author

    Posted 11 months ago #

    You can add the attribute success_redirect_url=”http://myurl.com” to both stripe shortcodes. If you add it to the 2nd Stripe checkout page as a custom URL, does that help?

  3. Nick Young
    Member
    Plugin Author

    Posted 11 months ago #

    @kaboomer

    This is actually not a bug in the code as it is working as intended, but more so something that got overlooked in testing.

    I have emailed Phil and we are working on discussing a better design solution for this particular instance.

    What is happening is that the page checks for the existence of the query string payment and success before it shows the Stripe Checkout button. What happens is that if those query args are found in the URL then the button is told not to be displayed.

    I will update you when we come to a solution.

    Let me know if I can help you out any further until we can get this patched up.

    Thanks

  4. kaboomer
    Member
    Posted 11 months ago #

    Thanks, Phil.

    I'm pretty sure I'm already using that. Here's the code I'm putting into my page:

    [stripe name="Radio Nowhere" description="Spin the Dial! - $20" amount="2000" image_url="http://www.radionowhere.net/wp-content/uploads/2014/05/radionowhere-imfrontcover-square-500.jpg" payment_button_label="I want this!" checkout_button_label="I want this!" billing="true" shipping="true" success_redirect_url="http://www.radionowhere.net/spin/"]

    Am I doing something wrong here?

  5. kaboomer
    Member
    Posted 11 months ago #

    Ah - just saw your post, Nick - thanks. So you're saying that, as of now, what I'm trying to do just won't work? No workaround?

  6. Nick Young
    Member
    Plugin Author

    Posted 11 months ago #

    Nothing that I can think of right now without actually modifying the plugin code itself.

    There is a filter called sc_redirect but right now the way it is setup I don't think it will work currently the way it is setup. And also modifying that alone right now (if it were to work), would make the success message go away so I'm not too sure if that's ideal.

    If I can think of anything else that would make this possible for you with the current release then I will be sure to let you know.

  7. kaboomer
    Member
    Posted 11 months ago #

    OK - thx, Nick.

Reply

You must log in to post.

About this Plugin

  • Simple Stripe Checkout
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic