Solved

Register account - Take payment using Paypal - Then Create account if payment successful

Posted on 2014-03-19
1
581 Views
Last Modified: 2016-03-24
Hi,
I need some advice in creating in creating payment based account registration in drupal 7.

I have thought about using Drupal Commerce to achieve this feature, however its a massive overkill to use it just for a registration page which goes to a payment gateway(paypal), then create an user account upon successful payment.
If Drupal commerce is the way to do this, what is best practise to create a registration system like this?

I have tried to do this with Form API, but became stuck when dealing with payment gateways.
0
Comment
Question by:codeyear
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
Arrow_1 earned 500 total points
ID: 39943098
I wouldn't say it's overkill... Drupal Commerce is the way to go for accepting payments on your Drupal site. It's a very simple module on its own. You can plug in additional modules to add the functionality you need such as the Commerce Paypal module to accept paypal payments. Paired with the Rules module, you should be able to accomplish your goal. Rules allows you to trigger actions based on events.

Your situation could be set up something like this:
Create a Role for your users. Something like "Paid User".
With Commerce, create a product for a paid registration.
With Rules, create a rule that is triggered on account registration that adds the paid registration product to their cart, the redirects the user to the checkout screen.
Create another rule that is triggered on a successful payment that adds the "Paid User" role to that user account.

Now you can define whatever permissions for that paid user role to give them access to the paid areas of your site.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since I am currently running into this issue right now as I type this, I though I would share my experiences with moving a ModX Revolution site from one server to another.  It is not an easy task, but can be accomplished rather easily. The first …
Knowledge base software has turned out to be a quite reliable method for storing information, promoting collaborative work and for sharing valuable input and solutions.However, some organizations are trying to develop a knowledge base that works wit…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question