π Base URL: https://swiftpayhub.xyz/payment/api/v1/index.php?path=
1
π Get Your API Credentials
First, you need an API Key and API Secret.
These are your identity for all API requests.
π How to Get Them:
1. Log in to your Admin Panel.
2. Click on API in the sidebar.
3. Select your merchant and click "Generate Key".
4. Copy both values immediately β the secret is shown only once!
β οΈ Keep your secret safe. Never share it or commit it to code repositories.
// Example credentials (replace with yours)API-Key: SPH_9B1FEB995666C04FBE4D2774AEAPI-Secret: a71cfd7d9fdcad46a887e757a0d377aabe28f19ac904868153351eb18e1f9ac3
2
π Authenticate Every Request
All API calls must include your credentials in the request headers.