The translation was generated automatically and may contain mistakes
Tracking the result of payment
This section is intended for developers who have already connected VK Pay.
If you want to connect and start accepting payments through VK Pay, write to vkpay_solutions@vk.team .
More about the service - in the section About VK Pay .
After the user closes the payment form, we will inform you about the result of the payment:
- •
In the case of a successful payment, VK Pay will send a payment notification to the URL, which you sent to technical support when connecting. You need check the signature of the notification , decrypt and process the notification data and send a reply with the result of processing.
- •
In the case of a successful payment, the mini-app will send a message to your community VKontakte the user who paid for the purchase, with the result of the payment. With help Callback API VKontakte You can sign up for a special event.
vkpay_transactionto track such posts from users in your community. - •
Regardless of the result of payment VK Bridge will send object
Promiseor eventVKWebAppInitResultwith the following data:- •
statusInformation about the status of payment. Possible values:trueThe payment is successful,false- the payment is unsuccessful or the user closed the payment form without paying for the purchase. - •
transaction_idID of the transaction. - •
amountThe amount of payment. - •
extraAdditional information from the seller. Contains data objectparams.data.
- •
Important! Events that come from a mini-app and VK Bridge do not guarantee a successful payment. The decision to provide a product or service should be made only on the basis of payment Notifications which VK Pay will send to your URL.