Public Api Key

In this section you will learn how to process a Public Api Key message

Public Api Key Overview

A Public Api Key message enables a merchant to request a public api key used to during the authentication process when requesting a Single Use Token from the card holders browser.

342

How to process a Public Api Key request message

The merchant's system sends a HTTP GET Public Key request message to the ANYpay Gateway. Sections Public Key describes the elements required to build a Public Key request message.

📘

Key elements for a Public Api Key request message

Type MUST be set to [Api]

Examples of a Public Api Key request message can be seen below.

https://api-integration.pxp-solutions.net/PublicKeyService/api/v5/PublicKeys?type=Api&merchantId=BDD

Handling a Public Api Key response message

An example of a Public Api Key response message can be seen below.

{
  "state": "Success",
  "id": "d8e7496d-30be-4db8-9d29-1fcd16766bcb",
  "expiresAt": "2018-02-16T16:10:05.6319253+00:00",
  "publicApiKey": "c44c4765-d4bd-4bcb-bc6f-5ff05e1dfa7d"
}