@longvansoftware/storefront-js-client 3.7.1 → 3.7.2
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.
|
@@ -10,11 +10,15 @@ exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
|
10
10
|
exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
|
|
11
11
|
mutation ConfirmToGateWay(
|
|
12
12
|
$paymentId: String!
|
|
13
|
+
$storeId: String
|
|
14
|
+
$methodTypeCode: String
|
|
13
15
|
$methodCode: String
|
|
14
16
|
$returnUrl: String
|
|
15
17
|
) {
|
|
16
18
|
confirmToGateway(
|
|
17
19
|
paymentId: $paymentId
|
|
20
|
+
storeId: $storeId
|
|
21
|
+
methodTypeCode: $methodTypeCode
|
|
18
22
|
methodCode: $methodCode
|
|
19
23
|
returnUrl: $returnUrl
|
|
20
24
|
) {
|
|
@@ -6,7 +6,7 @@ export declare class PaymentServiceV2 extends Service {
|
|
|
6
6
|
paymentMethods(): Promise<any>;
|
|
7
7
|
getPaymentMethodTypes(): Promise<any>;
|
|
8
8
|
paymentInfo(paymentId: string): Promise<any>;
|
|
9
|
-
confirmToGateway(paymentId: string, methodCode: string, returnUrl: string): Promise<any>;
|
|
9
|
+
confirmToGateway(paymentId: string, methodTypeCode: string, methodCode: string, returnUrl: string): Promise<any>;
|
|
10
10
|
paymentStatus(paymentId: string): Promise<any>;
|
|
11
11
|
gwConfigDetail(configId: string): Promise<any>;
|
|
12
12
|
confirmPaymentSuccessManual(paymentId: string, transactionNo: string, note: string, confirmBy: string): Promise<any>;
|
|
@@ -92,11 +92,13 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
|
-
confirmToGateway(paymentId, methodCode, returnUrl) {
|
|
95
|
+
confirmToGateway(paymentId, methodTypeCode, methodCode, returnUrl) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
97
|
const mutation = mutations_1.CONFIRM_TO_GATEWAY;
|
|
98
98
|
const variables = {
|
|
99
99
|
paymentId,
|
|
100
|
+
storeId: this.storeId,
|
|
101
|
+
methodTypeCode,
|
|
100
102
|
methodCode,
|
|
101
103
|
returnUrl,
|
|
102
104
|
};
|
|
@@ -212,7 +214,7 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
212
214
|
const variables = {
|
|
213
215
|
partnerId: this.orgId,
|
|
214
216
|
methodCode,
|
|
215
|
-
storeId: this.storeId
|
|
217
|
+
storeId: this.storeId,
|
|
216
218
|
};
|
|
217
219
|
try {
|
|
218
220
|
const response = yield this.graphqlQueryV3(query, variables);
|
|
@@ -230,7 +232,7 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
230
232
|
partnerId: this.orgId,
|
|
231
233
|
storeId: this.storeId,
|
|
232
234
|
storeActive: storeActive,
|
|
233
|
-
allMethodTypes: allMethodTypes
|
|
235
|
+
allMethodTypes: allMethodTypes,
|
|
234
236
|
};
|
|
235
237
|
try {
|
|
236
238
|
const response = yield this.graphqlQueryV3(queries, variables);
|