name="description"
label={i18n.str`Description`}
help=""
tooltip={i18n.str`Describe what this template stands for`}
/>
name="summary"
inputType="multiline"
label={i18n.str`Summary`}
tooltip={i18n.str`If specified, this template will create order with the same summary`}
/>
name="summary_editable"
label={i18n.str`Summary is editable`}
tooltip={i18n.str`Allow the user to change the summary.`}
/>
name="amount"
label={i18n.str`Amount`}
tooltip={i18n.str`If specified, this template will create order with the same price`}
/>
name="amount_editable"
label={i18n.str`Amount is editable`}
tooltip={i18n.str`Allow the user to select the amount to pay.`}
/>
{cList.length > 1 && (
name="currency_editable"
readonly={!state.amount_editable}
label={i18n.str`Currency is editable`}
tooltip={i18n.str`Allow the user to change currency.`}
/>
supported currencies: {cList.join(", ")}
)}
name="minimum_age"
label={i18n.str`Minimum age`}
help=""
tooltip={i18n.str`Is this contract restricted to some age?`}
/>
name="pay_duration"
label={i18n.str`Payment timeout`}
help=""
tooltip={i18n.str`How much time has the customer to complete the payment once the order was created.`}
/>
{!deviceList.length ? (
No OTP device.Add one first
) : (
name="otpId"
label={i18n.str`OTP device`}
values={[
undefined,
...deviceList.map((e) => e.otp_device_id),
]}
toStr={(v?: string) => {
if (!v) {
return i18n.str`No device`;
}
return deviceMap[v];
}}
tooltip={i18n.str`Use to verify transaction in offline mode.`}
/>
)}