I am trying to create a credit/wallet like system where user can add their credits from the front-end and when they clicked (buy) a CPT, it would subtract from their total wallet balance.

I've tried using CPT, but I am stuck on user > clicked > buy > subtract price from balance > save the total balance

Also, I am not sure if adding a new post on CPT would be best whenever the user tops up his/her wallet.

Anyone can please shed some light? Have you done like this before?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.