Mobile Push

Overview

Mobile Push is a payment method that allows customers to top up their accounts with the cash on their mobile network operator accounts in Kazakhstan. Within the payment platform, top up payments are processed by using Gate in the same manner as a purchase payment is processed (sale type of operation).

Payment method type Mobile commerce
Countries and regions Kazakhstan
Payment currencies KZT
Currency conversion
Purchases
Payouts
COF payments
Full refunds
Partial refunds
Chargebacks
Special considerations  
Onboarding and access fee Refer to your key account manager at JetPay.

Interaction diagram

Account top up operation processing by using the Mobile Push payment method requires merchant web service, the JetPay payment platform, and the provider's technical facilities.



Operations support

  Interfaces Times
Payment Page CMS Plug-ins Gate Dashboard basic threshold
Topping up an account 1 minute 26 hours

You can check the payment amount limits in your project by using Dashboard. To check your payment amount limits, go to Dashboard, select the Projects section and click the Payment methods tab.

Processing scenarios

In the Mobile Push method, to top up an account your customer needs to submit the top up request to the merchant web service or initiate the top up operation in the mobile network operator app.

Figure: Topping up an account



The sections that follow provide more information about what you need to perform payments and how you can analyze payments and operations information.

Table 1. Available mobile network operators and their limits
Mobile network operator Amounts, KZT
minimum maximum
per transaction in 24 hours
Activ 200.00 148,850.00 290,000.00
Altel 5.00 60,000.00 290,000.00
Kcell 200.00 148,850.00 290,000.00
Tele2 5.00 60,000.00 290,000.00

Topping up an account

General information

In the Mobile Push method, the merchant web service is required to do the following when processing account deposits:

  1. Accept and process the request from JetPay. The processing includes the verification whether the customer account exists.
  2. Send the response with the information whether the customer account exists.
  3. Accept and process the request for the transaction ID on the web service side.
  4. Send the response with the transaction ID to the payment platform.
  5. Accept the callback with the top up result from the payment platform.

The following diagram provides the detailed picture on how the account depositing procedure is performed.



Figure: Topping up an account

  1. While using the mobile network operator service (the web site or the mobile app), a customer chooses the web service and the account to top up and enters the required data.
  2. The mobile network operator service sends a request to check whether the account exists to the JetPay URL.
  3. The payment platform processes the request.
  4. The payment platform forwards the request to the web service.
  5. The web service processes the request.
  6. The web service returns the response to the payment platform.
  7. The payment platform submits the customer account data to the mobile network operator service.
  8. The customer completes all the steps required to top up the account in the mobile network operator service.
  9. The mobile network operator service submits a request to top up the account to the JetPay payment platform.
  10. The payment platform processes the request.
  11. The payment platform sends a request for the payment ID within the web service side to the web service.
  12. The web service processes the request.
  13. The web service returns the payment ID to the payment platform.
  14. The payment platform sends the callback with the account top up operation result to the web service.
  15. The payment platform sends the notification with the account top up result to the mobile network operator service.
  16. The customer receives the result of the account top up from the mobile network operator service.

The sections that follow discuss in more details the request format when using Gate and the format of the callbacks with account top up results. For the general information on how to use the Gate API, see API Description.

Request format

Request for verifying the existence of the account

There are several things you need to consider when dealing with account top up requests in the Mobile Push method:

  1. To verify the existence of the customer account, the payment platform sends the verify request to the web service URL using the HTTP method POST.
  2. The request has the following parameters:
    • type—the operation type on the web service side (always verify)
    • customer_id—customer account ID within the web service used for topping up from the customer account within the mobile network operator service
    • project_id—the project ID you obtained from JetPay
    • signature—the signature for the request.

    Figure: Example of the data from the request for verifying the customer account

    {
        "type": "verify",
        "project_id": 1234,
        "customer_id": "7123456789",
        "signature": "e19695449545fac562843ca06e7e0f3e51281ad6"
    }
  3. You need to send the response to the verify request synchronously. The response must contain the following parameters:
    • code—the response code
    • currency—the code of the purchase currency in the ISO-4217 alpha-3 format.
    Table 2. Applicable response codes
    Code Description
    0 Success
    400 Signature error
    404 The customer account does not exist
    500 General error, the reason must be specified in the message parameter

    Your response can contain the following additional parameters:

    • additional_customer_id—the unique customer ID used for the customer identification in the JetPay payment platform
    • message—the free-form description of the response code

    If the existence account verification is successful, the response should contain the 0 response code to the request and the currency code.

    Figure: Example of the request response

    {
        "code": 0,
        "currency": "KZT",
        "additional_customer_id": "customer_123"
    }

    If the request cannot be processed or the requested account is not found, the response should contain the 404 response code and the error description in the message parameter.

    Figure: Example of the request response with an error

    { 
        "code": 404,
        "message": "Account does not exist"
    }
