const require_asyncToGenerator = require("../../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js");
const require_index = require("../../../../../../utils/index.js");
//#region src/components/pay/toC/PaymentMethods/components/MiniProgramWaitingPaymentModal/serve.ts
const getStashData = function() {
	var _ref = require_asyncToGenerator._asyncToGenerator(function* (token) {
		try {
			const { data } = yield require_index.request.getRequest().get(`/h5/core/stash/${token}`, {});
			return data;
		} catch (err) {}
	});
	return function getStashData(_x) {
		return _ref.apply(this, arguments);
	};
}();
const getPaymentResult = function() {
	var _ref2 = require_asyncToGenerator._asyncToGenerator(function* (params) {
		try {
			const { orderId, paymentNumber } = params;
			if (!orderId || !paymentNumber) return null;
			const { data } = yield require_index.request.getRequest().get("/h5/pay/order/payment/result", {
				order_id: orderId,
				pay_number: paymentNumber
			});
			return data;
		} catch (err) {}
	});
	return function getPaymentResult(_x2) {
		return _ref2.apply(this, arguments);
	};
}();
//#endregion
exports.getPaymentResult = getPaymentResult;
exports.getStashData = getStashData;
