Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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
Virus stealing from Paypal via Chrome 4 200
Drupal 7 Custom Panel Layout 2 99
PayPal payment intergation with php 3 87
Joomla 3 insert link 1 43
This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

838 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