@chevre/domain 21.20.0-alpha.1 → 21.20.0-alpha.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.
@@ -1,11 +1,16 @@
1
1
  // tslint:disable:no-console
2
2
  import * as mongoose from 'mongoose';
3
+ import * as readline from 'readline';
3
4
  import * as redis from 'redis';
4
5
 
5
6
  import { chevre } from '../../../../lib/index';
6
7
 
7
8
  const project = { id: String(process.env.PROJECT_ID) };
8
9
  const CLIENT_ID = '51qbjcfr72h62m06vtv5kkhgje';
10
+ const paymentMethodType = 'CreditCard';
11
+ const paymentServiceId = '5f9a4fed4f3709000abe6415';
12
+ // const paymentMethodType = 'PayPay';
13
+ // const paymentServiceId = '60e9560176a391000b23e20b';
9
14
 
10
15
  // tslint:disable-next-line:max-func-body-length
11
16
  async function main() {
@@ -37,17 +42,13 @@ async function main() {
37
42
  project: { id: project.id },
38
43
  agent: { id: CLIENT_ID },
39
44
  object: {
40
- // accountId?: string;
41
- // additionalProperty?: IPropertyValue<string>[];
42
- amount: 1,
43
- // description?: string;
44
- // name?: string;
45
- paymentMethod: 'PayPay',
46
- // paymentMethodId?: string;
47
45
  typeOf: chevre.factory.action.authorize.paymentMethod.any.ResultType.Payment,
48
- issuedThrough: { id: '60e9560176a391000b23e20b' },
46
+ amount: 1,
47
+ paymentMethod: paymentMethodType,
48
+ issuedThrough: { id: paymentServiceId },
49
49
  method: '1',
50
50
  creditCard: {
51
+ retUrl: String(process.env.SECURE_TRAN_RET_URL),
51
52
  cardNo: '4100000000000100',
52
53
  expire: '2812',
53
54
  cardPass: '123',
@@ -75,55 +76,67 @@ async function main() {
75
76
  });
76
77
  console.log(publishPaymentUrlResult);
77
78
 
78
- const authorizeResult = await (await chevre.service.payment.any.createService()).authorize({
79
- project: { id: project.id },
80
- agent: { id: CLIENT_ID },
81
- object: {
82
- // accountId?: string;
83
- // additionalProperty?: IPropertyValue<string>[];
84
- amount: 1,
85
- // description?: string;
86
- // name?: string;
87
- paymentMethod: 'PayPay',
88
- paymentMethodId: publishPaymentUrlResult.paymentMethodId,
89
- typeOf: chevre.factory.action.authorize.paymentMethod.any.ResultType.Payment,
90
- issuedThrough: { id: '60e9560176a391000b23e20b' },
91
- method: '1',
92
- creditCard: {
93
- cardNo: '4100000000000100',
94
- expire: '2812',
95
- cardPass: '123',
96
- holderName: 'AA AA'
79
+ // wait callback...
80
+ await new Promise<void>((resolve, reject) => {
81
+ const rl = readline.createInterface({
82
+ input: process.stdin,
83
+ output: process.stdout
84
+ });
85
+
86
+ rl.question('callback received?:\n', async () => {
87
+ try {
88
+ const authorizeResult = await (await chevre.service.payment.any.createService()).authorize({
89
+ project: { id: project.id },
90
+ agent: { id: CLIENT_ID },
91
+ object: {
92
+ typeOf: chevre.factory.action.authorize.paymentMethod.any.ResultType.Payment,
93
+ amount: 1,
94
+ paymentMethodId: publishPaymentUrlResult.paymentMethodId,
95
+ paymentMethod: paymentMethodType,
96
+ issuedThrough: { id: paymentServiceId },
97
+ method: '1',
98
+ creditCard: {
99
+ cardNo: '4100000000000100',
100
+ expire: '2812',
101
+ cardPass: '123',
102
+ holderName: 'AA AA'
103
+ }
104
+ },
105
+ purpose: { id: transaction.id, typeOf: transaction.typeOf },
106
+ paymentServiceType: chevre.factory.service.paymentService.PaymentServiceType.CreditCard,
107
+ location: {
108
+ typeOf: chevre.factory.creativeWorkType.WebApplication,
109
+ id: CLIENT_ID
110
+ },
111
+ options: {
112
+ useCancelPayTransactionOnFailed: false,
113
+ useCheckMovieTicketBeforePay: false,
114
+ useCheckByIdentifierIfNotYet: false,
115
+ useSearchTrade4accountId: false
116
+ }
117
+ })({
118
+ accountingReport: await chevre.repository.AccountingReport.createInstance(mongoose.connection),
119
+ action: await chevre.repository.Action.createInstance(mongoose.connection),
120
+ assetTransaction: await chevre.repository.AssetTransaction.createInstance(mongoose.connection),
121
+ event: await chevre.repository.Event.createInstance(mongoose.connection),
122
+ paymentAccepted: await chevre.repository.SellerPaymentAccepted.createInstance(mongoose.connection),
123
+ paymentService: await chevre.repository.PaymentService.createInstance(mongoose.connection),
124
+ paymentServiceProvider: await chevre.repository.PaymentServiceProvider.createInstance(mongoose.connection),
125
+ person: await chevre.repository.Person.createInstance({ userPoolId: '' }),
126
+ product: await chevre.repository.Product.createInstance(mongoose.connection),
127
+ project: await chevre.repository.Project.createInstance(mongoose.connection),
128
+ task: await chevre.repository.Task.createInstance(mongoose.connection),
129
+ transactionNumber: await chevre.repository.TransactionNumber.createInstance(client),
130
+ transaction: await chevre.repository.Transaction.createInstance(mongoose.connection)
131
+ });
132
+ console.log(authorizeResult);
133
+
134
+ resolve();
135
+ } catch (error) {
136
+ reject(error);
97
137
  }
98
- },
99
- purpose: { id: transaction.id, typeOf: transaction.typeOf },
100
- paymentServiceType: chevre.factory.service.paymentService.PaymentServiceType.CreditCard,
101
- location: {
102
- typeOf: chevre.factory.creativeWorkType.WebApplication,
103
- id: CLIENT_ID
104
- },
105
- options: {
106
- useCancelPayTransactionOnFailed: false,
107
- useCheckMovieTicketBeforePay: false,
108
- useCheckByIdentifierIfNotYet: false,
109
- useSearchTrade4accountId: false
110
- }
111
- })({
112
- accountingReport: await chevre.repository.AccountingReport.createInstance(mongoose.connection),
113
- action: await chevre.repository.Action.createInstance(mongoose.connection),
114
- assetTransaction: await chevre.repository.AssetTransaction.createInstance(mongoose.connection),
115
- event: await chevre.repository.Event.createInstance(mongoose.connection),
116
- paymentAccepted: await chevre.repository.SellerPaymentAccepted.createInstance(mongoose.connection),
117
- paymentService: await chevre.repository.PaymentService.createInstance(mongoose.connection),
118
- paymentServiceProvider: await chevre.repository.PaymentServiceProvider.createInstance(mongoose.connection),
119
- person: await chevre.repository.Person.createInstance({ userPoolId: '' }),
120
- product: await chevre.repository.Product.createInstance(mongoose.connection),
121
- project: await chevre.repository.Project.createInstance(mongoose.connection),
122
- task: await chevre.repository.Task.createInstance(mongoose.connection),
123
- transactionNumber: await chevre.repository.TransactionNumber.createInstance(client),
124
- transaction: await chevre.repository.Transaction.createInstance(mongoose.connection)
138
+ });
125
139
  });
126
- console.log(authorizeResult);
127
140
  }
128
141
 
129
142
  main()
@@ -23,7 +23,7 @@ const potentialActions_1 = require("./pay/potentialActions");
23
23
  */
24
24
  function publishPaymentUrl(params) {
25
25
  return (repos) => __awaiter(this, void 0, void 0, function* () {
26
- var _a, _b;
26
+ var _a, _b, _c;
27
27
  const paymentServiceType = (_a = params.object) === null || _a === void 0 ? void 0 : _a.typeOf;
28
28
  // 金額をfix
29
29
  const amount = (_b = params.object.paymentMethod) === null || _b === void 0 ? void 0 : _b.amount;
@@ -41,13 +41,21 @@ function publishPaymentUrl(params) {
41
41
  switch (paymentServiceType) {
42
42
  case factory.service.paymentService.PaymentServiceType.CreditCard:
43
43
  const authorizeResult = yield CreditCardPayment.authorize(params, paymentServiceId, { searchTrade4accountId: false })(repos);
44
- const acsUrl = authorizeResult.execTranResult.acsUrl;
45
- if (typeof acsUrl !== 'string' || acsUrl.length === 0) {
46
- throw new factory.errors.ServiceUnavailable('Payment URL unable to publish');
44
+ let paymentUrl;
45
+ // 3DS拡張(2024-01-02~)
46
+ const retUrl = (_c = params.object.paymentMethod.creditCard) === null || _c === void 0 ? void 0 : _c.retUrl;
47
+ if (typeof retUrl === 'string' && retUrl.length > 0) {
48
+ paymentUrl = authorizeResult.execTranResult.redirectUrl;
49
+ }
50
+ else {
51
+ paymentUrl = authorizeResult.execTranResult.acsUrl;
52
+ }
53
+ if (typeof paymentUrl !== 'string' || paymentUrl.length === 0) {
54
+ throw new factory.errors.ServiceUnavailable(`Payment URL unable to publish. [retUrl: ${retUrl}]`);
47
55
  }
48
56
  result = {
49
57
  paymentMethodId: transactionNumber,
50
- paymentUrl: acsUrl,
58
+ paymentUrl,
51
59
  entryTranArgs: authorizeResult.entryTranArgs,
52
60
  entryTranResult: authorizeResult.entryTranResult,
53
61
  execTranArgs: authorizeResult.execTranArgs,
@@ -301,15 +309,9 @@ function processAuthorizeCreditCard(params, transaction, paymentServiceId, optio
301
309
  : undefined))(repos);
302
310
  return saveAuthorizeResult({
303
311
  id: transaction.id,
304
- update: {
305
- 'object.accountId': authorizeResult.accountId,
306
- 'object.paymentMethod.accountId': authorizeResult.accountId,
307
- 'object.paymentMethod.paymentMethodId': authorizeResult.paymentMethodId,
308
- 'object.entryTranArgs': authorizeResult.entryTranArgs,
309
- 'object.entryTranResult': authorizeResult.entryTranResult,
310
- 'object.execTranArgs': authorizeResult.execTranArgs,
311
- 'object.execTranResult': authorizeResult.execTranResult
312
- }
312
+ update: Object.assign({ 'object.accountId': authorizeResult.accountId, 'object.paymentMethod.accountId': authorizeResult.accountId, 'object.paymentMethod.paymentMethodId': authorizeResult.paymentMethodId, 'object.entryTranArgs': authorizeResult.entryTranArgs, 'object.entryTranResult': authorizeResult.entryTranResult, 'object.execTranArgs': authorizeResult.execTranArgs, 'object.execTranResult': authorizeResult.execTranResult }, (authorizeResult.secureTran2Result !== undefined)
313
+ ? { 'object.secureTran2Result': authorizeResult.secureTran2Result }
314
+ : undefined)
313
315
  })(repos);
314
316
  });
315
317
  }
@@ -11,22 +11,12 @@ import type { CognitoRepository as PersonRepo } from '../../repo/person';
11
11
  import type { MongoRepository as ProjectRepo } from '../../repo/project';
12
12
  import type { MongoRepository as PaymentAcceptedRepo } from '../../repo/sellerPaymentAccepted';
13
13
  import type { MongoRepository as TaskRepo } from '../../repo/task';
14
- export interface IExecTran3dsResult {
15
- /**
16
- * ACS呼出判定
17
- */
18
- acs: string;
19
- /**
20
- * 3DSサーバーへのリダイレクトURL
21
- * 3DS2.0認証初期化へのURL
22
- */
23
- redirectUrl?: string;
24
- }
25
14
  interface IPaymentAgencyTransaction {
26
15
  entryTranArgs: GMO.factory.credit.IEntryTranArgs;
27
16
  entryTranResult: GMO.factory.credit.IEntryTranResult;
28
17
  execTranArgs: GMO.factory.credit.IExecTranArgs;
29
- execTranResult: GMO.factory.credit.IExecTranResult | IExecTran3dsResult;
18
+ execTranResult: GMO.factory.credit.IExecTranResult | GMO.factory.credit.IExecTran3dsResult;
19
+ secureTran2Result?: GMO.factory.credit.ISecureTran2Result;
30
20
  }
31
21
  type IAuthorizeResult = IPaymentAgencyTransaction & {
32
22
  accountId: string;
@@ -26,8 +26,9 @@ const debug = createDebug('chevre-domain:service:payment');
26
26
  * クレジットカード決済承認
27
27
  */
28
28
  function authorize(params, paymentServiceId, options) {
29
+ // tslint:disable-next-line:max-func-body-length
29
30
  return (repos) => __awaiter(this, void 0, void 0, function* () {
30
- var _a, _b, _c, _d;
31
+ var _a, _b, _c, _d, _e;
31
32
  const project = yield repos.project.findById({
32
33
  id: params.project.id,
33
34
  inclusion: ['settings'],
@@ -57,9 +58,25 @@ function authorize(params, paymentServiceId, options) {
57
58
  let authorizeResult;
58
59
  let searchTradeResult;
59
60
  try {
60
- authorizeResult = yield processAuthorizeCreditCard(Object.assign({ projectSettings: project.settings, shopId: shopId, shopPass: shopPass, orderId: orderId, availableChannel: availableChannel, object: params.object.paymentMethod }, (options.pendingPaymentAgencyTransaction !== undefined)
61
- ? { pendingPaymentAgencyTransaction: options.pendingPaymentAgencyTransaction }
62
- : undefined))(repos);
61
+ const pendingPaymentAgencyTransaction = options.pendingPaymentAgencyTransaction;
62
+ const redirectUrl = (_c = pendingPaymentAgencyTransaction === null || pendingPaymentAgencyTransaction === void 0 ? void 0 : pendingPaymentAgencyTransaction.execTranResult) === null || _c === void 0 ? void 0 : _c.redirectUrl;
63
+ if (pendingPaymentAgencyTransaction !== undefined
64
+ && typeof redirectUrl === 'string' && redirectUrl.length > 0) {
65
+ authorizeResult = yield processAuthorizeCreditCard3ds({
66
+ availableChannel,
67
+ pendingPaymentAgencyTransaction
68
+ })();
69
+ }
70
+ else {
71
+ authorizeResult = yield processAuthorizeCreditCard({
72
+ projectSettings: project.settings,
73
+ shopId: shopId,
74
+ shopPass: shopPass,
75
+ orderId: orderId,
76
+ availableChannel: availableChannel,
77
+ object: params.object.paymentMethod
78
+ })(repos);
79
+ }
63
80
  }
64
81
  catch (error) {
65
82
  throw handleAuthorizeError(error);
@@ -75,8 +92,8 @@ function authorize(params, paymentServiceId, options) {
75
92
  shopId: shopId,
76
93
  shopPass: shopPass,
77
94
  orderId: orderId,
78
- siteId: (_c = availableChannel.credentials) === null || _c === void 0 ? void 0 : _c.siteId,
79
- sitePass: (_d = availableChannel.credentials) === null || _d === void 0 ? void 0 : _d.sitePass
95
+ siteId: (_d = availableChannel.credentials) === null || _d === void 0 ? void 0 : _d.siteId,
96
+ sitePass: (_e = availableChannel.credentials) === null || _e === void 0 ? void 0 : _e.sitePass
80
97
  });
81
98
  debug('searchTrade processed. orderId:', orderId, 'execution time:', (Date.now() - startSearchTradeDate), 'ms');
82
99
  }
@@ -85,55 +102,27 @@ function authorize(params, paymentServiceId, options) {
85
102
  debug('searchTrade throwed an error. orderId:', orderId, error);
86
103
  }
87
104
  }
88
- return {
89
- accountId: (searchTradeResult !== undefined) ? searchTradeResult.cardNo : '',
90
- paymentMethodId: orderId,
91
- entryTranArgs: authorizeResult.entryTranArgs,
92
- entryTranResult: authorizeResult.entryTranResult,
93
- execTranArgs: authorizeResult.execTranArgs,
94
- execTranResult: authorizeResult.execTranResult
95
- };
105
+ return Object.assign({ accountId: (searchTradeResult !== undefined) ? searchTradeResult.cardNo : '', paymentMethodId: orderId, entryTranArgs: authorizeResult.entryTranArgs, entryTranResult: authorizeResult.entryTranResult, execTranArgs: authorizeResult.execTranArgs, execTranResult: authorizeResult.execTranResult }, (authorizeResult.secureTran2Result !== undefined) ? { secureTran2Result: authorizeResult.secureTran2Result } : undefined);
96
106
  });
97
107
  }
98
108
  exports.authorize = authorize;
99
109
  function processAuthorizeCreditCard(params) {
110
+ // tslint:disable-next-line:max-func-body-length
100
111
  return (repos) => __awaiter(this, void 0, void 0, function* () {
101
- var _a, _b, _c, _d, _e, _f;
112
+ var _a, _b, _c, _d, _e;
102
113
  // GMOオーソリ取得
103
114
  let entryTranArgs;
104
115
  let entryTranResult;
105
116
  let execTranArgs;
106
117
  let execTranResult;
107
118
  const creditCardService = new GMO.service.Credit({ endpoint: String(params.availableChannel.serviceUrl) }, { timeout: credentials_1.credentials.gmo.timeout });
108
- const pendingPaymentAgencyTransaction = params.pendingPaymentAgencyTransaction;
109
- if (pendingPaymentAgencyTransaction !== undefined) {
110
- const redirectUrl = (_a = pendingPaymentAgencyTransaction === null || pendingPaymentAgencyTransaction === void 0 ? void 0 : pendingPaymentAgencyTransaction.execTranResult) === null || _a === void 0 ? void 0 : _a.redirectUrl;
111
- if (typeof redirectUrl === 'string' && redirectUrl.length > 0) {
112
- throw new factory.errors.NotImplemented('secureTran2 not implemented');
113
- // return {
114
- // ...pendingPaymentAgencyTransaction
115
- // };
116
- }
117
- }
118
- entryTranArgs = {
119
- shopId: params.shopId,
120
- shopPass: params.shopPass,
121
- orderId: params.orderId,
122
- jobCd: GMO.utils.util.JobCd.Auth,
123
- amount: (typeof params.object.amount === 'number')
124
- ? params.object.amount
125
- : params.object.amount.value,
126
- siteId: (_b = params.availableChannel.credentials) === null || _b === void 0 ? void 0 : _b.siteId,
127
- sitePass: (_c = params.availableChannel.credentials) === null || _c === void 0 ? void 0 : _c.sitePass
128
- };
129
- entryTranResult = yield creditCardService.entryTran(entryTranArgs);
130
119
  const creditCard = params.object.creditCard;
131
120
  let memberId = creditCard.memberId;
132
121
  const cardSeq = creditCard.cardSeq;
133
122
  if (typeof memberId === 'string' && memberId.length > 0 && typeof cardSeq === 'number') {
134
123
  // 特殊なプロジェクトのみユーザーネームに自動変換(新旧会員互換性維持対応)
135
124
  // memberIdはPersonIDが指定されてくる想定
136
- const useUsernameAsGMOMemberId = ((_d = params.projectSettings) === null || _d === void 0 ? void 0 : _d.useUsernameAsGMOMemberId) === true;
125
+ const useUsernameAsGMOMemberId = ((_a = params.projectSettings) === null || _a === void 0 ? void 0 : _a.useUsernameAsGMOMemberId) === true;
137
126
  if (useUsernameAsGMOMemberId) {
138
127
  try {
139
128
  const customer = yield repos.person.findById({ userId: memberId });
@@ -144,28 +133,83 @@ function processAuthorizeCreditCard(params) {
144
133
  }
145
134
  }
146
135
  }
147
- execTranArgs = {
148
- accessId: entryTranResult.accessId,
149
- accessPass: entryTranResult.accessPass,
150
- orderId: params.orderId,
151
- method: params.object.method,
152
- siteId: (_e = params.availableChannel.credentials) === null || _e === void 0 ? void 0 : _e.siteId,
153
- sitePass: (_f = params.availableChannel.credentials) === null || _f === void 0 ? void 0 : _f.sitePass,
154
- cardNo: creditCard.cardNo,
155
- cardPass: creditCard.cardPass,
156
- expire: creditCard.expire,
157
- token: creditCard.token,
158
- memberId: memberId,
159
- cardSeq: cardSeq,
160
- seqMode: GMO.utils.util.SeqMode.Physics
161
- };
162
- execTranResult = yield creditCardService.execTran(execTranArgs);
163
- return {
164
- entryTranArgs,
165
- entryTranResult,
166
- execTranArgs,
167
- execTranResult
168
- };
136
+ const retUrl = creditCard === null || creditCard === void 0 ? void 0 : creditCard.retUrl;
137
+ // 3DS拡張(2024-01-02~)
138
+ if (typeof retUrl === 'string' && retUrl.length > 0) {
139
+ entryTranArgs = {
140
+ shopId: params.shopId,
141
+ shopPass: params.shopPass,
142
+ orderId: params.orderId,
143
+ jobCd: GMO.utils.util.JobCd.Auth,
144
+ amount: (typeof params.object.amount === 'number')
145
+ ? params.object.amount
146
+ : params.object.amount.value,
147
+ // siteId: params.availableChannel.credentials?.siteId,
148
+ // sitePass: params.availableChannel.credentials?.sitePass,
149
+ tdFlag: GMO.utils.util.TdFlag.Version2,
150
+ // tdTenantName: '',
151
+ tds2Type: GMO.utils.util.Tds2Type.Error
152
+ };
153
+ entryTranResult = yield creditCardService.entryTran(entryTranArgs);
154
+ execTranArgs = {
155
+ accessId: entryTranResult.accessId,
156
+ accessPass: entryTranResult.accessPass,
157
+ orderId: params.orderId,
158
+ method: params.object.method,
159
+ // siteId: params.availableChannel.credentials?.siteId,
160
+ // sitePass: params.availableChannel.credentials?.sitePass,
161
+ cardNo: creditCard.cardNo,
162
+ cardPass: creditCard.cardPass,
163
+ expire: creditCard.expire,
164
+ token: creditCard.token,
165
+ memberId: memberId,
166
+ cardSeq: cardSeq,
167
+ seqMode: GMO.utils.util.SeqMode.Physics,
168
+ retUrl,
169
+ callbackType: GMO.utils.util.CallbackType.Get
170
+ };
171
+ execTranResult = yield creditCardService.execTran3ds(execTranArgs);
172
+ }
173
+ else {
174
+ entryTranArgs = {
175
+ shopId: params.shopId,
176
+ shopPass: params.shopPass,
177
+ orderId: params.orderId,
178
+ jobCd: GMO.utils.util.JobCd.Auth,
179
+ amount: (typeof params.object.amount === 'number')
180
+ ? params.object.amount
181
+ : params.object.amount.value,
182
+ siteId: (_b = params.availableChannel.credentials) === null || _b === void 0 ? void 0 : _b.siteId,
183
+ sitePass: (_c = params.availableChannel.credentials) === null || _c === void 0 ? void 0 : _c.sitePass
184
+ };
185
+ entryTranResult = yield creditCardService.entryTran(entryTranArgs);
186
+ execTranArgs = {
187
+ accessId: entryTranResult.accessId,
188
+ accessPass: entryTranResult.accessPass,
189
+ orderId: params.orderId,
190
+ method: params.object.method,
191
+ siteId: (_d = params.availableChannel.credentials) === null || _d === void 0 ? void 0 : _d.siteId,
192
+ sitePass: (_e = params.availableChannel.credentials) === null || _e === void 0 ? void 0 : _e.sitePass,
193
+ cardNo: creditCard.cardNo,
194
+ cardPass: creditCard.cardPass,
195
+ expire: creditCard.expire,
196
+ token: creditCard.token,
197
+ memberId: memberId,
198
+ cardSeq: cardSeq,
199
+ seqMode: GMO.utils.util.SeqMode.Physics
200
+ };
201
+ execTranResult = yield creditCardService.execTran(execTranArgs);
202
+ }
203
+ return { entryTranArgs, entryTranResult, execTranArgs, execTranResult };
204
+ });
205
+ }
206
+ function processAuthorizeCreditCard3ds(params) {
207
+ return () => __awaiter(this, void 0, void 0, function* () {
208
+ const creditCardService = new GMO.service.Credit({ endpoint: String(params.availableChannel.serviceUrl) }, { timeout: credentials_1.credentials.gmo.timeout });
209
+ const { entryTranArgs, entryTranResult, execTranArgs, execTranResult } = params.pendingPaymentAgencyTransaction;
210
+ const { accessId, accessPass } = entryTranResult;
211
+ const secureTran2Result = yield creditCardService.secureTran2({ accessId, accessPass });
212
+ return { entryTranArgs, entryTranResult, execTranArgs, execTranResult, secureTran2Result };
169
213
  });
170
214
  }
171
215
  function handleAuthorizeError(error) {
package/package.json CHANGED
@@ -10,10 +10,10 @@
10
10
  ],
11
11
  "dependencies": {
12
12
  "@aws-sdk/credential-providers": "3.433.0",
13
- "@chevre/factory": "4.351.0-alpha.1",
13
+ "@chevre/factory": "4.351.0-alpha.2",
14
14
  "@cinerino/sdk": "5.6.0",
15
15
  "@motionpicture/coa-service": "9.2.0",
16
- "@motionpicture/gmo-service": "5.2.0",
16
+ "@motionpicture/gmo-service": "5.3.0-alpha.0",
17
17
  "@sendgrid/mail": "6.4.0",
18
18
  "@surfrock/sdk": "1.2.0",
19
19
  "@waiter/domain": "6.4.0-alpha.4",
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "21.20.0-alpha.1"
118
+ "version": "21.20.0-alpha.2"
119
119
  }