You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
danwinsrx.globalpayments.api.entities.exceptions.GatewayException: Unexpected http status code [500]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelopexmlns:soap="http://www.w3.org/2003/05/soap-envelope"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Sender</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Textxml:lang="en">Unable to process request. Message failed validation. The element \'Header\' in namespace \'http://Hps.Exchange.PosGateway\' has invalid child element \'VersionNumber\' in namespace \'http://Hps.Exchange.PosGateway\'. List of possible elements expected: \'UniqueDeviceId, LicenseId, Password, SiteId, DeviceId, GPSCoordinates, ClerkID, CredentialToken, ClientTxnId, DeviceConfiguration, SiteTrace, PosReqDT, VersionNbr, UserName, x_global_transaction_id\' in namespace \'http://Hps.Exchange.PosGateway\'. (line#1,pos#265)</soap:Text>
</soap:Reason>
<soap:Node>http://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx</soap:Node>
<soap:Detail />
</soap:Fault>
</soap:Body>
Looks like the problem is fixed in the latest version (the code says VersionNbr instead of VersionNumber), but I'm still getting the same HTTP status, except instead of an informative XML body, the response comes with a generic HTML body that contains no details about the error. I'm completely unable to diagnose the problem.
I forked this repository and have my own working copy of it that I maintain. Unfortunately there really isn't any active development or maintenance being done here and the code base is a bit over engineered which may be contributing to the issue.
I tried do a simple card charge transaction from the docs:
Here is the response I received:
danwinsrx.globalpayments.api.entities.exceptions.GatewayException: Unexpected http status code [500]
Here is the issue:
python-sdk/globalpayments/api/gateways/__init__.py
Line 1086 in 15b8fc4
The text was updated successfully, but these errors were encountered: