Supporting the HMAC hash function in the Transformers

Table of contents

  • Introduction
  • How to use the HMAC hash function to build payment integration

Introduction

When working with some payment providers that require the HMAC authentication protocol for their API, you might face that building integration in Alumio could cause additional steps to set up configurations.

That’s why we want to tell you about how to use the HMAC hash function in the Transformers in Alumio.

How to use the HMAC hash function to build payment integration

Use these steps to build payment integration using the HMAC function:

  1. Create an entity transformer that uses the “String: hash” mapper.
  2. Once you select the “String: hash” mapper, you need the HASH algorithm from the dropdown.
  3. Then enable the “Use HMAC key” option and input the proper HMAC key.
  4. If you want to use the “Return binary data instead of lowercase hexits” option as well, the output won’t be valid JSON. To solve this, create the “String: Base64 encode” mapper below.