-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I tried do a simple card charge transaction from the docs:
response = card.charge(10) \
.with_currency('USD') \
.with_address(address) \
.execute()Here is the response I received:
danwinsrx.globalpayments.api.entities.exceptions.GatewayException: Unexpected http status code [500]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns: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:Text xml: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>Here is the issue:
if self.version_number is not None:
et.SubElement(header, 'VersionNumber').text = self.version_number <----------- SHOULD BE 'VersionNbr'
if client_transaction_id is not None:
et.SubElement(header, 'ClientTxnId').text = client_transaction_id| et.SubElement(header, 'VersionNumber').text = self.version_number |
Metadata
Metadata
Assignees
Labels
No labels