import { _objectSpread2 } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js";
import { _asyncToGenerator } from "../../../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/asyncToGenerator.js";
import { request } from "../../../../../utils/index.js";
import { getReturnUrl } from "../../utils.js";
//#region src/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.ts
const getAliPayUrl = function() {
	var _ref = _asyncToGenerator(function* (orderId, values, history) {
		try {
			const { data } = yield request.getRequest().get(`/h5/pay/order/alipay/${orderId}`, _objectSpread2({ return_url: getReturnUrl(history) }, values));
			return data;
		} catch (err) {}
	});
	return function getAliPayUrl(_x, _x2, _x3) {
		return _ref.apply(this, arguments);
	};
}();
//#endregion
export { getAliPayUrl };
