@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.js
CHANGED
|
@@ -82,7 +82,7 @@ var getQueryParams = (url) => {
|
|
|
82
82
|
|
|
83
83
|
// src/utils/api.util.ts
|
|
84
84
|
var getBaseUrl = (mode) => {
|
|
85
|
-
return mode === "sandbox" ? "https://sandbox-api.midencards.io/payment-gateway-
|
|
85
|
+
return mode === "sandbox" ? "https://sandbox-api.midencards.io/payment-gateway-api" : "";
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// src/utils/string.util.ts
|
|
@@ -401,7 +401,7 @@ async function authorizeCardPayment(environment, { merchantId, ...rest }) {
|
|
|
401
401
|
try {
|
|
402
402
|
const baseUrl = getBaseUrl(environment);
|
|
403
403
|
const res = await fetch(
|
|
404
|
-
`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment`,
|
|
404
|
+
`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment-sdk`,
|
|
405
405
|
{
|
|
406
406
|
method: "POST",
|
|
407
407
|
headers: {
|