How can I implement a points and credit system for customer purchases?

Hi,

I am looking for a solution :

where my client can purchase at my shop can receive “point” when they buy things.

Out of “points”, we can set “credit” for the user as one of the payment way.

Any help will be appreciated

Thanks