Set Card PIN
This guides provides a detailed walkthrough on how to incorporate Basis Theory SDKs into your frontend for secure card PIN collection, and send them in accordance with regulations to the Issuer API through the Basis Theory Proxy.
Getting Started
To get started, you will need to create a Basis Theory Account and a TEST Tenant.
Provisioning Resources
In this section, we will explore the bare minimum resources necessary to enable your users to set PIN on their cards.
Management Application
To create all subsequent resources, you will need a Management Application.
Click here to create a Management Application or login to your Basis Theory account and create a new application with the following settings:
- Name - Resource Creator
- Application Type - Management
- Permissions:
application:create
,proxy:create
Public Application
You will need a Public Application to initialize Basis Theory Elements. This application represents your Frontend.
Using the Management Application key to authorize the request, call the Basis Theory API to create a new Public Application:
curl "https://api.basistheory.com/applications" \
-X "POST" \
-H "BT-API-KEY: <MANAGEMENT_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Frontend",
"type": "public"
}'
Observe that at this stage, no permissions have been allocated yet. They will be granted later programmatically using sessions.
<MANAGEMENT_API_KEY>
with the Management API Key you created previously.key
from the created Public Application as it will be used later in this guide.Private Application
To authorize the Proxy call to be performed by your Frontend, you will need a Private Application. This new application represents your Backend.
Using the Management Application key to authorize the request, call Basis Theory API to create a new Private Application:
curl "https://api.basistheory.com/applications" \
-X "POST" \
-H "BT-API-KEY: <MANAGEMENT_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"name": "Backend",
"type": "private",
"permissions": [ "token:use" ]
}'
<MANAGEMENT_API_KEY>
with the Management API Key you created previously.key
from the created Private Application as it will be used later in this guide.