curl --location --request POST 'https://api.freedompay.uz/v1/merchant/{{paybox_merchant_id}}/installment/init' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--form 'pg_merchant_id={{paybox_merchant_id}}' \
--form 'pg_order_id=12345' \
--form 'pg_amount=10000' \
--form 'pg_description=test' \
--form 'pg_salt=some random string' \
--form 'pg_sig={{paybox_signature}}'
# Пример подписи:
'init;10000;test;{{paybox_merchant_id}};12345;some random string;{{secret_key}}'
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_payment_id>831338051</pg_payment_id>
<pg_merchant_id>545084</pg_merchant_id>
<pg_order_id>00004</pg_order_id>
<pg_amount>10000</pg_amount>
<pg_redirect_url>https://customer.freedompay.uz/pay.html?customer=your_customer_value</pg_redirect_url>
<pg_status>ok</pg_status>
<pg_type>init</pg_type>
<pg_salt>salt</pg_salt>
<pg_sig>sig</pg_sig>
</response>