Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample not returning response #41

Open
aress-preeti opened this issue May 3, 2019 · 2 comments
Open

Sample not returning response #41

aress-preeti opened this issue May 3, 2019 · 2 comments
Assignees

Comments

@aress-preeti
Copy link

Hello,

I have downloaded and setup the sample code. When I enter the details and hit "Pay" button it shows "Processing..." and no further response is displayed on screen, whereas I can see the response in Network tab returned by Authorize.net

image

Can anyone help with it.

@gnongsie gnongsie self-assigned this May 3, 2019
@sojrner
Copy link

sojrner commented May 14, 2019

anyone have a response/solution for this? I'm sure it's something in setup that's missing, but have no idea what it is. Setup on sandbox, I get the transaction email notification that it went through, and the daily overview email comes in showing the transaction, so it clearly processed... but the page is not redirecting or showing the receipt properly? Tried adding tags for hostedPaymentReturnOptions in getHostedPaymentForm to no avail.

@sojrner
Copy link

sojrner commented May 14, 2019

I found the issue in my case; posting here to help others.

This was directly related to this issue on the Authorize forum, regarding the Content Security Policy in the header. Unlike those older versions dealt with there, I can replicate in newest Firefox as well, and it appears that all browsers have the problem. Once implemented for the page, the issue went away and the receipt displays properly. A quick fix was to implement the CSP directly in the markup like so:
<meta http-equiv="Content-Security-Policy" content="frame-ancestors 'self' *.YOURSITE.com *.authorize.net">

I have not tested anything other than the hosted, main pay method on the sample app, as that was all I needed. I also have yet to get this working in apache's .htaccess file, but so far the markup method is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants