Title: Individual Redirection for Donations
Last modified: March 31, 2017

---

# Individual Redirection for Donations

 *  Resolved [Artemushka](https://wordpress.org/support/users/artemushka/)
 * (@artemushka)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/)
 * Nicolas, thank you so much for this plugin!
    It’s amazing and I truly appreciate
   your effort with it…
 * Here is my story.
 * I want to sell premium articles on my website.
    These are cooking guides that,
   say, consist of 8 steps. I would show 4 of them for free, but, if the visitor
   wants to see the other 4, they would need to make a donation (whatever they want
   it to be).
 * Given this scenario, how can I use your amazing plugin?
 * I though that I can have people donate and get redirected to individual pages(
   each button would have a custom redirect page with the full article, which would
   be set to no-index to search engines, so that no one can see them).
    I tried 
   that, but success_url:”[https://wordpress.org&#8221](https://wordpress.org&#8221);
   didn’t work for me.
 * Basically the two questions I have are:
 * 1. Is my thinking in regard of selling my content viable or there is a far shorter
   path with less ‘friction’?
    If there is something, please let me know…
 * 2. The redirection to an individual URL doesn’t work for me.
    Is that me or it’s
   a bug? (All I could get it to was “[https://XYZ.com/”https://XYZ.com/”&#8221](https://XYZ.com/”https://XYZ.com/”&#8221);
   and that obviously gave a 404 on my site).
 * Thank you so much Nicolas!

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

 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8979679)
 * Hello [@artemushka](https://wordpress.org/support/users/artemushka/),
 * First of all, thank you.
 * I like your idea, and i think your premium content should be a little more protected.
 * The way i see it, needs a custom function added to your theme to use direct stripe(
   and a parameter that i will add soon).
 * – Your visitor read the first four articles and are invited to make a donation
   to read the next parts.
 * – You set up a stripe button with donation type, button_id and redirections url
   for the precise series of articles.
 * – The user is given a new user role that allows him to read the premium articles(
   that are protected by user roles with another plugin or custom template page)
 * To achieve that i would have to add the user ID created during the payment to
   the action ‘direct_stripe_before_success_redirection’.
 * Then you could create and add a custom user role based on the button_id and user
   ID.
 * Do you have any more infos you could send me to fix your “per button” redirection
   issue?
 * All the feedback is appreciated!
 * Thank you again
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8980098)
 * Hi again [@artemushka](https://wordpress.org/support/users/artemushka/),
 * I tested again the success_url argument, and i got a similar result as yours 
   when i made an error in the url like writing “http;//mydomain.ext”… (wrong semicolon).
 * Also in your example you wrote the shortcode argument with “:” when it should
   be success_url=”[http://mydomain.ext&#8221](http://mydomain.ext&#8221); as i’m
   not sure the error is just here…
 * BUt if you downloaded last update of the plugin you don’t need to write the shortcode
   anymore, just enter the url in text input for “Success url” option.
 * Best regards
 *  Thread Starter [Artemushka](https://wordpress.org/support/users/artemushka/)
 * (@artemushka)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8981065)
 * Thank you for your reply Nicolas and your thoughts!
    I would then look forward
   to the next version – thank you for your work and effort. 🙂
 * As of now, let’s get this to function.
 * Here is the shortcode I use:
 * [direct-stripe type=”donation” name=”My plugin” description=”Help me improve 
   the plugin” label=”Buy me coffee” success_url=”https://steakeat.com/” panellabel
   =”This will add one more setting option!”]
 * And you can see the button here (I will leave the button there, so you can test
   it):
 * [https://steakeat.com/chuck-steak/how-to-cook-beef-chuck-steak-on-stove-top-in-skillet.html](https://steakeat.com/chuck-steak/how-to-cook-beef-chuck-steak-on-stove-top-in-skillet.html)
 * Thank you so so much for helping me with this…
 * Merci beaucoup 🙂
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8982010)
 * Hello [@artemushka](https://wordpress.org/support/users/artemushka/),
 * In the redirection error i see “https:/steakeat.com/” as the argument that should
   be redirected to. It is missing a “/” after the “:”
 * Could you double check with https:// ?
 * I will add the action parameter soon.
 * Best regards
 *  Thread Starter [Artemushka](https://wordpress.org/support/users/artemushka/)
 * (@artemushka)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8983201)
 * Hey Nicolas,
 * Please see the exact shortcode that I use above.
    Here it is one again:
 * [direct-stripe type=”donation” name=”My plugin” description=”Help me improve 
   the plugin” label=”Buy me coffee” success_url=”https://steakeat.com/” panellabel
   =”This will add one more setting option!”]
 * As you can see it is definitely “//”.
    I also noticed that myself before writing
   here the last time.
 * Thank you 😉
 * Artem
 *  Plugin Author [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * (@nahuelmahe)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8983827)
 * Hello Artem,
 * When i copy your shortcode, the redirection works for me, maybe try rewriting
   it with single quotes…
 * I added a custom_role option for the shortcode in the Github repo.
 * Do you know how to upload a plugin via FTP?
 * If yes you can download The beta version of Direct Stripe at [https://github.com/New0/direct-stripe/archive/master.zip](https://github.com/New0/direct-stripe/archive/master.zip)
   and override direct-stripe folder in your wp-content/plugins directory.
 * I suggest you use Direct Stripe in combination with the plugin “Members” by Justin
   Tadlock to really protect your premium content.
 * Then, add a custom role to your Direct Stripe buttons (like the name of your 
   recipe).
 * And restrict the view of premium recipes by role (Members plugin added an option
   in posts edition pages)
 * It needs more testing before i push it to WordPress.org library, it would be 
   great if you could test it!
 * Best regards

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

The topic ‘Individual Redirection for Donations’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/direct-stripe_7787ff.svg)
 * [Direct Stripe](https://wordpress.org/plugins/direct-stripe/)
 * [Support Threads](https://wordpress.org/support/plugin/direct-stripe/)
 * [Active Topics](https://wordpress.org/support/plugin/direct-stripe/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/direct-stripe/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/direct-stripe/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Nicolas Figueira](https://wordpress.org/support/users/nahuelmahe/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/individual-redirection-for-donations/#post-8983827)
 * Status: resolved