"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wyre = function (_a) {
    var address = _a.address, currency = _a.currency, config = _a.config;
    var currentLocation = window.location.href;
    var url = exports.getWyreUrl(address, currency, currentLocation, config);
    window.location.href = url;
    return null;
};
exports.getWyreUrl = function (address, currency, redirectUrl, config) {
    return "" + config.wyreUrl +
        ("?destCurrency=" + currency) +
        ("&dest=" + address) +
        ("&paymentMethod=" + config.paymentMethod) +
        ("&redirectUrl=" + redirectUrl);
};
//# sourceMappingURL=Wyre.js.map