Answer the question
In order to leave comments, you need to log in
How to accrue a percentage of the purchase of his goods to the balance of the client?
The client has a balance field, deductions from purchases of his goods should come there. This should probably be somewhere in the controller after the response from the payment system, if it responds with success, then credit the percentage, if failed, then do not credit. If so, I still don't understand how it can actually be implemented. I will be glad for any help.
Answer the question
In order to leave comments, you need to log in
Usually, questions are answered very quickly here, why do you think you were not answered?
See how here: https://github.com/crowdint/acts_as_shopping_cart_app
subtotal, taxes, total are implemented, if I, of course, understood the question correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question