expert Posted July 5, 2005 Share Posted July 5, 2005 Recently our bank gateway connection method has been changed to XML way. Until now we're connecting there via paycgi system. I'm not experienced preparing XML gateway (read/parse etc) things. Anybody interested in creating new gateway for me with XML. If needed I'm ready to pay some donate for the effort. :thumbsup: Here is an example that bank gave us. If I fill in the XML areas I can successfuly complete the payment. <HTML> <HEAD> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-9"> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1254"> <TITLE>Garanti Virtual POS XML Testı</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <FONT SIZE=5> XML TEST</FONT> <P> <HR ALIGN=LEFT WIDTH=100% SIZE=2> <br> <FORM ACTION="https://ccpos.garanti.com.tr/servlet/cc5ApiServer" METHOD=POST> <TEXTAREA cols="80" rows="40" name="DATA" > <?xml version="1.0" encoding="ISO-8859-1"?> <CC5Request> <Name>POS_Account_Number_Here</Name> <Password>Your_Password</Password> <ClientId>25590101</ClientId> <IPAddress>111.11.22.34</IPAddress> <Email>[email protected]</Email> <Mode>P</Mode> <OrderId>test_Order</OrderId> <GroupId>1</GroupId> <TransId>23</TransId> <UserId>Erhan</UserId> <Type>PreAuth</Type> <Number>5432xxxxxxxx8782</Number> <Expires>0507</Expires> <Cvv2Val>XXX</Cvv2Val> <Total>10.15</Total> <Currency>949</Currency> <Taksit>Instalment</Taksit> <BillTo> <Name>Test Customer</Name> <Street1>Adr1</Street1> <Street2>Adr2</Street2> <Street3>Adr3</Street3> <City>Istanbul</City> <StateProv></StateProv> <PostalCode>34000</PostalCode> <Country></Country> <Company>TEST LTD</Company> <TelVoice>2123456</TelVoice> </BillTo> <ShipTo> <Name></Name> <Street1></Street1> <Street2></Street2> <Street3></Street3> <City></City> <StateProv></StateProv> <PostalCode></PostalCode> <Country></Country> </ShipTo> <Extra></Extra> </CC5Request> </TEXTAREA> <CENTER><INPUT type=submit value="Submit" > <INPUT type=reset value="Reset"></CENTER> </FORM> </BODY> </HTML> When I submit, if it is declined (ie cvv error) returns following XML code from bank <?xml version="1.0" encoding="ISO-8859-9" ?> - <CC5Response> ?<OrderId>test_Order</OrderId> ?<GroupId>1</GroupId> ?<Response>Declined</Response> ?<AuthCode /> ?<HostRefNum /> ?<ProcReturnCode>05</ProcReturnCode> ?<TransId>42c6a0b8-86c3-3000-0000-080020c7a31c</TransId> ?<ErrMsg>Decline</ErrMsg> - <Extra> ?<SETTLEID>117</SETTLEID> ?</Extra> ?</CC5Response> If needed I may provide further information. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.