MENA payment gateway for accepting credit cards, mada, KNET, Apple Pay, Google Pay, BNPL and alternative payment methods in Egypt and the region. RESTful API with support for tokenization, recurring payments, and webhooks.
Tap is the leading payment gateway for the Middle East and North Africa (MENA) region, with extensive support for local and international payment methods in Egypt and across the region. It provides developers with a robust RESTful API for accepting payments, managing customers, and handling recurring transactions.
Use Tap Payments when you need to:
Tap Payments uses HTTP Bearer Token Authentication. All requests must include your API secret key in the Authorization header.
Authorization: Bearer YOUR_SECRET_API_KEY
const axios = require('axios');
const tapApiKey = 'sk_test_abc123...'; // Your secret API key
const headers = {
'Authorization': `Bearer ${tapApiKey}`,
'Content-Type': 'application/json'
};
// Example API call
const response = await axios.post(
'https://api.tap.company/v2/charges',
{
amount: 5000,
currency: 'EGP',
source: {
id: 'src_card_123'
}
},
{ headers }
);
curl -X POST https://api.tap.company/v2/charges \
-H "Authorization: Bearer sk_test_abc123..." \
-H "Content-Type: application/json" \
-d '{
"amount": 5000,
"currency": "EGP",
"source": {
"id": "src_card_123"
}
}'
import requests
headers = {
'Authorization': 'Bearer sk_test_abc123...',
'Content-Type': 'application/json'
}
payload = {
'amount': 5000,
'currency': 'EGP',
'source': {
'id': 'src_card_123'
}
}
response = requests.post(
'https://api.tap.company/v2/charges',
json=payload,
headers=headers
)