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_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 - the payment is unsuccessful or the user closed the payment form without paying for the purchase.
    • •
      transaction_id ID of the transaction.
    • •
      amount The amount of payment.
    • •
      extra Additional information from the seller. Contains data object params.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.