tradly 1.1.40 → 1.1.42
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 -1
- package/Roots/App.js +20 -0
- package/package.json +1 -1
|
@@ -121,7 +121,7 @@ export const SUBSCRIPTION_MANAGE = "/v1/subscriptions/manage";
|
|
|
121
121
|
export const SUBSCRIPTION_EMAIL_TRIGGER = "/v1/subscriptions/email_trigger";
|
|
122
122
|
|
|
123
123
|
export const MANGO_PAY = "/v1/payments/mangopay";
|
|
124
|
-
export const SAVED_CARD = "/v1/
|
|
124
|
+
export const SAVED_CARD = "/v1/saved_cards";
|
|
125
125
|
|
|
126
126
|
export const OPP_MERCHANT = "/v1/payments/opp/merchant";
|
|
127
127
|
|
package/Roots/App.js
CHANGED
|
@@ -1964,6 +1964,26 @@ class App {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
1966
|
|
|
1967
|
+
//
|
|
1968
|
+
async PayINMangoPayCalc(param = { authKey, data }) {
|
|
1969
|
+
try {
|
|
1970
|
+
const [error, responseJson] = await network.networkCall({
|
|
1971
|
+
path: MANGO_PAY + "/pay_in/calculation",
|
|
1972
|
+
method: Method.POST,
|
|
1973
|
+
authKey: param.authKey,
|
|
1974
|
+
currency: param.currency,
|
|
1975
|
+
language: param.language,
|
|
1976
|
+
param: param.data,
|
|
1977
|
+
});
|
|
1978
|
+
if (error) {
|
|
1979
|
+
return error;
|
|
1980
|
+
} else {
|
|
1981
|
+
return responseJson;
|
|
1982
|
+
}
|
|
1983
|
+
} catch (error) {
|
|
1984
|
+
return error;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1967
1987
|
//
|
|
1968
1988
|
async PayINMangoPay(param = { authKey, data }) {
|
|
1969
1989
|
try {
|