Russian  English  All projects

Process duplicate php payment number when paying by robokassa



When there are failures in the operation of the robokassa (usually the unavailability of the server), it does not receive answers that the payment is credited, this happens extremely rarely, a couple of times a year, and then in our database unique payment numbers try to send information about the payment to the robokassa again when trying to re-make the payment. Robokassa does not accept such numbers - GIVES ERROR CODE 40, because they are already in it, as posted. In this situation, you need to make the script generate a new payment number.
In the attachment there is a screenshot where to pay
2240 login
2240 Password
http://z35389.adman.cloud/gps

Description: Error code 40
https://robokassa.com/content/tipichnye-oshibki.ht...

OS Centos, Postgree, Yii 1.1 script in php
In the attachment, the payment number generation code and the payment table are
06.10.2024 18:50



 Answers freelancers