The translation was generated automatically and may contain mistakes

Module: 7. Monetization

Lesson 7. Sales of digital and physical goods: implementation

The main thing in the lesson

  • Four parties are involved in the payment forms:

    • The client side of the mini-app.
    • Server side of the mini-app.
    • VK Pay is a wallet application hosted by the VKontakte>
    • DMR — ?4??4??4??5??4??1?@Mail.Ru payment system. Since February 16, 2024, the payment service has changed its name and is called VK Payment Solutions (OO).
  • To connect to VK Pay:

    1. 1.

      Make a contract After that, you will have access to payment.

    2. 2.

      Call the payment window VK Pay with the event VKWebAppOpenPayForm and the data for the parameter params form in the server side of the application:

      • Create signature data merchant_data Signature of the seller merchant_sign .
      • Create an app signature sign and connect the string to the secure key of your application.
      • The resulting string needs to be returned to the client side of the mini-application so that the method is called with this data.. VKWebAppOpenPayForm .
    3. 3.

      Subscribe to the Event VKWebAppOpenPayFormResult in the client part of the mini-app and show the user the result of payment.

    4. 4.

      Wait for the server payment notification that will come to the Callback URL specified in the administrative panel of the service ?4??4??4??5??4??1?@Mail.Ru

    5. 5.

      Check the application signature from the payment notification on the server.

    6. 6.

      Give the correct answer to the request in Callback API.

    7. 7.

      Измените статус заказа в базе данны?1?… на« Оплачен».

Useful links

:::