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.
Make a contract After that, you will have access to payment.
- 2.
Call the payment window VK Pay with the event
VKWebAppOpenPayFormand the data for the parameterparamsform in the server side of the application:- •Create signature data
merchant_dataSignature of the sellermerchant_sign. - •Create an app signature
signand 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.
Subscribe to the Event
VKWebAppOpenPayFormResultin the client part of the mini-app and show the user the result of payment. - 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.
Check the application signature from the payment notification on the server.
- 6.
Give the correct answer to the request in Callback API.
- 7.
Измените статус заказа в базе данны?1?… на« Оплачен».
- 1.
Useful links
- •
- •Server part (source code) ,
Look at the code fragments by #M5L7> - •
- •
- •
- •
- •
- •
- •
:::