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

Order completion returns xml content #4

Open
AKNicolle opened this issue Feb 16, 2015 · 1 comment
Open

Order completion returns xml content #4

AKNicolle opened this issue Feb 16, 2015 · 1 comment

Comments

@AKNicolle
Copy link

While testing out the example project, after placing a test order I'm seeing the order data displayed in XML format in the web browser view, rather than seeing the expected order completion message (as seen in the screenshot).

This issue seems to be confined to the .NET/C# SDK, since testing with the Mac SDK shows no such issue.

My development environment is Windows 7 with Visual Studio Community 2013.

@AKNicolle
Copy link
Author

The issue is due to the .xml file type having an association with Safari on my machine. The aMimetype is always returning "Safari Document" which causes the xml check to be skipped and the xml content is displayed instead.

Adding an extra xml check for the string <?xml version=" in doc.body.innerText is sufficient to solve the problem. I'm not sure if this will cause other issues, but I'll be using this as a workaround meanwhile until there's an official patch.

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

No branches or pull requests

1 participant