calc_out_sum
Calculate the net amount credited to the shop after commission, given the customer's payment amount.
Instructions
Calculate the amount credited to the shop for a given customer payment.
Useful for showing the commission / final sum in checkout UI.
Signature: <algorithm>(MerchantLogin:IncSum:Password#1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inc_sum | Yes | Amount the customer pays. | |
| merchant_login | No | Falls back to ROBOKASSA_LOGIN. | |
| password1 | No | Falls back to ROBOKASSA_PASSWORD1. | |
| inc_curr_label | No | Specific payment method label from `list_currencies`. If omitted, Robokassa calculates for the default method. | |
| algorithm | No | Signature algorithm configured in the cabinet. | md5 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||