The translation was generated automatically and may contain mistakes
Tracking the Payment Result
After the user closes the payment form, we will inform you about the result of the payment:
- •
In the event of a successful payment, VK Pay will send a payment notification to the URL, which you have provided 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— payment is unsuccessful or the user closed the payment form without paying for the purchase. - •
transaction_idID of the transaction. - •
amountamount of payment. - •
extraAdditional information from the seller. Contains data objectparams.data.
- •
Important! Events that come from the 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 notice which VK Pay will send to your URL.