I found no documentation about creating a money accounts for users to implement scenario when users adds funds to the account and then can pay for services (ads, promoting to front page and etc)

The first idea to use Userpoints module to store data and deposit it with custom rules by selling a product entity (one per paid service).
But how to implement cash withdrawal from userpoints for this services?

For example
- promotion to front page is paid action then if user have enough points we could use a simple rule or redirect to deposit page if no money on account
- banner (ad rotation) this action should be queued and repeatable each month so require to be funded only when queue pops up an order.

Any suggestion on this? I think some of this examples could be very useful in FAQ about using commerce for selling on-site services

Comments

rfay’s picture

Userpoints 7.x has extensive rules integration, so I'm betting that there is some good synergy here. I imagine Berdir has a full vision of how he expects this to work.

rszrama’s picture

Component: User experience » Contributed modules
Status: Active » Closed (duplicate)

Yeah, not much to say from a core Commerce perspective. There is a module that appears to support payment by userpoints with direct input from Berdir (See #1269122: Userpoints Payment Provider), but the idea of purchasing userpoints hasn't been explored yet. I'm guessing this could be entirely configured using a special product type (userpoints purchase) and a Rule on the event "When an order is first paid in full" that grants the customer userpoints equal to the total they've purchased. You might even use a textfield on the product type to store how many points should be granted on order completion. Ultimately, if it needs code, it's going to go in a module like the one that issue was for.

Related issue in this queue: #1213962: Pay by Userpoints

berdir’s picture

Another cross-reference, there is a feature which allows to buy userpoints, see #1270290: Feature that allows to buy userpoints

liupascal’s picture

This project application #1296764: Commerce userpoints needs reviewers - it could be a base to userpoints and commerce working together. It currently works with line items behaving like a discount on the order (negative value decreasing the order total), not directly as a payment method (for several reasons). I talked to Berdir and he should be able to help this module grow bigger with nice features.. But it needs to get promoted first :)

kclarkson’s picture

Just wanted to let you all know that @berdir has created a great module.

I tested it out from a functionality standpoint and it works great. You can purchase points and then use them to pay for stuff.

More Reviewers people #1296764: Commerce userpoints