Create payment
POST
https://api.freedompay.kz/init_payment.php
pg_payment_route = frame
must be included in the request to the Freedom Pay GatewayRequest
Body Params multipart/form-data
pg_merchant_id
integer
required
Issued upon connection
pg_order_id
string
optional
<= 50 characters
Example:
550e8400-e29b-41d4-a716-446655440000
pg_amount
number <float>
required
>= 0.01<= 99999999
pg_currency
string
optional
pg_description
string
required
(These parameters may include parameters from other sections. For the effective operation of SecureBox, it is recommended to follow the validation guidelines and field examples from this section)
<= 1024 characters
pg_testing_mode
enum<integer>
optional
Allowed values:
01
pg_lifetime
integer
optional
>= 300<= 604800
pg_language
enum<string> <ISO 639-1:2002>
optional
Allowed values:
ruenkkkguz
Default:
ru
pg_auto_clearing
enum<integer>
optional
Allowed values:
01
pg_recurring_start
enum<integer>
optional
>= 0
Allowed values:
01
pg_recurring_lifetime
integer
optional
>= 1<= 156
pg_timeout_after_payment
integer
optional
>= 1
Default:
10
pg_3ds_challenge
enum<integer>
optional
Allowed values:
01
Default:
0
pg_user_id
string
optional
>= 1 characters<= 50 characters
Example:
No65GFR755789T
Match pattern:
^[a-zA-Z0-9_-]+$
pg_user_ip
string <ipv4>
optional
Example:
127.0.0.1
pg_user_phone
number
optional
Example:
77777777777
pg_user_contact_email
string <email>
optional
Example:
mail@customer.kz
pg_payment_method
string
optional
pg_request_method
enum<string>
optional
Allowed values:
GETPOSTXML
pg_check_url
string
optional
<= 255 characters
Example:
https://site.com/check
pg_result_url
string
optional
<= 255 characters
Example:
https://site.com/result
pg_success_url
string
optional
<= 255 characters
Example:
https://site.com/success
pg_failure_url
string
optional
<= 255 characters
Example:
https://site.com/failure
pg_site_url
string
optional
<= 255 characters
Example:
http://site.kz/return
pg_state_url
string
optional
<= 255 characters
Example:
http://site.kz/state
pg_success_url_method
enum<string>
optional
Allowed values:
GETPOST
pg_failure_url_method
enum<string>
optional
Allowed values:
GETPOST
pg_state_url_method
enum<string>
optional
Allowed values:
GETPOST
pg_receipt_positions[0][count]
integer
optional
>= 1
Example:
2
pg_receipt_positions[0][name]
string
optional
>= 1 characters
Example:
Mouse pad
pg_receipt_positions[0][tax_type]
enum<integer>
optional
0 - Without tax,
1 - VAT 0%,
2 - VAT 12%,
3 - VAT 12/112,
4 - VAT 18%,
5 - VAT 18/118
6 - VAT 10%,
7 - VAT 10/110,
8 - VAT 20%,
9 - VAT 20/120.
Allowed values:
0123456789
pg_receipt_positions[0][price]
number
optional
>= 0.01<= 99999999
pg_param1
string
optional
<= 255 characters
Example:
Additional information
pg_param2
string
optional
<= 255 characters
Example:
Additional information
pg_param3
string
optional
<= 255 characters
Example:
Additional information
pg_commission_discount
enum<integer>
optional
Allowed values:
01
pg_commission_discount_fix
number
optional
>= 1<= 99999999
pg_commission_discount_percentage
number
optional
>= 1<= 100
pg_generate_qr
enum<integer>
optional
Allowed values:
01
pg_idempotency_key
string
optional
<= 255 characters
Example:
550e8400-e29b-41d4-a716-446655440000
pg_loyalty_id
number
optional
pg_loyalty_amount
number
optional
pg_freedom_id
string
optional
pg_template
string
optional
>= 3 characters<= 100 characters
pg_salt
string
required
pg_sig
string
required
Request samples
Responses
Modified at 2025-03-24 10:25:49