securepay
Version:
https://www.securepay.com.au/
23 lines (22 loc) • 1.09 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.PaypalEndpoints = void 0;
var index_1 = require("../enums/index");
exports.PaypalEndpoints = {
/**
* Initial Paypal
*/
INITIAL: function (sandbox) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/paypal/payments/initiate"; },
/**
* Execute Paypal
*/
EXECUTE: function (sandbox, orderId) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/paypal/payments/orders/" + orderId + "/execute"; },
/**
* Refund Paypal
*/
REFUND: function (sandbox, orderId) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/paypal/orders/" + orderId + "/refunds"; },
/**
* Retrieve Paypal
*/
RETRIEVE: function (sandbox, orderId, merchantCode) { return (sandbox ? index_1.SandboxEndpoints.BASE_URL : index_1.Endpoints.BASE_URL) + "/v2/wallets/paypal/orders/" + orderId + "?merchantCode=" + merchantCode; },
};
;