Freedom Pay
  1. Additional
Freedom Pay
  • Gateway API
    • Introduction
    • Reference
      • Test cards
      • Error codes
    • Sync API
      • Introduction
      • Page
        • Introduction
        • Page
        • Page with amount control
        • Status
      • Pay
        • Introduction
        • Card
        • 3DSecure
        • Cancel
        • Clearing
        • Refund
        • Status
      • Payout
        • Introduction
        • Card
        • IBAN
        • Balance
        • Status
        • StatusV2
      • Transfer
        • Introduction
        • Card
        • 3DSecure
        • Rates
        • Status
      • Card
        • Introduction
        • Add
        • 3DSecure
        • List
        • Remove
        • Status
      • Token
        • Introduction
        • Token Pay
        • Apple Pay
        • Google Pay
        • Samsung Pay
        • Token Payout
        • Status
    • Async API
      • Introduction
      • create
        • create payment
        • create payment recurrent
      • read
        • read payment
        • read request
      • edit
        • edit payment.refund
        • edit payment.reverse
        • edit payment.clearing
      • delete
  • Merchant API
    • Introduction
    • Reference
      • Test cards
      • Test phone numbers
      • Error codes
    • Page
      • Introduction
      • Page
      • Page with amount control
      • Payout page
      • Frame
      • Widget
      • Status
    • Pay
      • Introduction
      • Cancel
      • Clearing
      • Refund
      • Status
    • Payout
      • Introduction
      • IBAN
      • Balance
      • Status by order_id
      • Status by Payment ID
      • Status by Payment ID V2
    • Mobile balance
      • Introduction
      • Init
      • Pay
      • Approve
      • Resend code
      • Status
    • Card
      • Introduction
      • Add
      • Add for payout
      • Remove
      • List
      • Status
    • Token
      • Introduction
      • Saved card with CVC input (Init)
      • Saved card with CVC input (Pay)
      • Non-acceptance payments
      • Non-acceptance payments (Pay)
      • Token payout
      • Status
    • Invoice
      • Introduction
      • Init
      • Info
      • Pay
      • Status
    • Additional
      • Introduction
      • Check request
        POST
      • Result notify
        POST
      • Payout notify
        POST
      • Redirect back
        POST
  • Card API
    • Introduction
    • Payment Cards
      • Reference
        • Request Status
        • Client product
        • Card product
        • Card status
        • Card block
        • Transaction
        • Error codes
      • Card issue
        • Bulk
        • Single
        • Physical
      • Card control
        • Activate
        • Block
        • Unblock
        • Set PIN
        • Reset PIN counter
        • Close
        • Identification
        • Info
        • Balance
        • Secret data
        • Statement
      • Client
        • Create
        • Edit
        • Card list
      • Additional
        • Request status
    • Gift Cards
      • Introduction
      • Reference
        • Request status
        • Card status
      • List
      • Issue
      • Confirm
      • Resend
      • Resend code
      • Status
  • Partner API
    • Rates
      • Introduction
      • Rates
    • Products
      • Introduction
      • Reference
        • Request
        • Product
        • Freedom POS
        • Freedom ECOM
        • Freedom BOX
        • Limits
      • Add user
      • Add product
      • Add user with product
      • Grant user
      • Send auth data
      • Request status
    • E-Money
      • Introduction
      • Reference
        • Request
        • Operation
        • Error codes
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Freedom ID
      • Introduction
      • Android SDK
      • iOS SDK
      • Reference
        • Error codes
      • Link
      • Token
      • Token refresh
      • Info
      • Profile
      • Request
  • Mobile SDK
    • Payment SDK
      • iOS
      • Android
    • Freedom QR
      • Reader SDK (Android)
      • Provider SDK (Android)
  • CMS
    • Introduction
    • Get Merchant ID and key
    • WordPress
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
      • Update
    • Tilda
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • InSales
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • Ecwid
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • Bitrix
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • PrestaShop
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
    • OpenCart
      • Introduction
      • Installation
      • Configuration
      • Test
      • Live payments
  1. Additional

Result notify

POST
https://api.freedompay.uz{{result_url}}

Request