Request for the transaction ID

There are several things you need to consider when dealing with requests for the transaction ID:

  1. The payment platform sends the check_deposit request for the transaction ID on the web service side to the web service URL using HTTP method POST.
  2. The request contains the following parameters:
    • type—the operation type on the web service side (always check_deposit)
    • project_id—the project ID you obtained from JetPay
    • customer_id—customer account ID within the web service used for topping up from the customer account within the mobile network operator service
    • amount—purchase amount in minor currency units without any decimal point or comma except for cases where the currency does not have any minor currency units. If the currency has no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
    • currency—code of purchase currency in the ISO-4217 alpha-3 format
    • payment_method—the payment group ID. The value of the parameter depends on the mobile network operator service and can be:
      • terminal/activ—for the Activ mobile network operator service
      • terminal/altel—for the Altel mobile network operator service
      • terminal/kcell—for the Kcell mobile network operator service
      • terminal/tele2—for the Tele2 mobile network operator service
    • signature—the signature for the request.

    Figure: Example of the request for the transaction ID on the web service side

    {
        "type": "check_deposit",
        "project_id": 1234,
        "customer_id": "7123456789",
        "amount": 100000,
        "currency": "KZT",
        "payment_method": "terminal/tele2",
        "signature": "lY0LTSAzpR7...dOqRXJnL1kO0lUmkQ0YYLWRg=="
    }
  3. You must respond to the check_deposit request synchronously. The response must contain the following parameters:
    • code—the response code
    • payment_id—the payment ID unique in the web service
    Table 3. Applicable response codes
    Code Description
    0 Success
    400 Signature error
    404 The customer account does not exist
    500 General error, the reason must be specified in the message parameter
    Your response can have the following additional parameters:
    • message—the free-form description of the response code
    • description—the description of the payment

    The response to the request for the transaction ID on the web service side must contain the response code and the unique transaction ID within the web service.

    Figure: Example of the response with the transaction ID

    {
        "code": 0,
        "payment_id": "payment_47",
        "description": "Success"
    }

    If the transaction ID cannot be found, the response must contain the response code and the error description in the message parameter.

    Figure: Example of the response with the information about an error

    {
        "code": 500,
        "message": "Something went wrong"
    }

Callback format

The Mobile Push method uses the standard format for callbacks to deliver purchase results. For more information about callbacks, see Callbacks in Gate.

The following is an example of a callback with the information about a successful 1000.00 KZT purchase.

Figure: Example of data from a successful purchase callback

{
    "project_id": 1234,
    "payment": {
        "id": "payment_47",
        "type": "purchase",
        "status": "success",
        "date": "2022-03-25T11:08:45+0000",
        "method": "tele2",
        "sum": {
            "amount": 100000,
            "currency": "KZT"
        },
        "description": ""
    },
    "account": {
        "number": "7123456789"
    },
    "customer": {
        "id": "customer_123",
        "phone": "81231234567"
    },
    "operation": {
        "id": 28,
        "type": "sale",
        "status": "success",
        "date": "2022-03-25T11:08:45+0000",
        "created_date": "2022-03-25T11:08:05+0000",
        "request_id": "9e32835fb27907e0b08569d7d150e387a16a80e336c5117242b5cf60a4e17839",
        "sum_initial": {
            "amount": 100000,
            "currency": "KZT"
        },
        "sum_converted": {
            "amount": 100000,
            "currency": "KZT"
        },
        "code": "0",
        "message": "Success",
        "provider": {
            "id": 12345,
            "payment_id": "123abc123-321",
            "auth_code": ""
        }
    },
    "signature": "U7HQO7ToISZhMPKdM4Xr4DSX2UuHp99rHrtaxkUKQtoYzFvoB3cs9CRd4xeYG2Q=="
}

Related topics

The following topics might be useful when implementing payments through Gate:

Analysis of payments results

As with other payment methods JetPay offers, when using this method, you have several options to analyze the information about payments and operations.

You can load and analyze all the necessary information in Dashboard (dashboard.jetpay.kz), for instance you can use the analytic panels in the Analytics section for this purpose.

Also, you can export the information for further analysis by using third party analytical tools. The following options are available:

  • Dashboard allows you to download reports in CSV format by using the tools in the Reports section. You can perform export as a one-time or regular download of data to your local computer.
  • Data API allows you to have payment information exported in JSON format and delivered to a URL you specify. The payment information is exported by means of sending requests to the /operations/get endpoint.

If you have any further questions regarding payment data analysis, contact JetPay technical support.