How do I add an enhanced API key security on Paytia?
How to Add Enhanced API Key Security on Paytia Adding enhanced security to your API integration ensures a more secure and streamlined experience when connecting to the Paytia platform. Follow these instructions to generate an API key, activate ...
How to Add Enhanced API Key Security on Paytia
Adding enhanced security to your API integration ensures a more secure and streamlined experience when connecting to the Paytia platform. Follow these instructions to generate an API key, activate tokens, and configure security settings.
Step 1: Generate an API Key
- Navigate to
Account Security > API Secret Keyin the Paytia administration portal. - Click the Generate API Key button. An API key will be created and displayed in the API key list.
Step 2: Configure API Key Settings
Restrict Access by IP Address (Optional):
- Enter the IP address of your server or application in the designated field to limit API key usage to specified IPs.
- Enter the IP address of your server or application in the designated field to limit API key usage to specified IPs.
Select Webhook Output Format:
- Single JSON Data: Outputs data as a single string.
- Multiple JSON Data: Outputs each field on a separate line (specific to Worldpay Corporate Gateway).
-
Click Save to activate your settings.
Step 3: Generate Tokens
- Locate your API key in the list and click Generate Tokens under the "Action" column.
- You will receive the following:
- Client ID: A unique public identifier for your app.
- Client Secret: A secure, private value for authentication.
- Access Token: A short-lived token for API requests (expires in one hour).
- Refresh Token: Used to renew expired access tokens automatically.
Important Notes:
- Client ID: Must be unique across all Paytia client API connections.
- Client Secret: Should be highly random and secure.
- Access Token: Authenticate API requests. Expires in one hour.
- Refresh Token: Renew access tokens when expired.
Step 4: Enable Enhanced Security
- Toggle the Enhance Security switch to activate this feature. The switch should be set to green.
Step 5: Authorize API Access
Use the /api/authorize endpoint to pre-authorize your API requests.
Example https://accounts.paytia.com/api/authorize
Example POST Request:
curl --location 'https://accounts.paytia.com/api/authorize' \
--header 'X-API-KEY: your_api_key_here' \
--header 'ACCESS-TOKEN: your_access_token_here' \
--data-raw '{
"client_id": "your_client_id_here",
"client_secret": "your_client_secret_here"
}'
- Replace
your_api_key_here,your_access_token_here,your_client_id_here, andyour_client_secret_herewith the appropriate values.curl --location 'https://accounts.paytia.com/api/payment_service' \--header 'X-API-KEY: 1fa7c6470f54e14f948d0d830a775c3efb328bef5f6a464869fca627ca979818' \--header 'ACCESS-TOKEN: cWMJZimvoWr9QAo5ZZZZBPX5q83rCiTx4xCy1=' \
Step 6: Refresh Tokens
When the access token expires, use the refresh token to generate a new access token. Paytia will return a new refresh token with each renewal to maintain secure credentials.
By following these steps, you ensure that your integration with Paytia is secured with advanced token-based authentication, reducing risks and enhancing operational reliability.
More in API
API details
What Can I See in the API Details View? The API Details View provides an in-depth look at the internal API exchanges between Paytia's telephony and API services. This feature is designed for troubleshooting and offers transparency into the data ...
CDR Details Webhooks: Push Data for Telephony Events
CDR Details Webhooks: Push Data for Telephony Events Paytia supports webhook push messages, enabling you to transmit real-time call information to a predefined URL. This functionality allows seamless programmatic decision-making within third-party ...
How do I use Paytia Webhooks?
Configuring Webhooks in the Paytia Merchant Administrative Portal Webhooks enable the Paytia platform to send notifications and data to third-party service providers. These notifications are essential for integrating the Paytia Agent Capture Assist ...
How to Add an API Key on Paytia
How to Add an API Key on Paytia Adding an API key to your Paytia account is essential for integrating external applications or services with your merchant account on the Paytia platform. Follow the steps below to generate and manage an API key. Steps ...
Integrating Paytia: A Comprehensive Guide to the Connection Points you must consider
Paytia provides secure payment solutions that integrate seamlessly with host systems, telephony, and payment gateways. This guide outlines the primary connection points and how businesses can utilise Paytia for a streamlined payment processing ...
Paytia API - Braintree payment gateway - using the gateway_customer_control field to control the passed value in the gateway_customer_id field
Error conditions When using the Paytia API and connecting to the Braintree payment gateway, Paytia has added the ability for a developer to set their own Customer ID values as the Braintree Customer ID. API error message for control use cases: Case ...
Still need help?
Our support team is here to help. Submit a ticket and we'll get back to you within one business day.