@alipay/ams-checkout 0.0.1711691167-dev.11 → 0.0.1711691167-dev.12
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.
@@ -19,7 +19,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
20
20
|
import { BusManager, BusMessage, BusSubscriber } from "../../core/bus";
|
21
21
|
import { PaypalActionEnum, SDKCallbackActionEnum } from "../../core/bus/interface";
|
22
|
-
import {
|
22
|
+
import { queryPaymentInfo } from "../../service";
|
23
23
|
import { eventCodeEnum, payPalConfigurationIntentEnum, PaypalMethodEnum } from "../../types";
|
24
24
|
import { isFunction } from "../../util";
|
25
25
|
import { appendLoadingIcon, isShowLoading } from "../utils";
|
@@ -173,21 +173,21 @@ export var PaypalBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
|
|
173
173
|
}());
|
174
174
|
_defineProperty(_assertThisInitialized(_this), "createOrder", /*#__PURE__*/function () {
|
175
175
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_data, _action, paymentSessionData, env) {
|
176
|
-
var
|
177
|
-
var
|
176
|
+
var _queryPaymentInfoRes$;
|
177
|
+
var queryPaymentInfoRes;
|
178
178
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
179
179
|
while (1) switch (_context2.prev = _context2.next) {
|
180
180
|
case 0:
|
181
181
|
_context2.next = 2;
|
182
|
-
return
|
182
|
+
return queryPaymentInfo({
|
183
183
|
paymentSessionData: paymentSessionData
|
184
184
|
}, {
|
185
185
|
env: env,
|
186
186
|
timeout: 15000
|
187
187
|
}, _this.logger);
|
188
188
|
case 2:
|
189
|
-
|
190
|
-
if (!(!(
|
189
|
+
queryPaymentInfoRes = _context2.sent;
|
190
|
+
if (!(!(queryPaymentInfoRes !== null && queryPaymentInfoRes !== void 0 && queryPaymentInfoRes.success) || !(queryPaymentInfoRes !== null && queryPaymentInfoRes !== void 0 && (_queryPaymentInfoRes$ = queryPaymentInfoRes.extendInfo) !== null && _queryPaymentInfoRes$ !== void 0 && _queryPaymentInfoRes$.channelOrderId))) {
|
191
191
|
_context2.next = 7;
|
192
192
|
break;
|
193
193
|
}
|
@@ -200,7 +200,7 @@ export var PaypalBusSubscriber = /*#__PURE__*/function (_BusSubscriber) {
|
|
200
200
|
});
|
201
201
|
return _context2.abrupt("return");
|
202
202
|
case 7:
|
203
|
-
return _context2.abrupt("return",
|
203
|
+
return _context2.abrupt("return", queryPaymentInfoRes.extendInfo.channelOrderId);
|
204
204
|
case 8:
|
205
205
|
case "end":
|
206
206
|
return _context2.stop();
|
package/esm/types/index.d.ts
CHANGED