Yes, many games do use credits. And Stripe/Braintree/Paypal will all let you build games that use credits on their platform.
However, I don't know of any games that allow you to redeem the credits for cash - which would be incredibly useful for incentivizing production of goods in a digital marketplace.