- Render input fields to securely collect and encrypt card details.
- Detect the card type from the number the shopper entered in the payment form.
- Do server-side barcode or QR code rendering for payment methods such as Swish or Boleto Bancário.
- A single key for all your allowed origins in an environment.
- Flexibility to add and remove origins without having to generate a new client key.
- A human-readable prefix, test or live, so you can easily tell which environment a client key is linked to.
Availability and compatibility
The client key is available for the following:How it works
The client key is a public key that uniquely identifies an API credential. Each API credential has a list of allowed origins, or domains from which we expect to get your requests. We make sure data cannot be accessed by unknown parties by using Cross-Origin Resource Sharing. A client key is linked to an API credential and its environment. The client key has two parts:- A 32-character string encoding the API credential
- A human-readable environment prefix
Allowed origins
Allowed origins are domains from which we expect to get your client-side requests. The allowed origins:- Can include a wildcard, for example
https://*.example.orgincludes bothhttps://blue.example.organdhttps://red.example.org. - Can be a
httpsdomain in the test environment or ahttpif it is a secure context, such ashttp://127.0.0.1,http://localhost, orhttp://*.localhost. - Must have
httpsin the live environment.
Get your client key
- Log in to your Customer Area.
- Go to Developers > API credentials, and select the credential username for your integration, for example ws@Company.[YourCompanyAccount].
- Under Client settings > Authentication select the Client key tab.
- Select Generate client key.
- Select the copy icon **and store your client key securely in your system.
- Under Add allowed origins, enter your domains and select Add.
- Select Save changes.
Manage allowed origins
You can add or remove allowed origins for an API credential without generating a new client key.- Log in to your Customer Area .
- Go to Developers > API credentials, and select the API credential for your Web Drop-in or Web Components integration, for example ws@Company.****[YourCompanyAccount].
- Under Allowed origins, enter a domain and select Add. To remove a domain select the remove origin icon **next to it.
- Select Save changes. It takes a few seconds for new allowed origins to become available for your application.