Installment
Activation of the credit/installment service for merchants
Initialize
You initialize a payment page that displays the installment/loan products available to you by sending a request to installment/init

Initialization of installments

Request URL

POST https://api.freedompay.uz/v1/merchant/{{paybox_merchant_id}}/installment/init

Request fields
Response parameters
Example:
Request

curl --location --request POST 'https://api.freedompay.money/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}}'
# Signature example:
'init;10000;test;{{paybox_merchant_id}};12345;some random string;{{secret_key}}'


Response

<?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.money/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>

Request status

Request URL

POST https://api.freedompay.uz/get_status3.php

Request fields
Response parameters
Array for pg_revoked_payments/pg_refund_payments