Answer the question
In order to leave comments, you need to log in
How to connect a payment system and a telegram bot?
I have a ready-made telegram bot, and I would like to connect it to the payment system ( this one ). And you need to set up webhooks from this payment system. I myself have a bot on aiogram, uses polling. I would like to ask in what direction to move for such purposes, maybe there have already been similar problems?
Answer the question
In order to leave comments, you need to log in
There are two main directions:
function getIP() {
if(isset($_SERVER['HTTP_X_REAL_IP'])) return $_SERVER['HTTP_X_REAL_IP'];
return $_SERVER['REMOTE_ADDR'];
}
if (!in_array(getIP(), array('136.243.38.147', '136.243.38.149', '136.243.38.150', '136.243.38.151', '136.243.38.189', '136.243.38.108'))) {
die("hacking attempt!");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question