Working on creating a Custom cc plug-in . However i cannot get the ICCHostedPaymentFormResponseParser to work .
Does anyone have any ideas of how i can go about this?
Does anyone have any ideas of how i can go about this?
Best answer by Evgeny Afanasiev
Hi
Another idea.
Many gateways having some of the services and APIs behind the Geo Block, etc for security reasons. In the case of hosted form, the API request will be done from the browser of your machine (not from the place where the server is hosted). The server response for the blocked location might not contain “Access-Control-Allow-Origin” header. And that will look like a CORS issue, but root cause is elsewhere.
Below is an actual example of getting a CORS issue when vaulting card via Hosted Form that was caused be geo blocking:

So if you are not based in the area where the gateway usually operates (US?), try to use VPN tunnels, or RDP machine somewhere closer to that region. As a proof of concept, try to access the url location that fails just in the browser to see if you have any response. If the physical location is not an issue, please share some screenshots of browser console.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.