Tegro [en]
enru
  • 🌕Ecosystem overview
    • ru
  • 💸Tegro Money
    • 👨đŸ’ģ Getting Started
      • Registration
        • Login to the site
        • Registration of an individual
      • Adding a store
      • Store setup
        • Help with moderation
    • đŸ’ĩCreating a payment
      • Creating a simple form in your personal cabinet
      • Transmitting order information
      • Notification of payment
    • đŸ—ī¸API
      • General Information
        • Creating an order
        • Store list
        • Balance
      • Order verification
        • Order list
      • Withdrawal of funds
        • List of payments
        • Payment verification
      • Ready modules
    • ❓FAQ
      • Rates and limits
      • Project moderation
      • Mass Payments
      • Adding a Telegram bot
    • â„šī¸Background Information
      • Payment system codes
      • Mobile phone codes
      • Alphabetic currency codes
      • Payment statuses
      • Payment errors
      • Customer Service
  • âš–ī¸DEX Tegro Finance
    • 🔎DEX review
    • 👨đŸ’ģ Getting Started
      • The mechanics of operation
      • Roles of the participants
      • Glossary
      • The Open Network
    • 🔄Swap
      • Tokens on DEX
      • Commissions
      • Price impact
      • Slippage tolerance
    • 🐞Bug Bounty
    • 💎Referral program
      • How the affiliate program works
    • 🔧DEX on Testnet
    • 💰Earnings on liquidity pools
    • The mechanics of liquidity pools
    • Monitoring DEX
      • DEX on DefiLama
      • DEX on Coincodex & CoinCheckup
      • DEX on CoinPaprika
      • DEX on CoinMarketCap
  • 🛒Marketplace
    • 🔎Marketplace Review
    • ✨Interface
    • 🎁NFT Earn
  • đŸ›Ąī¸tegro wallet
    • 🔎Wallet review
      • Tegro Wallet
    • 👨đŸ’ģ Getting Started
      • How to use Tegro Wallet
        • Web version
        • Android version
        • Browser Extension
      • Creating a new wallet
      • Connecting an existing wallet
      • Asset management
        • Adding tokens to Tegro Wallet
        • Sending tokens
        • Receiving tokens
        • Transactions
    • ✨Interface
    • ✅TON DNS support
    • 🔧Tegro Wallet at Testnet
    • 🐞Bug Bounty
    • đŸ–ŧī¸Coins and tokens display
      • Displaying fungible tokens
      • NFT display
    • 🆕In future updates
  • đŸĒ™TOKEN TGR
    • 📘TGR
    • 📑Tokenomics TGR
      • đŸ”ĨTGR token burn
    • â„šī¸Information on the network
    • 🛒How to buy TGR cryptocurrency
    • 🔄Balance and transfers in TON
    • 🔜Further Development
Powered by GitBook
On this page
  • Mandatory parameters
  • Additional parameters
  1. Tegro Money

Creating a payment

PreviousHelp with moderationNextCreating a simple form in your personal cabinet

Last updated 1 year ago

With Tegro.money, both the seller and the buyer get an "electronic cashier," which greatly simplifies transactions and speeds up payments.

To create a payment, you need to pass the necessary parameters to a special url

Mandatory parameters

Key
Description

shop_id

Project public key

amount

Payment amount

order_id

Order ID (payment number or customer email)

currency

Payment currency (RUB, USD, EUR)

sign

Request Signature

Additional parameters

Key
Description

lang

Interface language (ru, en)

test

If it is set to "1" - payment will be made in test mode

payment_system

Payment system ID

success_url

Success url

fail_url

Error url

notify_url

Notification url

To form a signature, sort all mandatory parameters by key, join key/value pairs with the & symbol and add your secret key to the end. Then make a hash of the resulting MD5 string, for example:

<?php 
$secret = 'GB%^&*YJni677';
$data = array(
    'shop_id'=>'D0F98E7D7742609DC508D86BB7500914',
    'amount'=>100,
    'currency'=>'RUB',
    'order_id'=>'123',
);
ksort($data);
$str = http_build_query($data);
$sign = md5($str . $secret);

Warning! If the test payment flag test=1 was passed to the payment form, this parameter also takes part in the signature formation:

<?php 
$secret = 'GB%^&*YJni677';
$data = array(
    'shop_id'=>'D0F98E7D7742609DC508D86BB7500914',
    'amount'=>100,
    'currency'=>'RUB',
    'order_id'=>'123',
    'test'=>1,
);
ksort($data);
$str = http_build_query($data);
$sign = md5($str . $secret);

Example:

<form action="https://tegro.money/pay/form/" method="post">
<input type="hidden" name="shop_id" value="D0F98E7D7742609DC508D86BB7500914">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="order_id" value="123">
<input type="hidden" name="lang" value="ru">
<input type="hidden" name="currency" value="RUB">
<input type="hidden" name="payment_system" value="11">
<input type="hidden" name="fields[email]" value="user@site.ru">
<input type="hidden" name="sign" value="e51845e62b106d245cc96c431d8aae42">
<input type="submit" value="Pay">
</form>

It is possible to go directly to the payment system, if you are ready to pass all the data for payment in the incoming request. To do this, send the data by POST to the url be sure to specify the parameter payment_system and pass all the mandatory fields for this method of payment. In most cases this is email, for more information contact support.

💸
đŸ’ĩ
https://tegro.money/pay/?params
https://tegro.money/pay/form/