B2C Payment API
B2C Payment API
Instance
Request messages
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:req="http://cps.huawei.com/cpsinterface/request">
<soapenv:Header/>
<soapenv:Body>
<req:RequestMsg><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<Request>
<KeyOwner>1</KeyOwner>
<Identity>
<Caller>
<CallerType>2</CallerType>
<ThirdPartyID>POS_Broker</ThirdPartyID>
<Password>B1YNY8GylVo=</Password>
<ResultURL>http://10.71.109.150:8888/mockResultBinding</ResultURL>
</Caller>
<Initiator>
<IdentifierType>11</IdentifierType>
<Identifier>aaa</Identifier>
<SecurityCredential>iUoiP9iGVwE=</SecurityCredential>
<ShortCode>1008</ShortCode>
</Initiator>
<ReceiverParty>
<IdentifierType>1</IdentifierType>
<Identifier>8613500000000</Identifier>
</ReceiverParty>
</Identity>
<Transaction>
<CommandID>InitTrans_2304</CommandID>
<Timestamp>20130402152345</Timestamp>
<Parameters>
<Parameter>
<Key>Amount</Key>
<Value>10.00</Value>
</Parameter>
<Parameter>
<Key>Currency</Key>
<Value>RON</Value>
</Parameter>
<Parameter>
<Key>ReasonType</Key>
<Value>Pay for Individual B2C_VDF_Demo</Value>
</Parameter>
<Parameter>
<Key>Remark</Key>
<Value>For buy good refund, the original transaction number can be
filled in remark.</Value>
</Parameter>
</Parameters>
<ReferenceData>
<ReferenceItem>
<Key>POSDeviceID</Key>
<Value>POS234789</Value>
</ReferenceItem>
</ReferenceData>
</Transaction>
</Request>]]></req:RequestMsg>
</soapenv:Body>
</soapenv:Envelope>
Response messages
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<req:ResponseMsg><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<Response>
<ResponseCode>0</ResponseCode>
<ResponseDesc>Process service request successfully.</ResponseDesc>
<OriginatorConversationID>S_X2013012921001</OriginatorConversationID>
<ConversationID>AG_20130129T102103</ConversationID>
<ServiceStatus>0</ServiceStatus>
</Response>]]></req:ResponseMsg>
</soapenv:Body>
</soapenv:Envelope>
Result messages
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<req:ResultMsg xmlns:req="http://cps.huawei.com/cpsinterface/result"><!
[CDATA[<?xml version="1.0" encoding="UTF-8"?>
<Result>
<ResultType>0</ResultType>
<ResultCode>0</ResultCode>
<ResultDesc>Process service request successfully.</ResultDesc>
<OriginatorConversationID>S_X2013012921001</OriginatorConversationID>
<ConversationID>AG_20130129T102103</ConversationID>
<TranactionID>XD2013012923789234</TranactionID>
<ResultParameters></ResultParameters>
</Result>]]></req:ResultMsg>
</soapenv:Body>
</soapenv:Envelope>