Skip to main content

Authentication

Authentication is performed using Bearer authentication.

fetch('https://sandbox-api.ninjapay.tech/api/v1/payment', {
method: 'post',
headers: {
Authorization: 'Bearer MERCHANT_SECRET_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify(...),
});
warning

Only HTTPS is allowed.