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

Escaping JSON values #462

Open
LeftPinkie opened this issue Aug 3, 2024 · 0 comments
Open

Escaping JSON values #462

LeftPinkie opened this issue Aug 3, 2024 · 0 comments

Comments

@LeftPinkie
Copy link

I am using PHP SDK "authorizenet/authorizenet", version 2.0. Today I received error "E00013 Extra Options is invalid" when I went to charge a card "create a transaction API". I found out the issue was that I had an ampersand in the PO # even though the documents states that the poNumber field is a JSON string. The solution or work-around is to escape the ampersand character.

A few questions:

  1. why would a JSON-encapsulated string field cause this error?
  2. Are there any other string fields that would need escaping?
  3. The "E00013 Extra Options is invalid" is misleading and not accurate.
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