@adyen/react-native
Version:
Wraps Adyen Checkout Drop-In and Components for iOS and Android for convenient use with React Native
13 lines (12 loc) • 515 B
JavaScript
;
const in_app_payment_key = 'com.apple.developer.in-app-payments';
export 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