With this plugin can do this:
In the debtor you can specify the percentage of the sale to be turned into points.
With each sale this percentage adds a value of points to the customer.
With the next sale the customer can use this points to get a discount.