Welcome to Mediachase Community Sign in | Join | Help    
in Search   

Verisign payment gateway keeps responding "Invalid XML stream.."

Last post Mon, Sep 26 2005, 11:25 AM by Sasha. 1 replies.
Sort Posts: Previous Next
  •  Sun, Sep 25 2005, 7:03 PM 1825

    Verisign payment gateway keeps responding "Invalid XML stream.."

    I'm having trouble with the Verisign payment gateway. I'm using ECF v2.4.

    The problem is in VerisignPayflowProManager.cs, Line 239/240.

    pfPro's Context is created with the following variables:

    _serverURL = "payflow-test.verisign.com.au"
    _serverPort = 443

    The following data is submitted to the payment gateway (NOTE: I think the \"s in the XML below come from visual studio's command window)

    RequestXML =
    <?xml version=\"1.0\" encoding=\"UTF-8\"?><XMLPayRequest Timeout=\"30\" xmlns=\"http://www.verisign.com/XMLPay\"><RequestData><Vendor>POKtest</Vendor><Partner>VSA</Partner><Transactions><Transaction><Sale><PayData><Invoice><BillTo><Address><Street>22 x St</Street><City>Wollongong</City><State>NSW</State><Zip>2000</Zip><Country>US</Country></Address></BillTo><TotalAmt>89.99</TotalAmt></Invoice><Tender><Card><CardType>Visa</CardType><CardNum>4005550000000001</CardNum><ExpDate>200501</ExpDate><NameOnCard>asdf</NameOnCard></Card></Tender></PayData></Sale></Transaction></Transactions></RequestData><RequestAuth><UserPass><User>POKtest</User><Password>poktest</Password></UserPass></RequestAuth></XMLPayRequest>

    RequestXML.Length = 710

    I have used XMLSpy to validate this data against the DTD that comes in verisign's kit and it checks out fine.

    The payment gateway continually responds with the following:

    <XMLPayResponse><ResponseData><Vendor></Vendor><Partner></Partner><TransactionResults><TransactionResult><Result>29</Result><AVSResult><StreetMatch>Service Not Requested</StreetMatch><ZipMatch>Service Not Requested</ZipMatch></AVSResult><CVResult>Service Not Requested</CVResult><Message>Invalid XML stream: \nInvalid XML document: prodInfo\nError detected at location: (line 1, position 711): \"Expected comment or processing instruction\"\nCorrect the document and resubmit.</Message><PNRef>V00000000000</PNRef><OrigResult>0</OrigResult></TransactionResult></TransactionResults></ResponseData></XMLPayResponse>

    Regards,
    Chris

  •  Mon, Sep 26 2005, 11:25 AM 1833 in reply to 1825

    Re: Verisign payment gateway keeps responding "Invalid XML stream.."

    The request looks right. Is there some different xml the australian verisign requires?

    I would try using the nsoftware component and see if it works. It can also connect to verisign.

View as RSS news feed in XML
Site Terms | Privacy Policy | About Us | Contact Us
Running on Mediachase eCommerce Framework 4.0.
  Copyright © Mediachase, LTD. 1997-2006. All Rights Reserved

E-commerce, HelpDesk, Service Desk & Project Management Software, alternatives to Microsoft Project Server & Sharepoint Collaboration Server
project management software | microsoft project server | sharepoint collaboration server | issues management, helpdesk & service desk
Powered by Community Server, by Telligent Systems