Init
POST
https://api.freedompay.kz/init_payment.php
pg_payment_method=mobile_commerce
must be included in the request to the Freedom Pay Gatewaypg_redirect_url
to a ready-made web interface for the payer to enter the necessary details to complete the paymentInteraction diagram
Request
Body Params multipart/form-data
pg_merchant_id
integer
required
pg_order_id
string
optional
<= 50 characters
Example:
550e8400-e29b-41d4-a716-446655440000
pg_amount
number
required
>= 0.01<= 99999999
pg_currency
string
optional
pg_description
string
required
<= 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:
ruenkzkguz
Default:
ru
pg_user_id
string
optional
>= 1 characters<= 50 characters
Example:
No65GFR755789T
Match pattern:
^[a-zA-Z0-9_-]+$
pg_user_ip
string
optional
Example:
127.0.0.1
pg_user_phone
string
optional
Example:
77777777777
pg_user_contact_email
string <email>
optional
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:
https://site.com/return
pg_success_url_method
enum<string>
optional
Allowed values:
GETPOST
pg_failure_url_method
enum<string>
optional
Allowed values:
GETPOST
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_salt
string
required
pg_sig
string
required
Request samples
Responses
Modified at 2025-03-24 12:46:52