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

Heartland: Unexpected 500 when postal code contains whitespace #2

Open
jorbascrumps opened this issue Sep 1, 2021 · 0 comments · May be fixed by #3
Open

Heartland: Unexpected 500 when postal code contains whitespace #2

jorbascrumps opened this issue Sep 1, 2021 · 0 comments · May be fixed by #3

Comments

@jorbascrumps
Copy link

Submitting a purchase request with a postal code that contains whitespace returns the following error from the Heartland API:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <soap:Body>
    <soap:Fault>
      <soap:Code>
        <soap:Value>soap:Sender</soap:Value>
      </soap:Code>
      <soap:Reason>
        <soap:Text xml:lang="en">Unable to process request.  Message failed validation.  The 'http://Hps.Exchange.PosGateway:CardHolderZip' element is invalid - The value 'N1N 1N1' is invalid according to its datatype 'http://Hps.Exchange.PosGateway:zipType' - The Pattern constraint failed.  (line#2,pos#515)</soap:Text>
      </soap:Reason>
      <soap:Node>http://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx</soap:Node>
      <soap:Detail />
    </soap:Fault>
  </soap:Body>
</soap:Envelope>
@jorbascrumps jorbascrumps linked a pull request Sep 1, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant