By dpico on
Hi!
I'm a newcomer to D7. I want my premium users have to pay (e.g., by PayPal) for publishing an event announcement or a profile page including location info that will be displayed in a Google Map. In other words, I want my users to be able to advertise themselves and I want to get some money for that.
The best solution would be that they are able to create new contents, but they are "forced" to go through PayPal before the content is published. How can I do that?
I'd also like to know how to set recurrent payments. Is that something PayPal can do? Should I control payments from my site?
Thanks in advance for your advice, drupalists!
Cheers,
David
Comments
I built a site with
I built a site with functionality quite similar to this last year, but unfortunately (for you) I had to write a custom module to do it.
Basically, you need to set the node to be unpublished when created, then when you get a ping back from paypal, you need to have a script go through and set the status of the nodes to published. You will also have to create a new product that can be used for billing, and lives beside the actual product page.
...or at least, that's how I did it. There is usually more way than one to do something in Drupal.
Contact me to contract me for D7 -> D10/11 migrations.
Thanks Jay! That helps. I'll
Thanks Jay! That helps. I'll try to find my way to do this. Good to know that there is no available module for this.
BTW... do you, by any chance, plan to make your custom module publicly available? :-)
I create modules two
I create modules two different ways. Either abstracted, so that they can be used on many sites, or specific, so that they are only usable on specific sites, but meet that site's specific needs. Usually when I take on a project, I put all the site-specific stuff into one large module to improve page load speeds, and only keep the abstracted modules separate. Modules on drupal.org should generally be abstracted enough that they are useable on various sites.
I created this functionality in a custom module specific for that site. It's mixed in with a lot of other code, and it was originally designed with the workflow of that site built into it. So it's not really something I could release to the public.
Contact me to contract me for D7 -> D10/11 migrations.
Also interested to know the way
Also interested to know the way.
Maybe you can use Ubercart E-commerce module ?
Can LM PayPal do it?
This module could be the answer! http://drupal.org/project/lm_paypal
Too bad the D7 version is still in development. I'll try to acquire the necessary skills to contribute to it as soon as possible...
Übercart and Drupal Commerce
This could do it as well:
http://drupal.org/project/uc_node_checkout (in development right now)
http://drupal.org/project/commerce_node_checkout (in development right now)
With ubercart you can sell
With ubercart you can sell roles.
This means you let users register on your site but give them only the basic role.
If they want to publish they need to buy that role. Once they bought one they can publish.
For this of course you need in permissions to say that only the paying role can publish nodes.
It works well.
You can create a block that will only display for those who don't yet have the paying role, in this block you can have a text saying that they need to pay to post and direct them to the ubercart node to buy the role. No need to give them details about buying role, etc, they will not understand, just make it simple and say: pay to post..