pg_card_token
sent by the merchant is verified. If everything is correct, Freedom Pay Gateway responds with a payment_id
curl --location -g --request POST 'https://api.freedompay.kz/v1/merchant/{{merchant_id}}/card/init' \
--form 'pg_merchant_id=""' \
--form 'pg_order_id="550e8400-e29b-41d4-a716-446655440000"' \
--form 'pg_amount=""' \
--form 'pg_description=""' \
--form 'pg_user_id="No65GFR755789T"' \
--form 'pg_user_ip="127.0.0.1"' \
--form 'pg_user_phone="77777777777"' \
--form 'pg_user_email=""' \
--form 'pg_card_token="ef741cfc-f85e-41a0-84e6-2ba964912182"' \
--form 'pg_result_url="https://site.com/result"' \
--form 'pg_success_url="https://site.com/success"' \
--form 'pg_failure_url="https://site.com/failure"' \
--form 'pg_receipt_positions[0][count]="2"' \
--form 'pg_receipt_positions[0][name]="Mouse pad"' \
--form 'pg_receipt_positions[0][tax_type]=""' \
--form 'pg_receipt_positions[0][price]=""' \
--form 'pg_param1="Additional Information"' \
--form 'pg_param2="Additional Information"' \
--form 'pg_param3="Additional Information"' \
--form 'pg_idempotency_key="550e8400-e29b-41d4-a716-446655440000"' \
--form 'pg_loyalty_id=""' \
--form 'pg_loyalty_amount=""' \
--form 'pg_freedom_id=""' \
--form 'pg_salt=""' \
--form 'pg_sig=""'
<?xml version="1.0" encoding="utf-8"?>
<response>
<pg_payment_id>7999007883</pg_payment_id>
<pg_merchant_id>9970</pg_merchant_id>
<pg_order_id>12345</pg_order_id>
<pg_status>ok</pg_status>
<pg_salt>V9UG2EPB</pg_salt>
<pg_sig>8f2e720a6b6f61c0575b6abbdcbcb567</pg_sig>
</response>