Solved

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

Posted on 2014-03-19
1
543 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

DotNetNuke (DNN) (http://www.dotnetnuke.com) is a leading open source web content management system (CMS) and application development framework for Microsoft .NET. Localization is an essential part of building websites, especially in countries that …
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 …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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