mirror of
https://github.com/valitydev/checkout.git
synced 2024-11-06 02:25:18 +00:00
Add metadata field addon (#157)
This commit is contained in:
parent
2b0fedd477
commit
36c6f3a0ca
@ -24,6 +24,7 @@ export interface ServiceProviderMetadataField {
|
||||
index?: number;
|
||||
formatter?: MetadataFieldFormatter;
|
||||
inputMode?: AttributeInputMode;
|
||||
addon?: 'vpa';
|
||||
}
|
||||
|
||||
export interface MetadataSelectSource {
|
||||
|
@ -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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user