📜 ⬆️ ⬇️

SMS payments: how it works

Why SMS payments?


Now you will not surprise anyone with the possibility of paying for services by sending an SMS to a certain “short number”. Even the farthest person from the Internet could hear on TV: “Send an SMS to the number XXXX to vote for YYYY”, and at the bottom of the screen see the inscription: “* the cost of sending 30 rubles”. Below I will tell how it works.

pros

Why is this payment method so good? Here are the main, in my opinion, arguments:
  1. Ease of payment
    Today, almost every resident of the country has a mobile phone, and therefore almost everyone has the possibility of such a payment method. To use, you need a minimum of gestures: take the phone and type a small text, and if payment comes from a mobile application (for example, a game), then the user usually only needs to press the “OK” button a couple of times - the application will generate and send an SMS message.
    Despite the fact that most of the amount deducted from the subscriber’s account goes into the operator’s pocket, the size of the accessible audience more than covers the difference: even if we assume that the seller receives one third of the cost of an SMS, it’s enough to have only three times a larger audience than is required to earn the same amount using direct (no commission) payment methods.
  2. Ease of processing payments
    Processing of SMS payments can be fully automated. And if the provision of the service being sold can also be automated, this means the possibility of fully automating the whole process.


Minuses

  1. Small percentage
    Unfortunately, in the best (for the seller) case, 40% of the SMS cost goes to the operator, and since there can be several intermediaries between the seller and the operator, below, the seller can ultimately receive, say, only 10 20% of the cost.
  2. Fixed cost
    The cost of sending an SMS to a short number is determined in advance at the operator level, so the only way to differentiate the amount of payment is to use several short numbers with different values.
  3. [UPDATE:] Increased probability of failure
    Since the message path can be quite long (2-3 jumps), there is an increased (on a vizdku, about 0.1%) probability of SMS delivery failure. With each such case, you have to understand the "manual" mode, which again can be difficult, because first you need to figure out at what stage the failure occurred. If the subscriber turns to the operator, then the problem "goes down" until there is a place of failure. If the subscriber turns to the seller, the problem on the contrary “rises” in the direction of the operator. It is often easier to return money to the subscriber than to understand, and what actually happened.


SMS Life Cycle


')
Types of tariffing

There are two types of tariffing:

Which type of tariffication is used in a particular case depends on the country, operator, short number.
[UPGRADE:] Fixed a bug in the MO schema
SMS life cycle in MO
SMS life cycle in MT

Payment network agents

  1. Operators
    Clearly, it is those who provide communication services to subscribers. For the provision of services, each operator allocates a number of short numbers, which he rents. A short number refers only to the operator to which the subscriber is connected, i.e. SMS message to a short number is processed only by this service provider. The operator "pinches" the lion's share of the cost of SMS.
  2. Aggregators
    Operators are usually not interested in dealing with individual sellers, since they need constant and large SMS traffic, so operators negotiate with aggregators who are intermediaries between them and the sellers.
    It is desirable for the aggregator that SMS messages to the XXXX short number reach him regardless of which operator has the subscriber (otherwise you will have to force the subscriber to find out which operator he has and select the corresponding short number yourself), so he separately negotiates with each operator and takes they are renting room xxxx. Naturally, if one of the popular operators does not want to lease the desired number, then it is more profitable for the aggregator to look for another number to which most operators will agree.
    The operator and the aggregator agree on the cost of short numbers among themselves and the share of each in the cost of SMS. Naturally, the aggregator needs the same short number for different operators to be at least approximately the same, but there will always be a small difference. One operator may have the same short number, for example, 150 rubles, and another - 165.
  3. Subaggregator
    Aggregators, in fact, also not always profitable to work directly with sellers, so they can negotiate with subaggregators.
    A subaggregator usually negotiates with one or several aggregators on the one hand (for example, because different aggregators may have different coverage across countries and different tariff schedules), and on the other, with sellers. For example, a subaggregator can be any affiliate system that sells, not independently, but through its partners. The subaggregator and the aggregator agree among themselves how they divide the cost of the SMS, remaining after the operator has taken its share.
    Of course, nothing interferes with the existence of sub-subaggregators, etc., but since at each stage a significant amount is “pinned off” from the residual SMS cost, this process has a reasonable limitation.
  4. Sellers
    Actually - those who directly provide services, the final link in the chain. Sellers negotiate with the (sub-) aggregator for their share of SMS.


Methods for determining the cost and addressee of the SMS payment

Usually, the cost and aggregator-addressee of the SMS message are determined only by the short number to which it was sent, but in fact this is not always the case. In some cases, it is clarified by the content of the SMS text. The aggregator can agree with the operator that the cost of an SMS to this number will be determined by the so-called “prefix” - a pre-specified combination of characters at the beginning of the SMS text. For example, it may be decided that all SMS to the number XXXX, starting with the text “AGREG1” or “AGREG2”, go to this aggregator, with the first ones costing $ 1 and the second $ 2.

Since the aggregator has a limited number of numbers, it usually agrees with the subaggregator that SMS is sent to it, from certain short numbers and starting with a prefix attached to it, for example, “SUB”. In the case when the cost is set by the prefix, it can be two-syllable, for example, “AGREG1 SUB” (the following is the text essential for the subaggregator).

In turn, the subaggregator can also calculate the vendor by the next level prefix (“AGREG1 SUB SELLER1”), or somehow encrypt the vendor ID in the SMS body.

Full identification of the addressee and the cost of the SMS is determined by the parameters:
Country - Operator - Short number - SMS text.

Technical details


Sub Affiliate Interface

As a rule, all network agents, from the operator to the subaggregator, provide their sub-partners with a tool for obtaining statistics on SMS payments. It is usually made in the form of a site where a sub-partner can register, start his own projects, view current SMS and revenue statistics, and get various reports.

Transportation system

In addition to the user interface, operators and aggregators (and sometimes subaggregators) provide a software interface for two-way interaction. This interface is implemented in the form of web scripts that make http (s) requests to each other when it is necessary to transmit any information.

Consider the example of the interaction of the aggregator and subaggregator.
Each aggregator uses its own protocol and provides its own set of features, there is no standard protocol, but there is a set of standard data that is somehow provided by the aggregator to the sub-partner when receiving an SMS message:


Other possible data:


In addition, the following can be transmitted: internal (for the aggregator) short number identifier, tariff identifier, full SMS cost, subaggregator income, currency in which the payment was made, and so on.

In response, the subaggregator usually sends the SMS text to be sent to the subscriber and / or an error description.

Some aggregators allow the subaggregator to send SMS messages when it is necessary (not in response to the subscriber’s SMS, but as a broadcast) to the specified number, but the fee is charged from the subaggregator itself. Also, some aggregators allow you to split the response into several messages.

Securing Communication

For communication security, the following methods are used:


Instead of a conclusion.


Of course, in my article I did not indicate all the possible nuances, and some things were told very blurry, but I tried to give a theoretical basis, which is completely enough to see the system from a bird's-eye view, and use it as a guide to action.

Thanks for attention!

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


All Articles