merchant_vat

merchant_vat is used to identify which merchant that should be given consent to if a user has multiple merchants assigned. You should include it, as it is a practical way to manage merchants going through the OIDC flow, which is also a more scalable solution, as the your merchant customer base grows. 

If you include the VAT, it is even easier for you to identify the merchant, as the VAT numer is then directly mapped to the access_token. Therefore, tracking is made easier. 

 

YES:

  • You should include the VAT if you are an integrator managing the MobilePay API solution on behalf of others.
  • If you have more than one VAT number that you are managing the MobilePay API solution for.

 NO:

  • You do not need to include the VAT, if you are a merchant integrating the solution only for yourself
  • NOTE: you have nothing to loose if you include it, so you might as well do so. 

  

You should send it as an extra URL parameter (authorize?merchant_vat=DK12345678).

You can find the information by extracting it from the access_token 

The extension methods support three different scenarios, to get the merchant_id.

  1. You have a JWE or JWS in 'Compact Serialization Format'.
    token.GetMerchantIdOrDefault()
    
  2. You have a System.Security.Claims. ClaimsPrinciple 

    principle.GetMerchantIdOrDefault();
    
  3. You have a System.Security.Claims. ClaimsIdentity 

    identity.GetMerchantIdOrDefault();