withCredentials
flag should be added to Ajax calls.{
"onlinePaymentMethodId": 2,
"amount": 100,
"returnLink": "https://test-url.com",
"returnSuccessLink": "https://test-url.com/success",
"returnFailureLink": "https://test-url.com/failure"
}
curl --location --request POST 'https://test.api.globkurier.pl/v1/onlinePayment/generateForm/prepaidRecharge' \
--header 'Accept-Language: pl' \
--header 'X-Auth-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"onlinePaymentMethodId": 2,
"amount": 100,
"returnLink": "https://test-url.com",
"returnSuccessLink": "https://test-url.com/success",
"returnFailureLink": "https://test-url.com/failure"
}'
{}