@itutoring/itutoring_application_js_api 1.15.2 → 1.16.0
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/modules/Checkout.js +12 -2
- package/modules/Models.js +1 -1
- package/package.json +1 -1
package/modules/Checkout.js
CHANGED
|
@@ -19,6 +19,15 @@ class Checkout
|
|
|
19
19
|
static #UPDATE_PAYMENT_STATUS_EXTERNAL = "UpdatePaymentStatusExternal";
|
|
20
20
|
static #GET_BILLING_INFO = "GetBillingInfo";
|
|
21
21
|
static #CONVERT_ORDER_VARIABLE_SYMBOL_TO_ID = "ConvertOrderVariableSymbolToId";
|
|
22
|
+
static #CONVERT_TRANSACTION_ID_TO_ORDER_ID = "ConvertTransactionIdToOrderId";
|
|
23
|
+
|
|
24
|
+
static async convertTransactionIdToOrderId(transactionId)
|
|
25
|
+
{
|
|
26
|
+
var res = await APIController.Get(this.#MODULE, this.#CONVERT_TRANSACTION_ID_TO_ORDER_ID, {
|
|
27
|
+
"transactionId": transactionId
|
|
28
|
+
});
|
|
29
|
+
return res;
|
|
30
|
+
}
|
|
22
31
|
|
|
23
32
|
static async convertOrderVariableSymbolToId(variableSymbol)
|
|
24
33
|
{
|
|
@@ -49,10 +58,11 @@ class Checkout
|
|
|
49
58
|
return res;
|
|
50
59
|
}
|
|
51
60
|
|
|
52
|
-
static async initiatePurchase(orderId)
|
|
61
|
+
static async initiatePurchase(orderId, customCallbackUrl = null)
|
|
53
62
|
{
|
|
54
63
|
var res = await APIController.Post(this.#MODULE, this.#INITIATE_PURCHASE, {
|
|
55
|
-
"orderId": orderId
|
|
64
|
+
"orderId": orderId,
|
|
65
|
+
"customCallbackUrl": customCallbackUrl
|
|
56
66
|
});
|
|
57
67
|
return res;
|
|
58
68
|
}
|
package/modules/Models.js
CHANGED