mpAuthorize

The mpAuthorize service is used to perform a normal Authorization using information returned by the mpValidate service

Input parameters

Parameter name Description
shopName Merchant shopname, provided by DIBS
userName API-Username, generated by merchant in DIBS Manager
password API-User password, generated by merchant in DIBS Manager
verifyId DIBS reference number
method cc.mp.evry for MasterPass Production.
cc.mp.evry.test for MasterPass Sandbox (test).
extra Please refer to the description of the 'extra' parameter on the Web Service page.
MAC MAC should be included in the 'extra' parameter described above.
The MAC is calculated with the following formula: verifyID&SecretKey&

 

Output parameters

The output parameters of this service are the same as the ones from a regular authorize call. Please refer to the WebService page for more information.

Example

Below is an example of a request:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:v2="https://securedt.dibspayment.com/DTServerModuleService/v2">
   <soap:Header/>
   <soap:Body>
      <v2:mpAuthorize>
         <v2:shopName>ShopName</v2:shopName>
         <v2:userName>API_User</v2:userName>
         <v2:password>Password</v2:password>
         <v2:verifyID>123456</v2:verifyID>
         <v2:method>cc.mp.evry</v2:method>
         <v2:extra>@amp;MAC=3420sdf509342f85032850342</v2:extra>
      </v2:mpAuthorize>
   </soap:Body>
</soap:Envelope>

And the following is an example of a response:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
   <soapenv:Body>
      <ns:mpAuthorizeResponse xmlns:ns="https://securedt.dibspayment.com/DTServerModuleService/v2">
         <ns:return>
            <ns:aCSUrl xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerAddress xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerAuthCode/>
            <ns:acquirerAuthResponseCode/>
            <ns:acquirerCity xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerConsumerLimit xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerErrorDescription xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerFirstName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerLastName xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerMerchantLimit xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:acquirerZipCode xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:amount>100</ns:amount>
            <ns:errorMsg/>
            <ns:infoCode xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:infoDescription xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:pAReqMsg xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
            <ns:resultCode>100</ns:resultCode>
            <ns:resultText>verification_OK</ns:resultText>
            <ns:verifyID>123456</ns:verifyID>
         </ns:return>
      </ns:mpAuthorizeResponse>
   </soapenv:Body>
</soapenv:Envelope>
Do you have question or need help?
Follow us
DIBS Payment Services
Stockholm +46 (0)8-527 525 00
Göteborg +46 031-600 800
København +45 7020 3077
Oslo +47 21 55 44 00