Purchase
This functionality will perform purchase PLN prepaid confirmation
purchase
WsbgRequest object:
bankId
M
text
bank id at BG system
bankChannel
M
text
payment channel
bankRefNo
M
text
reference no from bank/merchant
custAccNo
M
text
cust account no at bank/merchant
custId
M
text
bill number to be paid
dateTrx
M
date
date transaction (request)
payeeCode
M
text
payee code
productCode
M
text
product code
priceCategory
M
text
prices category
custRefNo
M
text
reference no from BG
WsbgResponse object:
adminFee
M
numeric
admin fee
bankChannel
M
text
payment channel copy from request
bankId
M
text
bank id at BG system (copy from request)
bankRefNo
M
text
reference no from bank/merchant (copy from request)
billAmt
M
numeric
bill amount
billPeriod
O
text
bill period
billRefNo
O
text
reference no from biller
code
M
numeric
status code : 0 = success 1 = failed 2 = pending
custAccNo
M
text
cust account no at bank / merchant (copy from request)
custId
M
text
bill number to be paid (copy from request)
custName
M
text
customer's name
custRefNo
M
text
reference no from BG
dateTrx
M
date
date transaction (response)
description
O
text
product description
kwh
M
text
unit of energy
message
O
text
error message from BG
meterNumber
M
text
meter number
meterStandCubication
O
text
meter stand and cubication
nominalVoucher
O
text
nominal voucher
paidAmt
M
numeric
paid amount (to be debeted = billAmt + adminFee)
payeeCode
M
text
payee code
priceCategorypower
O
text
prices category and power
priceCategory
M
text
prices category and power
productCode
M
text
product code
resultCode
O
text
2 digit result code
secretCode
O
text
secret code
serialNumber
O
text
serial number
standMeter
O
text
stand meter
tenor
O
text
tenor
token
M
text
token
Request
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:exp="http://exposed.webservice.pacarana.infinetworks.com">
<soapenv:Header>
<authorization xsi:type="xsd:string">yNJLktGPvQ36ADRnPvpZthShWZR30IsS9AXeuHLb6+U=</authorization>
<date xsi:type="xsd:dateTime">Thu, 10 OCT 2019 12:53:03 ICT</date>
</soapenv:Header>
<soapenv:Body>
<exp:purchase soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<req xsi:type="pac:WsbgRequest" xmlns:pac="http://pacarana.infinetworks.com">
<bankId xsi:type="xsd:string">10000001</bankId>
<bankChannel xsi:type="xsd:string">6017</bankChannel>
<bankRefNo xsi:type="xsd:string">201910100001</bankRefNo>
<custAccNo xsi:type="xsd:string">1111111111</custAccNo>
<custId xsi:type="xsd:string">01428800700</custId>
<dateTrx xsi:type="xsd:dateTime">2019-10-10T16:50:00Z</dateTrx>
<payeeCode xsi:type="xsd:string">10011</payeeCode>
<productCode xsi:type="xsd:string">1051</productCode>
<pricesCategory xsi:type="xsd:string">R1/1300</pricesCategory>
<custRefNo xsi:type="xsd:string">000000199383</custRefNo>
</req>
</exp:purchase>
</soapenv:Body>
</soapenv:Envelope>
Response
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:purchaseResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="http://exposed.webservice.pacarana.infinetworks.com">
<purchaseReturn href="#id0" />
</ns1:purchaseResponse>
<multiRef id="id0" soapenc:root="0" soapenv:encodingS tyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns2:WsbgResponse" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://pacarana.infinetworks.com">
<adminFee xsi:type="xsd:decimal">1000.00</adminFee>
<bankChannel xsi:type="xsd:string">6017</bankChannel>
<bankId xsi:type="xsd:string">10000001</bankId>
<bankRefNo xsi:type="xsd:string">201910100001</bankRefNo>
<billAmt xsi:type="xsd:decimal">50000.00</billAmt>
<billPeriod xsi:type="xsd:string" xsi:nil="true" />
<billRefNo xsi:type="xsd:string">83E8D2A2C4245B5D75D18BA019FFA764</billRefNo>
<code xsi:type="xsd:byte">0</code>
<custAccNo xsi:type="xsd:string">1111111111</custAccNo>
<custId xsi:type="xsd:string">01428800700</custId>
<custName xsi:type="xsd:string">SEPULSAWATI</custName>
<custRefNo xsi:type="xsd:string">000000199383</custRefNo>
<dateTrx xsi:type="xsd:dateTime">2019-10-10T16:50:00.000Z</dateTrx>
<description xsi:type="xsd:string" xsi:nil="true" />
<kwh xsi:type="xsd:string">40.52</kwh>
<message xsi:type="xsd:string" xsi:nil="true" />
<meterNumber xsi:type="xsd:string">01428800700</meterNumber>
<meterStandCubication xsi:type="xsd:string" xsi:nil="true" />
<nominalVoucher xsi:type="xsd:string" xsi:nil="true" />
<paidAmt xsi:type="xsd:decimal">51000.00</paidAmt>
<payeeCode xsi:type="xsd:string">10011</payeeCode>
<priceCategoryPower xsi:type="xsd:string" xsi:nil="true" />
<pricesCategory xsi:type="xsd:string">R1/1300</pricesCategory>
<productCode xsi:type="xsd:string">1051</productCode>
<resultCode xsi:type="xsd:string" xsi:nil="true" />
<secretCode xsi:type="xsd:string" xsi:nil="true" />
<serialNumber xsi:type="xsd:string" xsi:nil="true" />
<standMeter xsi:type="xsd:string" xsi:nil="true" />
<tenor xsi:type="xsd:string" xsi:nil="true" />
<token xsi:type="xsd:string">98797784514987654323</token>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Last updated