Seems like no straight forward way / guidelines / documentation on how to setup a recurring billing with commerce and paypal in drupal v7.

Looking a DrupalCon Denver 2012 presentation from Drupalize.me lead and seems like it should be possible, even though "hard". Apparently two options are supported if I use the Paypal service.
- Registered credit card is billed regularly
- Plan for charging paypal account regularly

It should be possible to setup the recurring payment on the paypal business account so that it will throw out a status URL once every recurring payment is processed, or if a payment fails, etc. According to this response it should be possible to react from the drupal side and:
- write some custom code somewhere so as to react to the status sent by paypal recurring payment.
- setup some rules to react to statuses from paypal, send out emails, etc.

For this site, some custom logic will be required if a payment fails and a role needs to be unassigned

Question here is: where to write this code? are there any examples to look at as reference? do I need a new module, or modify some existing modules?

In terms of modules, should this be setup using drupal commerce and commerce_paypal?
What type of products does it support? Currently I am using Commerce License module to sell specific roles and give access to premium content. Would I be managing the licenses status through the custom code in that case ? I am also using Commerce License Billing module currently...

I read about commerce_sp and commerce_sp_paypal, but I can't really make my mind as whether I will need these or not (?)

Please help, thanks!

Comments

Dev1.addweb’s picture

Hello nyumbani_yangu,

You can use "commerce_recurring" module to setup recurring process. To bill registered credit card regularly, use module "commerce_cardonfile"-for storing credit card info and "commerce_cardonfile_recurring"-for recurring payments.

Also for charging paypal account regularly you can use commerce_sp and commerce_sp_paypal. commerce_sp_paypal provides integration with rules module. So Assigning Roles, Sending out emails etc can be easily done with rules. For custom logic as well you can use rules or build your own custom module. Detailed process of building the business logic using commerce subscription product is well explained here - http://shushuinbar.blogspot.in/2013/01/using-drupal-commerce-for-node.html

Refer following link for various methods of recurring payment:

1. http://pronovix.com/blog/recurring-payments-drupal
2. http://www.innoraft.com/blog/recurring-subscription-payment-options-drup...

Let me know if you face any query/concern.

Thanks,
Deepali Agarwal | AddWeb Solution

rodvolpe’s picture

Has anyone done mixed cart recurring (two products in the cart product A = one-off product B = recurring) with paypal pro and ec.

How would you approach this. Is it possible with paypal pro/ec.

Thanks