@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
17 lines (16 loc) • 616 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.setEntitlements = setEntitlements;
const in_app_payment_key = 'com.apple.developer.in-app-payments';
function setEntitlements(entitlements, input) {
const identifiers = entitlements[in_app_payment_key] ?? [];
const newIdentifiers = Array.isArray(input) ? input : [input];
newIdentifiers.filter(id => id && !identifiers.includes(id)).forEach(id => identifiers.push(id));
if (identifiers.length) {
entitlements[in_app_payment_key] = identifiers;
}
return entitlements;
}
//# sourceMappingURL=setEntitlements.js.map