@alipay/ams-checkout 0.0.1710212811-dev.4 → 0.0.1710212811-dev.6

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.
@@ -360,9 +360,12 @@ var ApplePayComponent = /*#__PURE__*/function (_CoreInstance) {
360
360
  };
361
361
  // set Apple Pay params
362
362
  this._applePayService.setApplePayParams(getMerchantSession, completePaymentAuthorized, completeApplePay, logError, applePayTrace);
363
-
364
363
  // init Apple Pay service
365
- this._applePayService.startPay(this._parseData);
364
+ try {
365
+ this._applePayService.startPay(this._parseData);
366
+ } catch (error) {
367
+ logError("appple runtime excepiton", error);
368
+ }
366
369
  }
367
370
  }]);
368
371
  return ApplePayComponent;
@@ -34,6 +34,7 @@ export var SDKCallbackBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
34
34
  key: "onEventCallback",
35
35
  value: function onEventCallback(message) {
36
36
  var data = message.getJSONObject();
37
+ console.log("onEventCallback", message);
37
38
  if (this._onEventCallback && data) {
38
39
  this._onEventCallback(data);
39
40
  }
@@ -59,6 +59,7 @@ export var ApplePayBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
59
59
  this.applePay = new ApplePayComponent(_objectSpread(_objectSpread({}, data === null || data === void 0 ? void 0 : data.options), {}, {
60
60
  // todo 需要补充其它参数的桥接
61
61
  onEventCallback: function onEventCallback(state) {
62
+ console.log('onCreateComponent#onEventCallback', state);
62
63
  if (state) {
63
64
  BusManager.publish(new BusMessage(SDKCallbackActionEnum.onEventCallback, JSON.stringify(state)));
64
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1710212811-dev.4",
3
+ "version": "0.0.1710212811-dev.6",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",