@miden-npm/react 0.0.9 → 0.0.10
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -124,7 +124,7 @@ var getQueryParams = (url) => {
|
|
|
124
124
|
|
|
125
125
|
// src/utils/api.util.ts
|
|
126
126
|
var getBaseUrl = (mode) => {
|
|
127
|
-
return mode === "sandbox" ? "https://sandbox-api.midencards.io/payment-gateway-
|
|
127
|
+
return mode === "sandbox" ? "https://sandbox-api.midencards.io/payment-gateway-api" : "";
|
|
128
128
|
};
|
|
129
129
|
|
|
130
130
|
// src/utils/string.util.ts
|
|
@@ -443,7 +443,7 @@ async function authorizeCardPayment(environment, { merchantId, ...rest }) {
|
|
|
443
443
|
try {
|
|
444
444
|
const baseUrl = getBaseUrl(environment);
|
|
445
445
|
const res = await fetch(
|
|
446
|
-
`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment`,
|
|
446
|
+
`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment-sdk`,
|
|
447
447
|
{
|
|
448
448
|
method: "POST",
|
|
449
449
|
headers: {
|