I work with the Laravel framework. I am trying to connect web-money merchant api on my site. I looked at the ready api on github https://github.com/baibaratsky/php-webmoney/wiki/X2 , but I don’t know this code at all. Do I need an xml interface, how to convert rubles to usd, how do I know that the transaction was successful to update the balance on the site. If anyone has a simple example with Russian code comments, please help.
1 answer
Once did something like that when I learned php
To receive payment, you need an X20 interface; a list of all Interfaces
Still there is a ready sdk from webmoney for php on github
In short, without using third-party libraries, you need to build a post request from the parameters that are described in the interface, and in response you will receive an answer from which it will be clear whether the payment has passed or not, everything is described in off. dock
PS You set up test payments in the settings for the wallet and try to do it all. Also, if I am not mistaken, you need a personal passport for this.
Good luck!
|