Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Restrict Content Pro – Stripe Payment Gateway

Posted on March 8, 2012 by Pippin in Add Ons, Memberships, Plugins, Premium, Shop 47 Comments
Home» Plugins » Add Ons » Restrict Content Pro – Stripe Payment Gateway
rcp-stripe-preview
Tweet
Love It - 2
This entry is part 6 of 8 in the Customizing Restrict Content Pro Series
← Restrict Content Pro – GraphsHide wp-login.php with Restrict Content Pro →
  • 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.

Checkout Loading — Item successfully added to your cart.

Related Items
  • Restrict Content Pro – Wysija Add On
Tweet Follow @pippinsplugins
restrict content pro, Stripe

47 comments on “Restrict Content Pro – Stripe Payment Gateway”

  1. Dustin says:
    March 8, 2012 at 7:42 pm

    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’ )

    Reply
    • Pippin says:
      March 8, 2012 at 11:01 pm

      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.

  2. Dustin says:
    March 9, 2012 at 12:13 am

    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.

    Reply
    • Pippin says:
      March 9, 2012 at 8:45 am

      No worries, I really wish it did support varied billing.

    • Adam Stacoviak says:
      December 18, 2012 at 1:52 am

      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?

    • Pippin says:
      December 18, 2012 at 7:36 pm

      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.

  3. Ruanna says:
    April 5, 2012 at 12:43 am

    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

    Reply
    • Pippin says:
      April 5, 2012 at 10:02 am

      It sounds like you have not entered your live API keys. Did you enter all four API keys in the settings page?

    • Ruanna says:
      April 5, 2012 at 10:51 am

      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.

    • Pippin says:
      April 5, 2012 at 11:42 am

      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.

    • Ruanna says:
      April 5, 2012 at 11:58 am

      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

  4. Ruanna says:
    April 5, 2012 at 11:02 am

    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. : )

    Reply
    • Pippin says:
      April 5, 2012 at 11:46 am

      Would it be possible for to give me admin login info? If so, send it via a support ticket: pippinsplugins.ticksy.com

    • Pippin says:
      April 5, 2012 at 12:11 pm

      I just saw your support ticket come in. I will get to it as soon as I can.

  5. Ruanna says:
    April 5, 2012 at 12:12 pm

    Thank you kindly!

    Reply
    • Rupert says:
      April 27, 2012 at 1:35 am

      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.

    • Pippin says:
      April 27, 2012 at 9:53 am

      Yes, this issue was resolved in the latest update. You can redownload it from Code Canyon.

  6. Joe Hackman says:
    July 25, 2012 at 12:18 am

    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. :)

    Reply
    • Pippin says:
      July 25, 2012 at 9:04 am

      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?

  7. Joe Hackman says:
    July 26, 2012 at 11:54 am

    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.

    Reply
    • Pippin says:
      July 26, 2012 at 7:26 pm

      This will be possible (maybe) once the discounts system in EDD is revamped, but I’m not yet sure when that is happening.

  8. Adam Stacoviak says:
    December 18, 2012 at 2:59 am

    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?

    Reply
    • Pippin says:
      December 18, 2012 at 7:37 pm

      That’s another thing that they didn’t used to support and I need to update for.

  9. Darryl says:
    January 8, 2013 at 11:45 pm

    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?

    Reply
    • Pippin says:
      January 9, 2013 at 2:32 pm

      What version of the gateway do you have?

    • Darryl says:
      January 9, 2013 at 2:53 pm

      version 1.2

    • Pippin says:
      January 9, 2013 at 5:23 pm

      Ok good, that is the latest. Was this with a brand new user or a logged-in user upgrading their account?

    • Darryl says:
      January 9, 2013 at 5:24 pm

      both, and tested myself under both scenarios.

    • Pippin says:
      January 9, 2013 at 5:27 pm

      Does it behave the same way in Test mode?

    • Darryl says:
      January 9, 2013 at 5:53 pm

      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.

    • Pippin says:
      January 9, 2013 at 5:57 pm

      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.

    • Darryl says:
      January 9, 2013 at 5:59 pm

      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?

    • Pippin says:
      January 9, 2013 at 6:01 pm

      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.

    • Darryl says:
      January 9, 2013 at 9:44 pm

      ok, opened private ticket. please take a look. i’ve had people try to make payments and are getting the error messages

    • Pippin says:
      January 10, 2013 at 11:38 am

      Great, thanks. I”ll get to it shortly.

  10. chrismccoy says:
    March 7, 2013 at 2:04 pm

    just bought this, great addon ;)

    Reply
  11. Jason says:
    March 19, 2013 at 5:07 pm

    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?

    Reply
    • Pippin says:
      March 19, 2013 at 5:16 pm

      Correct!

  12. manish says:
    April 15, 2013 at 5:06 am

    can i update the existing customer Subscription plan by this plugin…..

    Reply
    • Pippin says:
      April 15, 2013 at 4:04 pm

      For a customer created through RCP or manually in Stripe (or some other system)?

  13. Eric says:
    April 15, 2013 at 4:03 pm

    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!

    Reply
    • Pippin says:
      April 15, 2013 at 4:05 pm

      Stripe’s built-in subscriptions and yes it has been updated for the intervals.

  14. Elijah says:
    April 22, 2013 at 9:08 pm

    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.

    Reply
    • Pippin says:
      April 23, 2013 at 8:48 am

      Would you want the tests billed instantly or added to their monthly or yearly bill?

    • Elijah says:
      April 23, 2013 at 2:57 pm

      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

  15. Neil says:
    April 23, 2013 at 11:47 am

    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!

    Reply
    • Pippin says:
      April 23, 2013 at 11:56 am

      Yes it does!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Restrict Content Pro – Member Discounts for Easy Digital Downloads
  • Restrict Content Pro – bbPress Extension
  • Restrict Content Pro – Wysija Add On
  • Restrict Content Pro – CSV User Import
  • WP Push Releases Restrict Content Pro Extension

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Test Your Plugins with RTL (0)

    Right-To-Left languages are those that...

  • Submitting Your First Pull Request to a WordPress Plugin on Github (5)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • RT @chrislema: You and I are lucky http://t.co/QbT3xHZArK
    May 25, 2013
  • RT @adampickering_: Excited to be working with @pippinsplugins on WPFundIt just registered a much better domain! WPFund.it
    May 25, 2013
  • @SDavisMedia It was the second extension ever built :P
    May 25, 2013

Topics

shortcodes featured add_options_page attachments campaign monitor meta box Rémi Corson register_setting the_content hook Tom McFarlin wp_enqueue_script contextual help do_action login Related posts authors attachment image forms mail chimp short codes plugin recent posts post types bbpress apply_filters comments short code taxonomies custom post type Ajax images gallery Stripe taxonomy jquery widgets users add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins