K
K
kakawka2014-02-16 18:40:39
Ruby on Rails
kakawka, 2014-02-16 18:40:39

Ruby on Rails + DigiSeller. How to implement balance replenishment?

Hello. I have a rails application where I installed devise and added a balance field to the users table.
Now, it is necessary to implement a balance replenishment for the amount that the user enters.
Nobody faced it? I really have no idea what to do.
toaster1.png
As I understand it, on this picture you need to select "Automatic"
And this is a page with a description of the use:
toaster2.pngtoaster3.png
There is also an example of using it in php. If anyone can help skin.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Tonis Simo, 2014-02-17
@kakawka

Faced and did, but of course for the money.
In fact, everything is very simple. You need to write an action (POST method, xml format), it will accept a request (see the second picture), check the parameters from the request and, if everything is correct, credit the amount to the user. For any outcome, the action should return the response in xml format, an example of the response is also in the second picture.
The URL of this action will need to be inserted into the field from the first image.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question