Query a code that has been created.
Additional Parameters
Request Parameter |
Description |
MasterPassAction |
Mandatory, the action to perform. |
MasterPassMerchantID |
Mandatory, the merchant id as captured on MasterPass. |
MasterPassCode |
Mandatory, the result code that must be queried |
Amount |
Mandatory, to use a variable amount use 0 as the amount. |
Currency |
Mandatory, the currency is tied to the merchant setup. |
MerchantReference |
Mandatory, used to link code to transaction. |
MasterPassShortDescription |
Mandatory, This will be displayed to the consumer at the time a code is scanned. Length is 5 to 45 characters |
MasterPassCodeExpiryDate |
Optional. If this is empty the code will by default expire in 30 minutes from issue. If this value is 0 the code will never expire. This time is specified in epoch. |
Response Parameter |
Description |
MasterPassAction | The action that was performed |
Example:
Request:
<?xml version="1.0" encoding="UTF-8"?><V_XML CertificateID="172bc42c-7ffb-44d0-a1e4-441444e1274c" Direction="Request" ProductType="Enterprise" ProductVersion="iVeriClient.JAVA v4.0.2" Version="2.0">
<Enquiry ApplicationID="8b2101c2-88a2-11d4-bccf-0000e884f861" Command="MasterPassQuickResponseCode" Mode="Test">
<MasterPassMerchantID>280</MasterPassMerchantID>
<MasterPassAction>UpdateCode</MasterPassAction>
<Currency>ZAR</Currency>
<MerchantReference>1507027434321</MerchantReference>
<MasterPassCode>9599003889</MasterPassCode>
<Amount>1125</Amount>
<MasterPassShortDescription>Basket of Sweets</MasterPassShortDescription>
</Enquiry>
</V_XML>
Response:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<V_XML Direction="Response" Version="2.0">
<Enquiry ApplicationID="{8B2101C2-88A2-11D4-BCCF-0000E884F861}" Command="MasterPassQuickResponseCode" Mode="Test" RequestID="{1C2756AC-52B3-4DE8-8142-66C4783258FA}">
<Result AppServer="GOLIATH" DBServer="titan" Gateway="DEV2012" Status="0"/>
<MasterPassAction>UpdateCode</MasterPassAction>
</Enquiry>
</V_XML>