A
A
Alexander2015-07-31 14:14:14
Ruby on Rails
Alexander, 2015-07-31 14:14:14

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

3 answer(s)
P
Pavel Vasterov, 2015-07-31
@zxc80

Usually, questions are answered very quickly here, why do you think you were not answered?

M
Maxim, 2015-08-01
@1kachan

No specifics, and yes, in my opinion you are not a developer at all.

Y
Yauheni Dakuka, 2015-08-04
@ydakuka

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.
704913d41f4747b794dd724de81d0782.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question