diff --git a/message.xml b/message.xml index 42906de..d73530a 100644 --- a/message.xml +++ b/message.xml @@ -1 +1,27 @@ -<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:apih2h"><SOAP-ENV:Body><tns:billpayment xmlns:tns="urn:apih2h"><inputCheck xsi:type="tns:inputCheck"><userName xsi:type="xsd:string">{userName}</userName><signature xsi:type="xsd:string">{signature}</signature><productCode xsi:type="xsd:string">{productCode}</productCode><terminal xsi:type="xsd:string">{terminal}</terminal><transactionType xsi:type="xsd:string">{transactionType}</transactionType><billNumber xsi:type="xsd:string">{billNumber}</billNumber><amount xsi:type="xsd:string">{amount}</amount><bit61 xsi:type="xsd:string">{bit61}</bit61><reff xsi:type="xsd:string">{reff}</reff><timeStamp xsi:type="xsd:string">{timeStamp}</timeStamp></inputCheck></tns:billpayment></SOAP-ENV:Body></SOAP-ENV:Envelope> +<?xml version="1.0" encoding="utf-8"?> + +<SOAP-ENV:Envelope + SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" + xmlns:tns="urn:apih2h"> + + <SOAP-ENV:Body> + <tns:billpayment xmlns:tns="urn:apih2h"> + <inputCheck xsi:type="tns:inputCheck"> + <userName xsi:type="xsd:string">{userName}</userName> + <signature xsi:type="xsd:string">{signature}</signature> + <productCode xsi:type="xsd:string">{productCode}</productCode> + <terminal xsi:type="xsd:string">{terminal}</terminal> + <transactionType xsi:type="xsd:string">{transactionType}</transactionType> + <billNumber xsi:type="xsd:string">{billNumber}</billNumber> + <amount xsi:type="xsd:string">{amount}</amount> + <bit61 xsi:type="xsd:string">{bit61}</bit61> + <reff xsi:type="xsd:string">{reff}</reff> + <timeStamp xsi:type="xsd:string">{timeStamp}</timeStamp> + </inputCheck> + </tns:billpayment> + </SOAP-ENV:Body> +</SOAP-ENV:Envelope> diff --git a/partner-kospinjasa.js b/partner-kospinjasa.js index 11b9715..4020126 100644 --- a/partner-kospinjasa.js +++ b/partner-kospinjasa.js @@ -59,7 +59,7 @@ function topupRequest(task, retry) { var signature = createSignature(params, config.h2h_out.password); params.signature = signature; - topupRequestSoap(task, params, retry); + topupRequestSoapDIY(task, params, retry); } function topupRequestSoap(task, params, retry) { @@ -114,7 +114,7 @@ function topupRequestSoapDIY(task, params, retry) { headers: { 'Content-Type': 'application/soap+xml', 'Content-Length': Buffer.byteLength(message), - 'SOAPAction': 'billpayment' + 'SOAPAction': 'apih2h#billpayment' } };