- Mail Chimp for Restrict Content Pro
- Add Custom User Meta Fields to Restrict Content Pro Registration
- Removing “Restrict This Content” Meta Box in Restrict Content Pro
- Restrict Content Pro – Campaign Monitor
- Restrict Content Pro – Graphs
- Restrict Content Pro – Stripe Payment Gateway
- Hide wp-login.php with Restrict Content Pro
- Add a Agree to Our Terms of Use Field to Restrict Content Pro
This add-on plugin for Restrict Content Pro allows you to accept credit cards through your Stripe.com account during the user registration process.
When using this add-on, your subscribers will stay on your site throughout the entire registration process, instead of being redirected to an outside site, such as PayPal. The user simply enters their credit card information and clicks Register.
Note: This is an add-on for Restrict Content Pro. Version 1.1.2 or later is required to use this add-on.
Securely Process Credit Cards
All credit card transactions are processed securely through Stripe and no sensitive information is ever stored on your server.
Note: you should still always have a valid SSL certificate installed on your registration page.
Features
- Allow users to pay for subscriptions with credit cards.
- Process transactions securely with Stripe.com.
- Accept recurring and one-time payments.
- Complete integration with Restrict Content Pro’s payment tracking system.
- Users with recurring subscriptions can update their credit card info at any time.
- Users with recurring subscriptions can cancel their subscription at any time, from your site.
- Makes the short code available.
Some Important Notes
Stripe has a few limitations that you must be made aware of, since Restrict Content Pro itself does not have these limitations.
1. Stripe only allows percentage based discount codes. It does not allow discount codes that provide a flat amount off of the subscription price, so if you have any non-percentage based discount codes, you must deactivate them.
Related Items


