diff --git a/src/openforms/js/compiled-lang/en.json b/src/openforms/js/compiled-lang/en.json
index 8ca003173f..ec3df680d7 100644
--- a/src/openforms/js/compiled-lang/en.json
+++ b/src/openforms/js/compiled-lang/en.json
@@ -2293,6 +2293,60 @@
"value": "The data entered in this component will be removed in accordance with the privacy settings."
}
],
+ "JHQfjZ": [
+ {
+ "type": 0,
+ "value": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " You can use all form variables (using their keys) and the "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "public_reference"
+ }
+ ],
+ "type": 8,
+ "value": "code"
+ },
+ {
+ "type": 0,
+ "value": " template variable. If unspecified, a default description is used."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "Note"
+ }
+ ],
+ "type": 8,
+ "value": "strong"
+ },
+ {
+ "type": 0,
+ "value": ": the length of the result is capped to 100 characters."
+ }
+ ],
"JKq3TC": [
{
"type": 0,
@@ -3887,6 +3941,12 @@
"value": "The processing (\"verwerking\") for queries to the BRP Persoon API."
}
],
+ "ZSvQcR": [
+ {
+ "type": 0,
+ "value": "TITLE parameter"
+ }
+ ],
"ZdZ2Mb": [
{
"type": 0,
@@ -4445,6 +4505,12 @@
"value": "'Save row' text"
}
],
+ "eZJFP7": [
+ {
+ "type": 0,
+ "value": "COM parameter"
+ }
+ ],
"ee4oWr": [
{
"type": 0,
@@ -6243,6 +6309,36 @@
"value": "The content of the submission confirmation page. It can contain variables that will be templated from the submitted form data. If not specified, the global template will be used."
}
],
+ "vikURf": [
+ {
+ "type": 0,
+ "value": "Optional custom template for the title displayed on the payment page."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " You can use all form variables (using their keys) and the "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "public_reference"
+ }
+ ],
+ "type": 8,
+ "value": "code"
+ },
+ {
+ "type": 0,
+ "value": " template variable. If unspecified, a default description is used."
+ }
+ ],
"vlY36U": [
{
"type": 0,
diff --git a/src/openforms/js/compiled-lang/nl.json b/src/openforms/js/compiled-lang/nl.json
index d452780cad..e28e7035e1 100644
--- a/src/openforms/js/compiled-lang/nl.json
+++ b/src/openforms/js/compiled-lang/nl.json
@@ -2314,6 +2314,60 @@
"value": "Gegevens opgevoerd in dit component worden geschoond volgens de privacy-instellingen."
}
],
+ "JHQfjZ": [
+ {
+ "type": 0,
+ "value": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " You can use all form variables (using their keys) and the "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "public_reference"
+ }
+ ],
+ "type": 8,
+ "value": "code"
+ },
+ {
+ "type": 0,
+ "value": " template variable. If unspecified, a default description is used."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "Note"
+ }
+ ],
+ "type": 8,
+ "value": "strong"
+ },
+ {
+ "type": 0,
+ "value": ": the length of the result is capped to 100 characters."
+ }
+ ],
"JKq3TC": [
{
"type": 0,
@@ -3905,6 +3959,12 @@
"value": "De waarde voor \"verwerking\" die meegestuurd wordt bij het bevragen van de BRP Personen API. Mogelijke waarden hiervoor zijn afhankelijk van je gateway-leverancier."
}
],
+ "ZSvQcR": [
+ {
+ "type": 0,
+ "value": "TITLE parameter"
+ }
+ ],
"ZdZ2Mb": [
{
"type": 0,
@@ -4467,6 +4527,12 @@
"value": "'Groep bewaren'-tekst"
}
],
+ "eZJFP7": [
+ {
+ "type": 0,
+ "value": "COM parameter"
+ }
+ ],
"ee4oWr": [
{
"type": 0,
@@ -6265,6 +6331,36 @@
"value": "De inhoud van bevestigingspagina na het versturen van de inzending. Dit sjabloon mag variabelen bevatten met inzendings-gegevens. Laat dit veld leeg om de standaardinstelling te gebruiken."
}
],
+ "vikURf": [
+ {
+ "type": 0,
+ "value": "Optional custom template for the title displayed on the payment page."
+ },
+ {
+ "children": [
+ ],
+ "type": 8,
+ "value": "br"
+ },
+ {
+ "type": 0,
+ "value": " You can use all form variables (using their keys) and the "
+ },
+ {
+ "children": [
+ {
+ "type": 0,
+ "value": "public_reference"
+ }
+ ],
+ "type": 8,
+ "value": "code"
+ },
+ {
+ "type": 0,
+ "value": " template variable. If unspecified, a default description is used."
+ }
+ ],
"vlY36U": [
{
"type": 0,
diff --git a/src/openforms/js/components/admin/form_design/payments/ogone_legacy/OgoneLegacyOptionsForm.js b/src/openforms/js/components/admin/form_design/payments/ogone_legacy/OgoneLegacyOptionsForm.js
index 7bc97308d0..74e83f3859 100644
--- a/src/openforms/js/components/admin/form_design/payments/ogone_legacy/OgoneLegacyOptionsForm.js
+++ b/src/openforms/js/components/admin/form_design/payments/ogone_legacy/OgoneLegacyOptionsForm.js
@@ -11,7 +11,7 @@ import {
import {getChoicesFromSchema} from 'utils/json-schema';
import OptionsConfiguration from '../OptionsConfiguration';
-import {MerchantID} from './fields';
+import {ComTemplate, MerchantID, TitleTemplate} from './fields';
const OgoneLegacyOptionsForm = ({schema, formData, onSubmit}) => {
const validationErrors = useContext(ValidationErrorContext);
@@ -41,6 +41,8 @@ const OgoneLegacyOptionsForm = ({schema, formData, onSubmit}) => {
diff --git a/src/openforms/js/components/admin/form_design/payments/ogone_legacy/fields.js b/src/openforms/js/components/admin/form_design/payments/ogone_legacy/fields.js
index 785817854b..492f3ae24f 100644
--- a/src/openforms/js/components/admin/form_design/payments/ogone_legacy/fields.js
+++ b/src/openforms/js/components/admin/form_design/payments/ogone_legacy/fields.js
@@ -1,8 +1,10 @@
+import {useField} from 'formik';
import PropTypes from 'prop-types';
import {FormattedMessage} from 'react-intl';
import Field from 'components/admin/forms/Field';
import FormRow from 'components/admin/forms/FormRow';
+import {TextInput} from 'components/admin/forms/Inputs';
import ReactSelect from 'components/admin/forms/ReactSelect';
export const MerchantID = ({options}) => (
@@ -21,6 +23,7 @@ export const MerchantID = ({options}) => (
defaultMessage="Which merchant should be used for payments related to this form."
/>
}
+ required
>
@@ -35,3 +38,73 @@ MerchantID.propTypes = {
})
).isRequired,
};
+
+export const TitleTemplate = () => {
+ const [fieldProps] = useField('titleTemplate');
+ return (
+
+
+ }
+ helpText={
+
+ You can use all form variables (using their keys) and the public_reference
+ template variable. If unspecified, a default description is used.`}
+ values={{
+ br: () => ,
+ code: chunks => {chunks},
+ }}
+ />
+ }
+ >
+
+
+
+ );
+};
+
+TitleTemplate.propTypes = {};
+
+export const ComTemplate = () => {
+ const [fieldProps] = useField('comTemplate');
+ return (
+
+
+ }
+ helpText={
+
+ You can use all form variables (using their keys) and the public_reference
+ template variable. If unspecified, a default description is used.
+ Note: the length of the result is capped to 100 characters.`}
+ values={{
+ br: () => ,
+ code: chunks => {chunks},
+ strong: chunks => {chunks},
+ }}
+ />
+ }
+ >
+
+
+
+ );
+};
+
+ComTemplate.propTypes = {};
diff --git a/src/openforms/js/lang/en.json b/src/openforms/js/lang/en.json
index cdfe481ba4..b814ef1c8e 100644
--- a/src/openforms/js/lang/en.json
+++ b/src/openforms/js/lang/en.json
@@ -1079,6 +1079,11 @@
"description": "Modal title API call failed with HTTP 401",
"originalDefault": "Authentication failure"
},
+ "JHQfjZ": {
+ "defaultMessage": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used. Note: the length of the result is capped to 100 characters.",
+ "description": "Ogone legacy payment options 'comTemplate' help text",
+ "originalDefault": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used. Note: the length of the result is capped to 100 characters."
+ },
"JKq3TC": {
"defaultMessage": "Medewerker roltype",
"description": "Objects API registration options 'medewerkerRoltype' label",
@@ -1839,6 +1844,11 @@
"description": "Form 'BRP Personen processing header value' field help text",
"originalDefault": "The processing (\"verwerking\") for queries to the BRP Persoon API."
},
+ "ZSvQcR": {
+ "defaultMessage": "TITLE parameter",
+ "description": "Ogone legacy payment options 'titleTemplate' label",
+ "originalDefault": "TITLE parameter"
+ },
"ZdZ2Mb": {
"defaultMessage": "Set the registration backend to use for the submission",
"description": "action type \"set-registration-backend\" label",
@@ -2084,6 +2094,11 @@
"description": "StUF-ZDS registration options 'zdsZaaktypeStatusCode' label",
"originalDefault": "Zds zaaktype status code"
},
+ "eZJFP7": {
+ "defaultMessage": "COM parameter",
+ "description": "Ogone legacy payment options 'comTemplate' label",
+ "originalDefault": "COM parameter"
+ },
"efsF8+": {
"defaultMessage": "{label} {isPublished, select, false {(not published)} other {}}",
"description": "Document type option label",
@@ -2919,6 +2934,11 @@
"description": "Confirmation template help text",
"originalDefault": "The content of the submission confirmation page. It can contain variables that will be templated from the submitted form data. If not specified, the global template will be used."
},
+ "vikURf": {
+ "defaultMessage": "Optional custom template for the title displayed on the payment page. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used.",
+ "description": "Ogone legacy payment options 'titleTemplate' help text",
+ "originalDefault": "Optional custom template for the title displayed on the payment page. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used."
+ },
"vng/5K": {
"defaultMessage": "Set a key name before you can configure this variable",
"description": "JSON editor: object entry has empty key name",
diff --git a/src/openforms/js/lang/nl.json b/src/openforms/js/lang/nl.json
index 3e3c7a6a61..5946b8db68 100644
--- a/src/openforms/js/lang/nl.json
+++ b/src/openforms/js/lang/nl.json
@@ -1088,6 +1088,11 @@
"description": "Modal title API call failed with HTTP 401",
"originalDefault": "Authentication failure"
},
+ "JHQfjZ": {
+ "defaultMessage": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used. Note: the length of the result is capped to 100 characters.",
+ "description": "Ogone legacy payment options 'comTemplate' help text",
+ "originalDefault": "Optional custom template for the the description, included in the payment overviews for the backoffice. Use this to link the payment back to a particular process or form. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used. Note: the length of the result is capped to 100 characters."
+ },
"JKq3TC": {
"defaultMessage": "Medewerkerroltype",
"description": "Objects API registration options 'medewerkerRoltype' label",
@@ -1857,6 +1862,11 @@
"description": "Form 'BRP Personen processing header value' field help text",
"originalDefault": "The processing (\"verwerking\") for queries to the BRP Persoon API."
},
+ "ZSvQcR": {
+ "defaultMessage": "TITLE parameter",
+ "description": "Ogone legacy payment options 'titleTemplate' label",
+ "originalDefault": "TITLE parameter"
+ },
"ZdZ2Mb": {
"defaultMessage": "Zet registratieplugin voor de inzending",
"description": "action type \"set-registration-backend\" label",
@@ -2104,6 +2114,11 @@
"description": "StUF-ZDS registration options 'zdsZaaktypeStatusCode' label",
"originalDefault": "Zds zaaktype status code"
},
+ "eZJFP7": {
+ "defaultMessage": "COM parameter",
+ "description": "Ogone legacy payment options 'comTemplate' label",
+ "originalDefault": "COM parameter"
+ },
"efsF8+": {
"defaultMessage": "{label} {isPublished, select, false {(concept)} other {}}",
"description": "Document type option label",
@@ -2940,6 +2955,11 @@
"description": "Confirmation template help text",
"originalDefault": "The content of the submission confirmation page. It can contain variables that will be templated from the submitted form data. If not specified, the global template will be used."
},
+ "vikURf": {
+ "defaultMessage": "Optional custom template for the title displayed on the payment page. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used.",
+ "description": "Ogone legacy payment options 'titleTemplate' help text",
+ "originalDefault": "Optional custom template for the title displayed on the payment page. You can use all form variables (using their keys) and the public_reference template variable. If unspecified, a default description is used."
+ },
"vng/5K": {
"defaultMessage": "Er moet een sleutelnaam ingesteld worden voordat deze variabele geconfigureerd kan worden",
"description": "JSON editor: object entry has empty key name",