securepay
Version:
https://www.securepay.com.au/
19 lines (18 loc) • 859 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AlipayEndpoints = void 0;
var index_1 = require("../enums/index");
exports.AlipayEndpoints = {
/**
* Initial Alipay
*/
INITIAL: function (sandbox) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/alipay/payments/initiate"; },
/**
* Refund Alipay
*/
REFUND: function (sandbox, orderId) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/alipay/orders/" + orderId + "/refunds"; },
/**
* Retrieve Alipay
*/
RETRIEVE: function (sandbox, orderId, merchantCode) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/alipay/orders/" + orderId + "?merchantCode=" + merchantCode; },
};