📜 ⬆️ ⬇️

Atomic payments for parking fees in Lamoda


We have come up with a way to save you from checks and inconvenient reports for corporate compensation (food, gas, parking, communications, etc.).


Having become an issuer of MasterCard cards, Yandex.Money learned how to create special card accounts for targeted expenses: your company credits money to such accounts that cannot be withdrawn from an ATM or spent in an inappropriate way - they can only pay for what the organization is ready to compensate.


The highlight is that the employee does not need to carry additional cards or pieces of paper with him - one Ya.Money card is enough. A new feature has taken root not only within our company, and even Lamoda, an online retailer of clothing, shoes and accessories, has tried a convenient payment scheme.


Checks and papers - fight


If your company practices different target compensation, you probably know the inconvenience associated with it. Still, I remind you:



In addition to the inconvenience for the employee, grandfather accounting methods complicate the lives of financiers. Payments to employees should be carried out as incomes of individuals, do not forget to calculate taxes each time, collect a heap of evidence of spending with the same checks, etc.


One could simply transfer some amount for corporate expenses directly to the employee’s salary card. This removes most of the problems from the accounting department, but can lead to inappropriate spending. For example, no one will prevent spending money not on gasoline, but on something else - this spoils the whole idea of ​​compensation and turns money into a kind of premium. In addition, a bona fide employee may be uncomfortable when his personal money is mixed with corporate money.


How is this implemented with us? Both in the big Yandex and in Yandex.Money, power compensation has long been credited to an office pass, which could be paid in contactless in all canteens of the office and in the nearest cafes. But at one point, Yandex.Money decided on an experiment with the payment of food with their own cards. In order for everything to take off as it should, it was necessary to develop a separate “nutritional” account for a wallet in Ya.Money.


image alt text


The food limit is not taken into account and is not displayed in the total balance of the account - it can be seen only in a separate field.


The task was to ensure that when making payments in specific institutions, money was automatically deducted from this special account, and when paid in any other places, from the main account of the wallet. Using a regular bank card for payment instead of a pass, we also simplified the task of integrating third-party cafes into the food system.


Tags and atomic payments


Since the target expenses should be as transparent as possible for the outlet, we built all the work around the ordinary card payment, hiding the magic on the side of the Yandex.Money payment service. That is, the seller may not even know that you paid for lunch or parking from some special account - for him this is the usual payment with a MasterCard card.


On the Yandex.Money side, each payment from the target account looks like this:


image alt text


The beauty of an atomic operation is that money is transferred somewhere only if all the steps are completed successfully.


If in Yandex.Money this scheme is used to compensate for food, in Lamoda it is used to pay for parking by couriers who deliver orders. At the time of the publication of this article in Lamoda there are about 400 sales representatives in Moscow alone. Agree to count and compensate the expenses of so many people every month in traditional ways is too laborious.


We will analyze the script in more detail:


  1. The courier parked and launched a parking fee in the Yandex.Parking application.


  2. The module for communicating with stores (parking is a store in Yandex.Money terms) places a contract for payment and provides it with the sign “borrowed funds can be used”.


  3. Courier sees the cost of parking and confirms the payment.


  4. In the payment service, each transaction goes through a set of rules that control the limits on payments and give the go-ahead for target expenses in stores. In order for the courier to pay for the parking from the target account, you need the sign "parking shop" at the point of payment and the label "payment for parking" on the Yandex.Money courier account. Of course, the target spending limit should also not be spent.


  5. The funds are credited to the user's account, after which the usual payment is made using a card. The enrollment and debiting operations are carried out synchronously, that is, they form one atomic operation.

Depending on the rules, the purchase can be compensated in whole or in part. In case of partial compensation, the missing corporate money is transferred to the user's account immediately prior to payment.


With all this, the courier can keep personal funds in the Yandex.Money electronic wallet - when you pay for parking with a card, the personal account balance does not change, which allows you to not mix flies with cutlets. The company is also pleased, since Yandex.Parks provide very detailed corporate reports showing the wallet number, the date and time of payment, the parking ID and the license plate number of the corporate car .


Returns, Tricks and Errors


About the history of petty fraud, everything is up to date, and the announcements “Let's make a voucher for hotel accommodation, price - 500 rubles” can be found quite often. Therefore, over the protection against abuse of trust funds also had to think:



Since corporate funds appear on the user's account only at the time of payment and there is no need to open additional accounts for this, financial accounting is notably simplified.


You can take and clone to pay for food or communication


What is especially nice in the transparent payment from the target account is the ease of integration into any scenarios. Since the service provider does not require any changes at all in the payment acceptance process, it is enough to add tags to the employees' wallets and to the identifiers of the payment sites.


This is the dream of a corporate minimalist introvert: no agreements with sellers, no extra payment entities!


Interestingly, in what ways does your company pay for various “benefits”?


')

Source: https://habr.com/ru/post/324080/


All Articles