@alipay/ams-checkout 0.0.1710212811-dev.32 → 0.0.1710212811-dev.33

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.
@@ -136,7 +136,7 @@ export var BusManager = /*#__PURE__*/function () {
136
136
  value: function traceLog(title, optionalParams) {
137
137
  var report = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
138
138
  if (this.isDebug) {
139
- console.log([BusManager.TAG, title].concat(optionalParams).join(this._logSplit));
139
+ console.log([BusManager.TAG, title].concat(JSON.stringify(optionalParams)).join(this._logSplit));
140
140
  }
141
141
  if (report && this.logger) {
142
142
  this.logger.logInfo({
@@ -150,7 +150,7 @@ export var BusManager = /*#__PURE__*/function () {
150
150
  key: "traceError",
151
151
  value: function traceError(title, optionalParams) {
152
152
  if (this.isDebug) {
153
- console.error([BusManager.TAG, title].concat(optionalParams).join(this._logSplit));
153
+ console.error([BusManager.TAG, title].concat(JSON.stringify(optionalParams)).join(this._logSplit));
154
154
  }
155
155
  if (this.logger) {
156
156
  this.logger.logError({
@@ -183,7 +183,9 @@ var ApplePayService = /*#__PURE__*/function () {
183
183
  };
184
184
  _this.session = new ApplePaySession(APPLE_PAY_VERSION, _request);
185
185
  }
186
+ // 核身前触发
186
187
  _this.session.onvalidatemerchant = _this.onvalidatemerchant;
188
+ // 核身后触发
187
189
  _this.session.onpaymentauthorized = _this.onpaymentauthorized;
188
190
  _this.session.oncancel = function () {
189
191
  if (_this.paymentState === PaymentState.pending) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alipay/ams-checkout",
3
- "version": "0.0.1710212811-dev.32",
3
+ "version": "0.0.1710212811-dev.33",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "main": "esm/index.js",