Add metadata field addon (#157)

This commit is contained in:
Ildar Galeev 2022-11-16 15:03:04 +03:00 committed by GitHub
parent 2b0fedd477
commit 36c6f3a0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ export interface ServiceProviderMetadataField {
index?: number;
formatter?: MetadataFieldFormatter;
inputMode?: AttributeInputMode;
addon?: 'vpa';
}
export interface MetadataSelectSource {

View File

@ -133,7 +133,7 @@ const PaymentTerminalFormRef: React.FC<InjectedFormProps> = ({ submitFailed, ini
{m.type !== 'select' && (
<MetadataField metadata={m} wrappedName="metadata" localeCode={initConfig.locale} />
)}
{m.name === 'VPA' && <VpaInstruction locale={locale} />}
{m?.addon === 'vpa' && <VpaInstruction locale={locale} />}
</FormGroup>
))}
{amount.visible && (