charged_amount_to_send- the payment amount
charged_currency- the currency of payment
address- the recipient's wallet address
custom_id- we recommend you specify a certain reference by which you associate your customer with the payment, for example
charged_amount_to_sendparameter to specify the amount of payment. However, if you look at the endpoint description, you will see that the
charged_amountparameter can also be used instead of
charged_amount_to_sendto specify the payment amount. So what is the difference? The fact is that it will depend on whether the Cryptopay fee and miner fee will be included in the payment amount or whether it will be charged from the merchant balance above it:
сharged_amount_to_send- from the example above, when using this parameter, Cryptopay will deduct the entire fee from the merchant balance and not the transaction amount. In this way, the BTC transaction with the amount of 100 EUR will be sent to the recipient's address at the rate at the time of processing the payment request.
charged_amount- in this case, if we had used this parameter to specify the amount of payment, Cryptopay would have included the amount of all fees in the amount of the transaction sent. Thus, the BTC transaction with an amount of less than 100 EUR at the exchange rate at the time of the payment request would have been sent to the recipient's address.