Create and manage payment projects with access keys and configurations
Projects are containers for your payment integrations. Each project can have multiple payment gateway configurations and access keys for secure API access.
Create projects with specific payment gateway support
Generate secure API keys for project access
Configure Stripe and Telebirr payment gateways
Create a new payment project with supported payment gateways
/api/v1/createprojectRequires Authentication{
"paymentGetWay": ["STRIPE", "TELEBIRR"],
"title": "My E-commerce Store",
"discription": "Payment integration for my online store"
}curl -X POST "https://api.payment-gateway.com/api/v1/createproject" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"paymentGetWay": ["STRIPE", "TELEBIRR"],
"title": "My E-commerce Store",
"discription": "Payment integration for my online store"
}'{
"success": true,
"message": "Project created successfully",
"data": {
"id": 1,
"title": "My E-commerce Store",
"description": "Payment integration for my online store",
"paymentGateways": ["STRIPE", "TELEBIRR"],
"createdAt": "2024-01-15T10:30:00Z",
"userId": 1
}
}Currently supported: STRIPE and TELEBIRR
Generate and manage API access keys for your projects
/api/v1/accessKey/createRequires Authentication{
"projectId": 1
}curl -X POST "https://api.payment-gateway.com/api/v1/accessKey/create" \
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"projectId": 1
}'{
"success": true,
"message": "Access key created successfully",
"data": {
"id": 1,
"key": "ak_live_1234567890abcdef",
"projectId": 1,
"createdAt": "2024-01-15T10:30:00Z",
"expiresAt": "2025-01-15T10:30:00Z"
}
}/api/v1/accessKey/get/{id}Requires Authenticationcurl -X GET "https://api.payment-gateway.com/api/v1/accessKey/get/1" \ -H "Authorization: Bearer YOUR_JWT_TOKEN"
/api/v1/accessKey/delete/{id}Requires Authenticationcurl -X DELETE "https://api.payment-gateway.com/api/v1/accessKey/delete/1" \ -H "Authorization: Bearer YOUR_JWT_TOKEN"
Important considerations for project and access key management
Store access keys securely and never expose them in client-side code
Regularly rotate access keys and implement key expiration policies
Use different projects and keys for development, staging, and production