đĩCreating a payment
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 https://tegro.money/pay/?params
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:
Warning! If the test payment flag test=1 was passed to the payment form, this parameter also takes part in the signature formation:
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 https://tegro.money/pay/form/ 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.
Example:
Last updated