direct data transfer from the merchant to FreedomPay
data transfer via the user's browser to FreedomPay
When directly transferring data from the merchant to FreedomPay, the merchant must send data to init_payment.php. When transferring data via the user's browser to FreedomPay, the merchant must redirect the user with the data to payment.php. You can transfer arbitrary additional parameters whose names do not begin with pg_. All these parameters will be transferred to pg_check_url and pg_result_url. The names of additional merchant parameters must be unique. After receiving the pg_redirect_url parameter, the user is redirected to the payment page, where the payer completes the payment. If successful, the user will be redirected to the payment page. If the merchant has not transferred all the parameters necessary to create a payment transaction (user's phone number, email and parameters necessary for the selected payment system), they are requested from the user on the freedompay website.
If you want the payer to enter the payment amount himself, you must use this method. When making a payment, the payer first gets to the form where he enters the amount of the payment. Then it is redirected to the payment page where the payment takes place.