Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Drupal 5.x currently does not have a production-ready patch bundle to allow for split read & writes for a MySQL master/slave replication setup. After reading a open discussion/thread on the Drupal site (http://drupal.org/node/147160 (http://drupal.o…
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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now