function filterGiftcard(protocol) {
return protocol.method === 'giftcard';
}
const widget = await widgetManager.createWidget({
interface: 'PAYMENT',
ui: {
layout: {
merges: [{
name: 'SECONDARIES',
filter: filterGiftcard,
title: 'Use your giftcard',
subtitle: 'Only for secondary payment',
}]
}
}
});