Cryptocurrency payment gateway for telegram bots and websites – Telegram Group

Cryptocurrency payment gateway for telegram bots and websites

Cryptobot main menu
Cryptobot Main menu
Created App Menu
# init
$cryp_payment_token = 'token';
$mode = ''; // empty for real account
$crypto = new Sarani\CryptoPay\Api($cryp_payment_token, $mode);
# create invoice, return Invoices object 
$inv = $crypto->createInvoice($params = [
'asset' => 'USDT',
'amount' => '2.50',
'payload' => '11158', # subscription id
'allow_comments' => False,
'allow_anonymous' => True,
'paid_btn_name' => 'openBot',
'paid_btn_url' => 'https://t.me/demobot',
'hidden_message' => 'Thanks for your payment',
'description' => 'Monthly Subscription'
]);
echo $inv->id();
echo $inv->url();
# get invoice, return array of Invoices object 
$res = $crypto->getInvoices($params = [
'asset' => 'TON', // Crypto symbols
'invoice_ids' => '12600,12626,12745', // ids seperated by comma
]);
# webhook, return Webhook object with Update and Invoice 
$hook = new Sarani\CryptoPay\Webhook();
$update = $hook->getUpdate(); // Update object
$nvoice = $update->getPayload(); // Invoice Object
echo( $nvoice->status());

Ten articles before and after

How to improve the monitoring of your Lambda processes with Telegram. Telegram bots AWS Lambda logging – Telegram Group

Выходные с книгой. Рассказываем. Вып. 253 – Telegram Group

Pro-Kremlin Telegram channels promote narrative that Poland will annex western Ukraine – Telegram Group

Create your beautiful sticker pack in Telegram using Figma – Telegram Group

1097+ Best Telegram Group Join Links List Updated – Telegram Group

#WeeklyCryptoUpdates: #Issue3. Telegram users can now send crypto… – Telegram Group

Ways to make money from Telegram groups. Step-by-step instructions. – Telegram Group

Создаем бота Telegram для повышения качества обслуживания клиентов – Telegram Group

Nftstickerco Basics. Registration to nftstickerco starts… – Telegram Group

Send Telegram messages with weather forecast for tomorrow – Telegram Group