XML parse exception is thrown when subsequentAuth tag is passed in TransactionProcessor request for Cybersource
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by tracing how the PHP SDK serializes TransactionProcessor requests and handles the subsequentAuth field. Reproduce the supplied request against the Cybersource test endpoint, comparing it with the same request without subsequentAuth. Done means a request containing subsequentAuth is accepted without the XML parse fault while existing requests remain functional.
Written by the indexing model from the issue text.
Description
Iam getting SOAP fault exception : XML parse error when passing subsequentAuth tag in the XML payload.
Endpoint used: https://ics2wstesta.ic3.com/commerce/1.x/transactionProcessor/
XML request used:
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>steelbrickbilling</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">**MASKED**</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</s:Header>
<s:Body>
<requestMessage xmlns="urn:schemas-cybersource-com:transaction-data-1.161">
<merchantID>steelbrickbilling</merchantID>
<subsequentAuth>true</subsequentAuth>
<merchantReferenceCode>steelbrickbilling</merchantReferenceCode>
<purchaseTotals>
<currency>USD</currency>
<grandTotalAmount>5</grandTotalAmount>
</purchaseTotals>
<recurringSubscriptionInfo>
<subscriptionID>**MASKED**</subscriptionID>
</recurringSubscriptionInfo>
<ccAuthService run="true">
<authType>AUTOCAPTURE</authType>
</ccAuthService>
<ccCaptureService run="true" />
</requestMessage>
</s:Body>
</s:Envelope>
Response:
HTTP/1.1 500 Internal Server Error
Server=Apache-Coyote/1.1
X-OPNET-Transaction-Trace=a2_79ec7399-e512-4ccd-b261-c1085012c3de
Strict-Transport-Security=max-age=31536000
X-Frame-Options=DENY
X-Content-Type-Options=nosniff
X-XSS-Protection=1; mode=block
v-c-response-time=1580829613
Content-Type=text/xml
Content-Length=773
Date=Tue, 04 Feb 2020 15:20:13 GMT
X-Cnection=close
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-216660870"><wsu:Created>2020-02-04T15:20:13.702Z</wsu:Created></wsu:Timestamp></wsse:Security></soap:Header>
<soap:Body>
<soap:Fault xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:c="urn:schemas-cybersource-com:transaction-data-1.0">
<faultcode>soap:Client</faultcode>
<faultstring>
XML parse error.
</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
However, the same request works when subsequentAuth tag is removed from the request. Please suggest a fix.
- Dominant language
- PHP
- Stars
- 60
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CyberSource/cybersource-sdk-php
-
Difficulty 1/5 Under an hour Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
CyberSource/cybersource-sdk-php#42 · 2 comments ·
-
RefundsOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in CyberSource/cybersource-sdk-php
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Automattic/static-site-importer#1879 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
521xueweihan/HelloGitHub#3790 ·
-
[Bug] Feed date, title and author too long to fit inside article box on smaller screens, mobileOpenBug (unconfirmed) Good first issue 1️⃣ help wanted UI :art:
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FreshRSS/FreshRSS#9360 · 2 comments ·
Maintainers usually reply within 1 day