Body Params multipart/form-data
pg_order_id
string 
required
Order ID in the merchant system.
Example:
123456789
pg_payment_id
integer 
required
Internal payment identifier in the FreedomPay system.
Example:
12345
pg_amount
string 
required
Amount of invoice in pg_currency currency.
Example:
500
pg_currency
string 
required
Currency of the invoice
Example:
KZT
pg_net_amount
string 
required
Amount of invoice (in pg_ps_currency)
Example:
482.5
pg_ps_amount
string 
required
Total amount (in pg_ps_currency currency)
Example:
500
pg_ps_full_amount
string 
required
Full amount (in pg_ps_currency currency)
Example:
500
pg_ps_currency
string 
required
The currency in which the payment was made in the payment system. The field may be absent in case of unsuccessful payment.
Example:
KZT
pg_description
string 
required
Payment description.
Example:
Purchase in the online store Site.kz
pg_result
integer 
required
Payment result. 2 - Not completed. 1 - success, 0 - failure.
Example:
1
pg_payment_date
string 
required
Date and time of the payment in YYYY-MM-DD HH:MM:SS format.
Example:
2019-01-01 12:00:00
pg_can_reject
integer 
optional
Indicates if the payment can be rolled back: 1 – Payment can be rolled back
Example:
1
pg_user_phone
string 
optional
Customer phone number (specified during payment initialization).
Example:
7077777777777
pg_user_contact_email
string 
optional
Customer's email (specified during payment initialization).
Example:
mail@customer.kz
pg_testing_mode
integer 
optional
Testing mode: 1 - Test
Example:
1
pg_captured
integer 
optional
Indicates whether clearing was performed at the time of authorization for bank card payments.
Example:
0
pg_card_id
string 
optional
Optional parameter: Card ID for paying with saved card (Deprecated).
Example:
1234
pg_card_token
string 
optional
Optional parameter: Card token for paying with saved card.
Example:
ef741cfc-f85e-41a0-84e6-2ba964912182
pg_card_pan
string 
optional
Masked card number (part of the digits of the card number are hidden).
Example:
5483-18XX-XXXX-0293
Merchant parameters
string 
optional
All fields passed from the merchant's website that do not have the pg_
pg_salt
string 
required
Random string.
Example:
some random string
pg_sig
string 
required
Request signature.
pg_discount_percent
string 
optional
Discount percentage information (sent if there is a discount).
Example:
1.0
pg_discount_amount
string 
optional
Discount amount information (sent if there is a discount).
Example:
5
pg_payment_method
string 
optional
Payment method: wallet
Example:
bankcard
pg_card_exp
string 
optional
Card expiration date.
Example:
03/23
pg_card_owner
string 
optional
Cardholder name.
Example:
Ivan Ivanov
pg_card_brand
string 
optional
Card brand code.
Example:
VI

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{result_url}}' \
--form 'pg_order_id="123456789"' \
--form 'pg_payment_id="12345"' \
--form 'pg_amount="500"' \
--form 'pg_currency="KZT"' \
--form 'pg_net_amount="482.5"' \
--form 'pg_ps_amount="500"' \
--form 'pg_ps_full_amount="500"' \
--form 'pg_ps_currency="KZT"' \
--form 'pg_description="Purchase in the online store Site.kz"' \
--form 'pg_result="1"' \
--form 'pg_payment_date="2019-01-01 12:00:00"' \
--form 'pg_can_reject="1"' \
--form 'pg_user_phone="7077777777777"' \
--form 'pg_user_contact_email="mail@customer.kz"' \
--form 'pg_testing_mode="1"' \
--form 'pg_captured="0"' \
--form 'pg_card_id="1234"' \
--form 'pg_card_token="ef741cfc-f85e-41a0-84e6-2ba964912182"' \
--form 'pg_card_pan="5483-18XX-XXXX-0293"' \
--form 'Merchant parameters="";type=* All fields passed from the merchant's website that do not have the pg_ prefix.' \
--form 'pg_salt="some random string"' \
--form 'pg_sig=""' \
--form 'pg_discount_percent="1.0"' \
--form 'pg_discount_amount="5"' \
--form 'pg_payment_method="bankcard"' \
--form 'pg_card_exp="03/23"' \
--form 'pg_card_owner="Ivan Ivanov"' \
--form 'pg_card_brand="VI"'

Responses

🟢200Success
application/xml
Body
pg_status
string 
optional
pg_description
string 
optional
pg_salt
string 
optional
pg_sig
string 
optional
Example
<?xml version="1.0" encoding="utf-8"?>
<response>
    <pg_status>ok</pg_status>
    <pg_description>Order paid</pg_description>
    <pg_salt>random string</pg_salt>
    <pg_sig>ksdjrimzjedkljsujjemnjsuj</pg_sig>
</response>
🟢200Canceled
Previous
Check request
Next
Payout notify