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_transaction to track such posts from users in your community.

  • Regardless of the result of payment VK Bridge will send object Promise or event VKWebAppInitResult with the following data:

    • status Information about the status of payment. Possible values: true The payment is successful, false — payment is unsuccessful or the user closed the payment form without paying for the purchase.
    • transaction_id ID of the transaction.
    • amount amount of payment.
    • extra Additional information from the seller. Contains data object params.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.