@tap-payments/auth-jsconnect 2.12.12 → 2.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/build/constants/api.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -211,12 +211,13 @@ The library decides which backend (middleware) URL to call from the `publicKey`
|
|
|
211
211
|
- A `pk_test_*` key always uses the **development** URL. `region` is ignored.
|
|
212
212
|
- A `pk_live_*` key uses the production URL that matches `region`. If `region` is empty or not in the table, it falls back to the **global production** URL.
|
|
213
213
|
|
|
214
|
-
| `region` value | Meaning | Base URL
|
|
215
|
-
| -------------- | ----------------------- |
|
|
216
|
-
| _(empty)_ | Global production | `https://connect-mw.tap.company/middleware`
|
|
217
|
-
| `sa` | Saudi production | `https://connect-mw.tap.com.sa/middleware`
|
|
218
|
-
| `sa-dr` | Saudi disaster recovery | `https://connect-mw-tmp.tap.com.sa/middleware`
|
|
219
|
-
| `sahu` | Saudi Huawei cloud | `https://connect-mw-temp.tap.com.sa/middleware`
|
|
214
|
+
| `region` value | Meaning | Base URL |
|
|
215
|
+
| -------------- | ----------------------- | -------------------------------------------------- |
|
|
216
|
+
| _(empty)_ | Global production | `https://connect-mw.tap.company/middleware` |
|
|
217
|
+
| `sa` | Saudi production | `https://connect-mw.tap.com.sa/middleware` |
|
|
218
|
+
| `sa-dr` | Saudi disaster recovery | `https://connect-mw-tmp.tap.com.sa/middleware` |
|
|
219
|
+
| `sahu` | Saudi Huawei cloud | `https://connect-mw-temp.tap.com.sa/middleware` |
|
|
220
|
+
| `qagc` | Qatar GCP | `https://connect-mw.tappayments.com.qa/middleware` |
|
|
220
221
|
|
|
221
222
|
Notes:
|
|
222
223
|
|
package/build/constants/api.js
CHANGED
|
@@ -3,6 +3,7 @@ var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
|
|
|
3
3
|
var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
|
|
4
4
|
var PRODUCTION_BASE_URL_SA_DR = 'https://connect-mw-tmp.tap.com.sa/middleware';
|
|
5
5
|
var PRODUCTION_BASE_URL_SA_HU = 'https://connect-mw-temp.tap.com.sa/middleware';
|
|
6
|
+
var PRODUCTION_BASE_URL_QA_GC = 'https://connect-mw.tappayments.com.qa/middleware';
|
|
6
7
|
var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
|
|
7
8
|
var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
|
|
8
9
|
var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
|
|
@@ -122,5 +123,6 @@ export var ENDPOINT_PATHS = {
|
|
|
122
123
|
export var REGION_BASE_URLS = {
|
|
123
124
|
sa: PRODUCTION_BASE_URL_SA,
|
|
124
125
|
'sa-dr': PRODUCTION_BASE_URL_SA_DR,
|
|
125
|
-
sahu: PRODUCTION_BASE_URL_SA_HU
|
|
126
|
+
sahu: PRODUCTION_BASE_URL_SA_HU,
|
|
127
|
+
qagc: PRODUCTION_BASE_URL_QA_GC
|
|
126
128
|
};
|