According to Stripe’s PHP API calls you can have recurring billing for more than 1 month increments (ex: once every 3 months).
Does your plugin just not support this?
How many different plans can be created?
Is there different functionality for a function to check if a user is of a certain level?
ex: user_has_subscription( ‘gold_membership’ )
Actually, no, Stripe only supports one month and one year. If you look here https://stripe.com/docs/api?lang=php#create_plan, under interval the only options are “month” and “year”. I’ve had extensive conversations with Stripe support and they made it extra clear that those are the only two options.
I’d love to be proven wrong because Restrict Content Pro itself supports any duration (3 months, 2 days, 5 years, etc).
There are functions to check whether a user has an active subscription, functions to check whether the user has access to the current page, functions to return the ID or name of the user’s subscription, and more.
I feel bad, I thought for sure I saw the API docs said there were options for interval and now it looks like I was looking at coupons.
Apologies for that.
I’m building a web app and would like to use Stripe as my processor and I wont need to hide content but rather to disable functionality in the web app which is why I have the need to check if a user has a certain level.
Sounds like it should be able to work for what I need, may have to pick it up when it comes time for the segment of development.
No worries, I really wish it did support varied billing.
Regarding the lack of being able to create plans like you’ve mentioned, why then in their UI for plans does it show these options http://adamstac.com/LeDI
Pippin? Can you shed some light on this?
Because those options were only aded in the last two months (quite a while after this was released). It’s on my todo list to update it to give support for them.
Hi Pippin,
Restricted Content Pro is the pretty much the exact plugin I was looking for, thank you.
How much work is required on the Stripe end? I set up an account and have all settings in place, or so I thought, because Test payments processed perfectly, showing up on Stripe’s Test dashboard and in payments and all is working as expected.
Actual payment seems to not process however – everything seems to happen fine on the front end (as long as I have Test mode checked in the Payment settings) – otherwise I get an error* – however I’m seeing flatline on Live dashboard and payments after I make a payment.
Video coming soon? Or do is there any Addon Documentation?
Error when Test Mode is not checked and I try to make a purchase:
exception ‘Stripe_AuthenticationError’ with message ‘No API key provided. (HINT: set your API key using “Stripe::setApiKey()”.
Maybe I’m missing a setting? Tips would be appreciated, many thanks!
Ruanna
It sounds like you have not entered your live API keys. Did you enter all four API keys in the settings page?
Thank you for the speedy reply – I do have four API keys entered, yes!
And now that I look closer, I see payments reflected in the WP Dashboard under Restrict > Payments. So that’s good.
I guess where I’m confused is – I’m not seeing anything in the Stripe.com dashboard Live view. It’s a flat line. (When I switch to Test mode, payments showed in Stripe.com dash immediately.)
So – I still seem to have done something wrong.
Can you please double check and confirm that your API keys are correct. Make sure you have entered the secret key in the correct box, and also the live key.
I rolled all the keys and reinserted in the proper boxes. When the Test Mode box is unchecked and I try to make a purchase, I get the same error.
WIth the Test Mode box checked, the purchase happens as it should from the user standpoint, AND the payment shows up in the WP Dashboard under Restrict > Payments. (Would you normally leave this checked or unchecked?)
But the client’s LIVE Stripe account dashboard is still showing no volume, no charges, no payments.
I also tried deleting the Test endpoint, but that made no difference. Don’t suppose it would have anything to do with http vs https? I have forced SSL set on the checkout page.
Thank you,
Ruanna
More info in case it’s useful. My Stripe.com account is set to Live. But if I untick TEST in the RESTRICT dashboard, I get an error when I try to make a Live purchase.
I’m missing something crucial it seems. I did re-generate the API keys last night and re-inserted into RESTRICT. So – just not sure what’s happening.
Thanks for your time! If I can get this working then you’ve pretty much saved my life with these plugins! That’s only a slight exaggeration. : )
Would it be possible for to give me admin login info? If so, send it via a support ticket: pippinsplugins.ticksy.com
I just saw your support ticket come in. I will get to it as soon as I can.
Thank you kindly!
Did you get this sorted out? I am having the exact same issue; smooth sailing in test mode, but “No API key provided” when I take it live.
Yes, this issue was resolved in the latest update. You can redownload it from Code Canyon.
Hey Pippin, I love this plugin on the SSPRO site. I was thinking of adding more e-commerce to my site. Can I calculate volume based and percentage based pricing features with this plugin? For example I have a software package that involves multiple variables and discounts factor as you choose a higher number of seats. Let me know your thoughts.
Glad to hear it’s working well
No, you won’t be able to do that with RCP. Easy Digital Downloads would get you closer, but still doesn’t have everything you need. I believe you’re referring to a price selection process where the buyer chooses the options and such that they want, and then the price is dynamically adjusted. Right?
That is correct Pippin, basically the system applies discounts for 2-4 seats, 5-7 seats, etc. I have an estimating app that the software company provides to me, looking to take part of it and allow people to customize and order low volume orders.
This will be possible (maybe) once the discounts system in EDD is revamped, but I’m not yet sure when that is happening.
When I add a non-percentage based coupon, I get this error “Sorry, but Stripe only permits percentage based discount codes.” Yet, in the interface of Stripe I see this when creating coupons http://adamstac.com/LeF6.
Are flat amount coupons not supported with RCP + Stripe?
That’s another thing that they didn’t used to support and I need to update for.
Getting errors when trying to make a payment with Stripe. Have it in LIVE mode, checked all keys and settings on both ends. When making purchase I get a list of error messages, the first of which reads:
exception ‘Stripe_InvalidRequestError’ with message ‘You must supply either a card or a customer id’ in /var/www/vhosts/mysite.com/httpdocs/wp-content/plugins/rcp-stripe/stripe/Stripe/ApiRequestor.php:66
Stack trace:
[...]
Any ideas?
What version of the gateway do you have?
version 1.2
Ok good, that is the latest. Was this with a brand new user or a logged-in user upgrading their account?
both, and tested myself under both scenarios.
Does it behave the same way in Test mode?
I did not try it in TEST mode, only LIVE. I can do that, but one thought — is SSL required, as i don’t currently have a certificate installed. Your instructions indicated “should” have, but I didn’t interpret that as a requirement. If so, that could be the issue. Please advise.
SSL is not *required*, correct, but it is strongly recommended. All security aside, you will probably notice a very large decline in the number of users willing to signup if you do not have SSL enabled.
agreed, I plan on adding that, just wanted to make sure all is working first. so, back to the issue, why is my Stripe add-on not working?
Could you create a ticket in the support forum (easier to follow than comments here): http://support.pippinsplugins.com/forums/forum/restrict-content-pro/stripe-payment-gateway/
If you could as well, after creating the ticket, post a private reply with login info (if able) so I can login and look at what is going on.
ok, opened private ticket. please take a look. i’ve had people try to make payments and are getting the error messages
Great, thanks. I”ll get to it shortly.
just bought this, great addon
Hi Pippin,
Am I correct in assuming that as long as the checkout page has an SSL cert. and that this plugin is using stripe.js, that it’s all PCI compliant? So no need for a service like CloudSwipe (https://cloudswipe.com/), correct?
Correct!
can i update the existing customer Subscription plan by this plugin…..
For a customer created through RCP or manually in Stripe (or some other system)?
Does this plugin use Stripe’s built-in recurring plan features or is the tokenized and stored for to charge rebills like individual purchases?
Seems like Stripe has added additional recurring billing options since this plugin was first made (e.g. custom intervals)–wondering if it has been updated to reflect those new options.
Thanks!
Stripe’s built-in subscriptions and yes it has been updated for the intervals.
Hello there!
Is it at all possible to use this plugin to set up a premium area of the site (subscription billing), but then also charge the user on a per action basis?
I’m not sure if this is a question for Stripe or about Restrict Content Pro, but I thought I’d give it a shout! Basically my site has paid members, but then based on how many ‘tests’ they take, they have to pay for each, and money should automatically be charged on their account per action that they take.
These tests/actions will actually be done by another user based on an app that I’m building, however I just wanted to see if it was able to be done.
Would you want the tests billed instantly or added to their monthly or yearly bill?
Doesn’t have to be instantly, but on a daily basis. Perhaps a nightly scrub of the user accounts, number of tests, and then billed accordingly. I’m pretty sure I’m going to have to do some customization with the Stripe API, I’m just trying to figure out how to easily integrate it with the membership, so I don’t have to have users auth Stripe twice.
Feel free to email me! Thanks,
Elijah
Hi Pippin,
Your plugins look great.
Stripe supports USD transactions for US accounts and USD & CAD transactions for Canadian accounts.
I need my recurring monthly subscriptions to process in CAD as I am based in Canada. Does your plugin support this?
Thank you!
Yes it does!