Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
DotNetNuke Redirect 3 244
Platform or Service to Create an Online Shopping site 7 213
CURL Error 60 with new certificate 5 78
Very Simple PayPal Question 3 107
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

738 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