Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
VenmoView.isEnabled = function (options) {
var gatewayConfiguration = options.client.getConfiguration().gatewayConfiguration;
var venmoEnabled = gatewayConfiguration.payWithVenmo && Boolean(options.merchantConfiguration.venmo);
if (!venmoEnabled) {
return Promise.resolve(false);
}
return Promise.resolve(btVenmo.isBrowserSupported(options.merchantConfiguration.venmo));
};