tradly 1.1.37 → 1.1.38
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/Constants/PathConstant.js +1 -2
- package/Roots/App.js +44 -3
- package/package.json +1 -1
|
@@ -120,8 +120,7 @@ export const SUBSCRIPTION_CONFIRM = "/v1/subscriptions/subscribe/confirm";
|
|
|
120
120
|
export const SUBSCRIPTION_MANAGE = "/v1/subscriptions/manage";
|
|
121
121
|
export const SUBSCRIPTION_EMAIL_TRIGGER = "/v1/subscriptions/email_trigger";
|
|
122
122
|
|
|
123
|
-
export const MANGO_PAY = "/
|
|
124
|
-
export const MANGO_PAY_V1 = "/v1/payments/mangopay";
|
|
123
|
+
export const MANGO_PAY = "/v1/payments/mangopay";
|
|
125
124
|
|
|
126
125
|
export const OPP_MERCHANT = "/v1/payments/opp/merchant";
|
|
127
126
|
|
package/Roots/App.js
CHANGED
|
@@ -77,7 +77,6 @@ import {
|
|
|
77
77
|
SSO_ENABLED,
|
|
78
78
|
TRANSLATIONS,
|
|
79
79
|
WALLET,
|
|
80
|
-
MANGO_PAY_V1,
|
|
81
80
|
} from "./../Constants/PathConstant.js";
|
|
82
81
|
import serialization from "../Helper/Serialization.js";
|
|
83
82
|
import { ImageConfig } from "../Helper/APIParam.js";
|
|
@@ -1904,7 +1903,7 @@ class App {
|
|
|
1904
1903
|
async savePerSonalDetails(param = { authKey, data }) {
|
|
1905
1904
|
try {
|
|
1906
1905
|
const [error, responseJson] = await network.networkCall({
|
|
1907
|
-
path:
|
|
1906
|
+
path: MANGO_PAY + "/personal_details",
|
|
1908
1907
|
method: Method.POST,
|
|
1909
1908
|
authKey: param.authKey,
|
|
1910
1909
|
currency: param.currency,
|
|
@@ -1925,7 +1924,49 @@ class App {
|
|
|
1925
1924
|
async cardRegistration(param = { authKey, data }) {
|
|
1926
1925
|
try {
|
|
1927
1926
|
const [error, responseJson] = await network.networkCall({
|
|
1928
|
-
path:
|
|
1927
|
+
path: MANGO_PAY + "/card_registration",
|
|
1928
|
+
method: Method.POST,
|
|
1929
|
+
authKey: param.authKey,
|
|
1930
|
+
currency: param.currency,
|
|
1931
|
+
language: param.language,
|
|
1932
|
+
param: param.data,
|
|
1933
|
+
});
|
|
1934
|
+
if (error) {
|
|
1935
|
+
return error;
|
|
1936
|
+
} else {
|
|
1937
|
+
return responseJson;
|
|
1938
|
+
}
|
|
1939
|
+
} catch (error) {
|
|
1940
|
+
return error;
|
|
1941
|
+
}
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
//
|
|
1945
|
+
async confirmCardRegistration(param = { authKey, data }) {
|
|
1946
|
+
try {
|
|
1947
|
+
const [error, responseJson] = await network.networkCall({
|
|
1948
|
+
path: MANGO_PAY + "/card_confirmation",
|
|
1949
|
+
method: Method.POST,
|
|
1950
|
+
authKey: param.authKey,
|
|
1951
|
+
currency: param.currency,
|
|
1952
|
+
language: param.language,
|
|
1953
|
+
param: param.data,
|
|
1954
|
+
});
|
|
1955
|
+
if (error) {
|
|
1956
|
+
return error;
|
|
1957
|
+
} else {
|
|
1958
|
+
return responseJson;
|
|
1959
|
+
}
|
|
1960
|
+
} catch (error) {
|
|
1961
|
+
return error;
|
|
1962
|
+
}
|
|
1963
|
+
}
|
|
1964
|
+
|
|
1965
|
+
//
|
|
1966
|
+
async PayINMangoPay(param = { authKey, data }) {
|
|
1967
|
+
try {
|
|
1968
|
+
const [error, responseJson] = await network.networkCall({
|
|
1969
|
+
path: MANGO_PAY + "/pay_in",
|
|
1929
1970
|
method: Method.POST,
|
|
1930
1971
|
authKey: param.authKey,
|
|
1931
1972
|
currency: param.currency,
|