M
M
Maxim35242021-05-23 00:48:33
Java
Maxim3524, 2021-05-23 00:48:33

How to connect payment in Java bot VK?

There is a message bot on VKontakte in Java using SDK com.vk.api version 1.0.7, you need to somehow connect payment to it. Or standard api methods or using third-party services. For example, through link generation or invoicing. For services like free kassa, I did not find an SDK for Java.
It is necessary that payment is convenient and can be carried out from a card, qiwi or phone, if desired. I think that suitable services should be for this.
Perhaps this can be somehow implemented through the REST API, but there is not much documentation on them on the sites of payment systems.
I would be grateful for any help on the issue.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
UberPool, 2021-05-24
@UberPool

I will give an example of paying qiwi.
Let's go to the documentation .
When the conditional button "pay" is pressed, we generate comments for payment, we ask the user to indicate it when paying. We write this information to the database. After payment, the user clicks on the check payment button. We pull out our previously recorded information from the database and compare the user_id. qiwi api method https://developer.qiwi.com/ru/qiwi-wallet-personal... trying to find a payment with the required data. then we write "Found your payment", otherwise we write "We could not find your payment".
As for the SDK, yes, they sometimes don’t exist at all, but I think if you need it, you can just get by with regular api requests, or write your own SDK.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question