@alipay/ams-checkout 0.0.1730878287-dev.8 → 0.0.1730878287-dev.9

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.
@@ -293,7 +293,11 @@ export var ElementComponent = /*#__PURE__*/function () {
293
293
  // TODO dev环境submit提交接口超时
294
294
  'Operation-Type': 'com.ipay.iexpcashier.cashier.submitPayByPaymentSession'
295
295
  }).then(function (result) {
296
- console.log('element submit result ------', result);
296
+ var _result$codeFormViews, _result$actionForm;
297
+ if (result !== null && result !== void 0 && result.codeFormViews && result !== null && result !== void 0 && (_result$codeFormViews = result.codeFormViews) !== null && _result$codeFormViews !== void 0 && (_result$codeFormViews = _result$codeFormViews[0]) !== null && _result$codeFormViews !== void 0 && _result$codeFormViews.codeExpireTime && result !== null && result !== void 0 && result.actionForm && !(result !== null && result !== void 0 && (_result$actionForm = result.actionForm) !== null && _result$actionForm !== void 0 && _result$actionForm.paymentCodeExpireTime)) {
298
+ var _result$codeFormViews2;
299
+ result.actionForm.paymentCodeExpireTime = result === null || result === void 0 || (_result$codeFormViews2 = result.codeFormViews) === null || _result$codeFormViews2 === void 0 || (_result$codeFormViews2 = _result$codeFormViews2[0]) === null || _result$codeFormViews2 === void 0 ? void 0 : _result$codeFormViews2.codeExpireTime;
300
+ }
297
301
  if (result.errorCode === ConnectErrorCode.RISK_REJECT) {
298
302
  _this4.onSubmitRiskFunc(ElementPaymentMethod.ADDRESS_ELEMENT);
299
303
  _this4.onSubmitRiskFunc(ElementPaymentMethod.AUTH_ELEMENT);
@@ -432,57 +432,57 @@ export var submitResult = {
432
432
  "actionForm": {
433
433
  "actionFormType": "RedirectActionForm",
434
434
  "method": "GET",
435
- "normalUrl": "https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040090a3UF2tUgl1k6RA7PQ4q32RRT",
436
- "redirectUrl": "https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040090a3UF2tUgl1k6RA7PQ4q32RRT"
435
+ "normalUrl": "https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040092rqa01k6Ed31LA96JETxv4IP8",
436
+ "redirectUrl": "https://open-sea.alipayplus.com/api/open/v1/ac/cashier/self/codevalue/checkout.htm?codeValue=https%3A%2F%2Fglobal.alipay.com%2F281002040092rqa01k6Ed31LA96JETxv4IP8"
437
437
  },
438
438
  "codeFormViews": [{
439
- "code": "https://global.alipay.com/281002040090a3UF2tUgl1k6RA7PQ4q32RRT",
440
- "codeExpireTime": "1731493927000",
439
+ "code": "https://global.alipay.com/281002040092rqa01k6Ed31LA96JETxv4IP8",
440
+ "codeExpireTime": "1732567070000",
441
441
  "displayType": "QRCODE"
442
442
  }],
443
443
  "errorActions": {},
444
444
  "extendInfo": {
445
445
  "iconName": "AlipayHK",
446
- "paymentRedirectUrl": "https://www.baidu.com",
446
+ "paymentRedirectUrl": "http://gol.alipay.net:8080/amsdemo/result?paymentRequestId=amsdmpay_20240410_143002_4shkjh123",
447
447
  "icon": "https://cdn.marmot-cloud.com/storage/2024/05/15/97dbcec8-7bdd-464b-b49a-5d9af6d98c0b.svg",
448
448
  "paymentMethod": "ALIPAY_HK"
449
449
  },
450
450
  "orderAmount": {
451
- "amount": "289.86",
452
- "currency": "USD",
453
- "currencyLabel": "US $",
454
- "formattedAmount": "289.86",
455
- "formattedAmountWithCurrency": "US $289.86",
456
- "value": "28986"
451
+ "amount": "1.10",
452
+ "currency": "EUR",
453
+ "currencyLabel": "",
454
+ "formattedAmount": "1,10",
455
+ "formattedAmountWithCurrency": " 1,10",
456
+ "value": "110"
457
457
  },
458
458
  "orderAmountView": {
459
- "currency": "USD",
459
+ "currency": "EUR",
460
460
  "currencyDivider": " ",
461
- "currencyLabel": "$",
461
+ "currencyLabel": "",
462
462
  "currencySymbolPosition": "L",
463
- "formattedValue": "289.86",
464
- "value": "289.86"
463
+ "formattedValue": "1,10",
464
+ "value": "1.10"
465
465
  },
466
466
  "paymentAmount": {
467
- "amount": "289.86",
468
- "currency": "USD",
469
- "currencyLabel": "US $",
470
- "formattedAmount": "289.86",
471
- "formattedAmountWithCurrency": "US $289.86",
472
- "value": "28986"
467
+ "amount": "1.10",
468
+ "currency": "EUR",
469
+ "currencyLabel": "",
470
+ "formattedAmount": "1,10",
471
+ "formattedAmountWithCurrency": " 1,10",
472
+ "value": "110"
473
473
  },
474
474
  "paymentAmountView": {
475
- "currency": "USD",
475
+ "currency": "EUR",
476
476
  "currencyDivider": " ",
477
- "currencyLabel": "$",
477
+ "currencyLabel": "",
478
478
  "currencySymbolPosition": "L",
479
- "formattedValue": "289.86",
480
- "value": "289.86"
479
+ "formattedValue": "1,10",
480
+ "value": "1.10"
481
481
  },
482
482
  "paymentMethodType": "ALIPAY_HK",
483
483
  "paymentResultCode": "PAYMENT_IN_PROCESS",
484
484
  "paymentStatus": "PROCESSING",
485
- "serverTime": "1731493090807",
485
+ "serverTime": "1731566233772",
486
486
  "success": true,
487
487
  "supportedLanguages": [{
488
488
  "locale": "en_US",
@@ -1,4 +1,4 @@
1
- import { ConnectErrorCode, ElementPaymentMethod } from '../../../types';
1
+ import { ConnectErrorCode, ElementPaymentMethod, ActionForm } from '../../../types';
2
2
  export declare enum ThemeType {
3
3
  NostalgicGray = "nostalgicGray",
4
4
  Default = "default",
@@ -163,12 +163,19 @@ export interface SubmitServiceParams extends PaymentSubmitData {
163
163
  accountInfo: AuthSubmitData['accountInfo'];
164
164
  shipping?: AddressSubmitData;
165
165
  }
166
+ interface SubmitResultActionForm extends ActionForm {
167
+ paymentCodeExpireTime: string;
168
+ }
166
169
  export interface SubmitServiceResult {
167
170
  success: boolean;
168
171
  errorCode: ConnectErrorCode;
169
172
  errorMessage: string;
170
173
  errorStatus: string;
171
174
  traceId: string;
175
+ actionForm?: SubmitResultActionForm;
176
+ codeFormViews?: Array<{
177
+ codeExpireTime?: string;
178
+ }>;
172
179
  }
173
180
  export interface SubmitFuncResult {
174
181
  success: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1730878287-dev.8",
3
+ "version": "0.0.1730878287-dev.9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",