• Resolved trehulka

    (@trehulka)


    Hi Nicolas,

    so far, your plugin allows to choose from an existing Success or Error page.

    Is it an easy change to use a custom link instead? i.e. website.com/success/?vars=23423jks34
    I need to send to my success page some Query Vars in the URL.

    Best

    Tom

    Tom

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    I added the feature but it would need to be tested before i push it to www.remarpro.com library.

    Add success_query=”my_success_query=var” and/or error_query=”my_error_query=var” to your shortcode.

    It would be great help if you tested it, you can download the featured version via github at https://github.com/New0/direct-stripe/archive/master.zip

    Please note that if you want to pass multiple vars you would need to replace the symbol & by %26

    Keep me posted!

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    I updated the plugin to 1.1.8 with query_vars as shortcode options. Please test the feature from WordPress library.

    Thank you

    I also have a suggestion regarding the URL. I need to have different success urls for different buttons in different places on site? Is it possible to specify it in the shortcode?

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @schastnyy,

    I will add it to the list of features to add in the future.

    Best regards,

    Thanks, hope the next update won’t take too long)

    Cheers

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @schastnyy,

    I’ll try my best, I may ask if you can test it from the github repo whenever I will add the feature.

    Thank you very much for the review!

    Cheers

    Sure, I’ll test it) You can count on me

    Best

    • This reply was modified 7 years, 8 months ago by schastnyy.
    Thread Starter trehulka

    (@trehulka)

    Hi Nicolas,

    thanks for your prompt help!

    It seems it’s not passing the Query Var correctly. So far it just links to the success page without any Query Vars attached, although I’ve set them in the shortcode.

    Does it work on your side?

    Cheers

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    Are the query vars printed after your success/error URL?

    It worked on my tests, also, you need to include the ? before the query var in the shortcode argument.

    Regards

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    You are right, the var data seems corrupted in the request chain, i am going to test it better.

    Sorry about that!

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    I uploaded a cleaner way to do it in the github repo ( https://github.com/New0/direct-stripe/archive/master.zip )

    The new way to pass the argument in the shortcode is :

    success_query=”key1:value1,key2:value2″

    Could confirm it is working?

    Thank you

    Thread Starter trehulka

    (@trehulka)

    Hi Nicolas,

    unfortunately it brings me to my homepage now instead…

    Not sure what’s wrong.

    Cheers

    Tom

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @trehulka,

    Do you have a link where i could see your test button?

    Regards

    Thread Starter trehulka

    (@trehulka)

    Nicolas,

    hope this helps:

    My Shortcode:
    [direct-stripe type=\”payment\” amount=\”$amount4stripe\” currency=\”$currency\” name=\”Book\” description=\”\” label=\”Confirm Booking\” panellabel=\”Book Now!\” display_amount=\”false\” capture=\”false\” success_query=\“key:hgj7yjh\”]

    The link the page is trying to reach on Success:
    /?direct-stripe=payment&amount=66600&coupon&setup_fee&capture=false&description&currency=EUR&success_query&error_query&ds-nonce=2c377fbde0

    Best wishes,

    Tom

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hi,

    I slightly changed the code if you want to try again but I don’t think it will change the result in your case.

    It’s working on my side.

    Are you using the shortcode in a template?
    Did you try on different browsers?

    Regards

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘Custom Success and Error pages’ is closed to new replies.