\n {intl.formatMessage({ id: \"global.presentation.onDemandPaymentCreation.text2\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.paymentCreation\" })}\n \n {\". \"}\n {intl.formatMessage({ id: \"global.presentation.onDemandPaymentCreation.text3\" })}\n
\n \n - \n {intl.formatMessage({ id: \"global.presentation.onDemandPaymentCreation.text4\" })}\n
\n - \n {intl.formatMessage({ id: \"global.presentation.onDemandPaymentCreation.text5\" })}\n
\n - \n {intl.formatMessage({ id: \"global.presentation.onDemandPaymentCreation.text6\" })}\n
\n
\n \n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST https://gate.besteron.com/api/payment-intent\nAccept: application/json\nContent-type: application/json\nAuthorization: Bearer \n\n{\n \"totalAmount\": 20,\n \"currencyCode\": \"EUR\",\n \"orderNumber\": \"OBJ01234\",\n \"transactionType\": \"ONDEMAND\",\n \"language\": \"SK\",\n \"paymentMethods\": [\n \"CARD\"\n ],\n \"buyer\": {\n \"email\": \"michael@casey.com\",\n },\n \"items\": [\n {\n \"name\": \"teacup\",\n \"type\": \"ITEM\",\n \"amount\": 20,\n \"count\": 2,\n \"vatRate\": 20,\n \"ean\": \"ITEM0981234\",\n \"productUrl\": \"https://example.com/teacup\"\n },\n ],\n \"callback\": {\n \"returnUrl\": \"https://example.com/return\",\n \"notificationUrl\": \"https://example.com/notification\",\n \"recurringUrl\": \"https://example.com/recurring\"\n }\n}`}\n \n \n \n \n {`{\n \"redirectUrl\": \"https://gate.besteron.com/widget?sh=PujHTfdjbh5jedh7jkeE\",\n \"transactionId\": \"c027395e-71cb-464b-8af3-11838787e9fb\",\n \"onDemandTransactionId\": \"d087345g-73cx-414b-8hf3-94638787e9qw\"\n}`}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getPassiveAuthImgByLanguageAndTheme } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function PassiveOnDemandAuthentication(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const language = useSelector((state) => state.language.language);\n const intl = useIntl();\n const epUrl = \"https://passive.besteron.com\";\n const copyToClipboard = (value) => {\n navigator.clipboard.writeText(value);\n\n notification.success({\n placement: \"bottomRight\",\n message: intl.formatMessage({ id: \"global.presentation.copied\" }),\n });\n };\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestHeader = [\n {\n name: 'Accept',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Content-type',\n type: 'string',\n required: true,\n example: 'application/x-www-form-urlencoded',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/x-www-form-urlencoded`,\n }\n ]\n\n const requestBody = [\n {\n name: 'grant_type',\n type: 'string',\n required: true,\n example: 'client_credentials',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} client_credentials`,\n },\n {\n name: 'client_id',\n type: 'string',\n required: true,\n example: '1234567890',\n note: 'CID',\n },\n {\n name: 'client_secret',\n type: 'string',\n required: true,\n example: 'abcdef1234567890',\n note: 'API Key',\n }\n ]\n\n const responseBody = [\n {\n name: 'token_type',\n type: 'string',\n required: true,\n example: 'bearer',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} bearer`,\n },\n {\n name: 'access_token',\n type: 'string',\n required: true,\n example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw',\n note: '-',\n },\n {\n name: 'expires_in',\n type: 'int',\n required: true,\n example: '600',\n note: '-',\n },\n {\n name: 'grant_type',\n type: 'string',\n required: true,\n example: 'client_credentials',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} client_credentials`,\n }\n ]\n\n return (\n \n
\n
\n \n \n {intl.formatMessage({ id: \"global.presentation.authentication\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.passiveAuthentication.text1\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.passiveAuthentication.text2\" })}\n \n
\n \n
\n
\n
\n {getPassiveAuthImgByLanguageAndTheme(language, theme)?.img}\n
\n
\n
\n
\n \n {intl.formatMessage({ id: \"global.presentation.passiveAuthentication.getAccessToken\" })}\n \n \n POST\n \n {epUrl}/api/oauth2/token\n \n copyToClipboard(`${epUrl}/api/oauth2/token`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.passiveAuthentication.text3\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST ${epUrl}/api/oauth2/token\nAccept: application/json\nContent-type: application/x-www-form-urlencoded\n \ngrant_type=client_credentials\n&client_id=\n&client_secret=`}\n \n \n \n \n {`{\n \"token_type\": \"bearer\",\n \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw\",\n \"expires_in\": 600,\n \"grant_type\": \"client_credentials\"\n}`}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link, Route } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getIntegrionInfoByLanguage } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function PassiveOnDemandInformation(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const language = useSelector((state) => state.language.language);\n const epUrl = \"https://passive.besteron.com\";\n const intl = useIntl();\n const copyToClipboard = (value) => {\n navigator.clipboard.writeText(value);\n\n notification.success({\n placement: \"bottomRight\",\n message: intl.formatMessage({ id: \"global.presentation.copied\" }),\n });\n };\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestHeader = [\n {\n name: 'Accept',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Content-type',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Authorization',\n type: 'string',\n required: true,\n example: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} Bearer `,\n }\n ]\n\n const requestBody = [\n {\n name: '-',\n type: 'List',\n required: true,\n example: '[\"5s3ec6fe-2f15-47b8-88aa-4a08b2egb8dd\", \"7s3ef6fe-6f15-47b8-98aa-4a08b2ggb8dd\"]',\n note: `${intl.formatMessage({ id: \"global.presentation.transactionIdList\" })}`,\n }\n ]\n\n const responseBody = [\n {\n name: 'onDemandTransaction',\n type: <>\n \n onDemandTransaction\n \n >,\n required: true,\n example: '-',\n note: <>\n {intl.formatMessage({ id: \"global.presentation.object.description\" })}{\": \"}\n \n OnDemandTransaction\n \n >\n }\n ]\n\n const responseBody2 = [\n {\n name: 'onDemandTransactions',\n type: <>\n {`List<`}\n \n onDemandTransaction\n \n {`>`}\n >,\n required: true,\n example: '-',\n note: <>\n {intl.formatMessage({ id: \"global.presentation.object.description\" })}{\": \"}\n \n OnDemandTransaction\n \n >\n }\n ]\n\n return (\n \n
\n
\n \n \n {intl.formatMessage({ id: \"global.presentation.obtainingOnDemandInformation\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.passiveOnDemandInformation.text1\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.authentication\" })}\n \n
\n \n
\n
\n
\n \n {intl.formatMessage({ id: \"global.presentation.paymentOnDemandInformation\" })}\n \n \n POST\n \n {epUrl}/api/payment-intents/on-demand/{``}\n \n copyToClipboard(`${epUrl}/api/payment-intents/on-demand`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.passiveOnDemandInformation.text2\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST https://passive.besteron.com/api/payment-intents/on-demand/\nAccept: application/json\nContent-type: application/json\nAuthorization: Bearer `}\n \n \n \n \n {`{\n \"onDemandTransaction\": {\n \"transactionId\": \"39e1d961-32bd-4bna-8ef0-e7569d0a31a5\",\n \"createdAt\": \"2023-07-03T16:24:45.18615Z\",\n \"updatedAt\": \"2023-07-03T16:24:45.186226Z\"\n \"status\": \"Created\",\n \"onDemandTransactions\": [\n \"c9b906ba-9255-4332-9e6b-63dfd97232f0\"\n ]\n }\n}`}\n \n \n \n
\n
\n \n \n \n \n
\n \n {intl.formatMessage({ id: \"global.presentation.paymentsOnDemandInformation\" })}\n \n \n POST\n \n {epUrl}/api/payment-intents/on-demand\n \n copyToClipboard(`${epUrl}/api/payment-intents/on-demand`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.passiveOnDemandInformation.text6\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST https://passive.besteron.com/api/payment-intents/on-demand\nAccept: application/json\nContent-type: application/json\nAuthorization: Bearer \n\n[\n \"39f1d961-31bd-4bba-9ef0-e4569d0c31a5\",\n \"0c19d4d1-cf4f-4ea3-bf22-f43d8a78fe34\",\n]\n\n`}\n \n \n \n \n {`{\n \"onDemandTransactions\": [\n {\n \"transactionId\": \"9f1d961-31bd-4bba-9ef0-e4569d0c31a5\",\n \"createdAt\": \"2023-07-03T16:24:45.18615Z\",\n \"updatedAt\": \"2023-07-03T16:24:45.186226Z\"\n \"status\": \"Created\",\n \"onDemandTransactions\": [\n \"c9b406ba-9267-4992-9e9b-63dfd17232f0\"\n ]\n },\n {\n \"transactionId\": \"0c19d4d1-cf4f-4ea3-bf22-f43d8a78fe34\",\n \"createdAt\": \"2023-07-03T16:25:12.092138Z\",\n \"updatedAt\": \"2023-07-03T16:25:12.092138Z\"\n \"status\": \"InProgress\",\n \"onDemandTransactions\": [\n \"f1398ce7-66d0-4c59-b32e-49eae6118e5a\"\n ]\n }\n ]\n}`}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link, Route } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getIntegrionInfoByLanguage } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function OnDemandInvoke(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const language = useSelector((state) => state.language.language);\n const epUrl = \"https://active.besteron.com\";\n const intl = useIntl();\n const copyToClipboard = (value) => {\n navigator.clipboard.writeText(value);\n\n notification.success({\n placement: \"bottomRight\",\n message: intl.formatMessage({ id: \"global.presentation.copied\" }),\n });\n };\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.restriction\" }),\n dataIndex: 'restriction',\n className: styles['col-restriction']\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const responseColumns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestHeader = [\n {\n name: 'Accept',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Content-type',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Authorization',\n type: 'string',\n required: true,\n example: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} Bearer `,\n }\n ]\n\n const requestBody = [\n {\n name: 'transactionId',\n type: 'string',\n required: true,\n example: '5s3ec6fe-2f15-47b8-88aa-4a08b2egb8dd',\n note: `${intl.formatMessage({ id: \"global.presentation.onDemand.transactionId\" })}`,\n },\n {\n name: 'amount',\n type: 'decimal',\n required: true,\n restriction: `Min: 0.01, Max: 999999999.99`,\n example: '1.00',\n note: `${intl.formatMessage({ id: \"global.presentation.amount\" })}`,\n },\n {\n name: 'orderNumber',\n type: 'string',\n required: false,\n restriction: `Min: 1, Max: 128, ${intl.formatMessage({\n id: \"global.presentation.alphabeticNumeric\",\n })}`,\n example: 'OBJ12345',\n note: `${intl.formatMessage({ id: \"global.presentation.paymentIntentCreation.orderNumber\" })}`,\n },\n {\n name: \"items\",\n type: (\n <>\n {\"List<\"}\n \n item\n \n {\">\"}\n >\n ),\n required: false,\n restriction: `Min: 1`,\n example: \"-\",\n note: (\n <>\n {intl.formatMessage({ id: \"global.presentation.paymentIntentCreation.items\" })}\n >\n ),\n },\n {\n name: \"additionalParams\",\n type: (\n <>\n {\"List<\"}\n \n additionalParam\n \n {\">\"}\n >\n ),\n required: false,\n example: \"-\",\n note: (\n <>\n {intl.formatMessage({ id: \"global.presentation.additionalParam\" })}\n {\". \"}\n {intl.formatMessage({ id: \"global.presentation.object.description\" })}\n {\": \"}\n \n AdditionalParam\n \n >\n ),\n },\n ]\n\n const responseBody = [\n {\n name: 'transactionId',\n type: 'guid',\n required: true,\n example: 'c027395e-71cb-464b-8af3-11838787e9fb',\n note: '-',\n },\n ]\n\n return (\n \n
\n
\n \n \n {intl.formatMessage({ id: \"global.presentation.invoke\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.onDemand.invoke.text1\" })}\n \n
\n \n
\n
\n
\n \n {intl.formatMessage({ id: \"global.presentation.invoke\" })}\n \n \n POST\n \n {epUrl}{\"/api/payment-intents/on-demand/invoke\"}\n \n copyToClipboard(`${epUrl}/api/payment-intents/on-demand/invoke`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.onDemand.invoke.text2\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.authentication\" })}\n \n {\" \"}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST ${epUrl}/api/payment-intents/on-demand/invoke\nAccept: application/json\nContent-type: application/json\nAuthorization: Bearer \n\n{\n \"transactionId\": \"5s3ec6fe-2f15-47b8-88aa-4a08b2egb8dd\",\n \"amount\": 1.00,\n \"orderNumber\": \"OBJ01234\",\n \"items\": [\n {\n \"name\": \"teacup\",\n \"type\": \"ITEM\",\n \"amount\": 20,\n \"count\": 2,\n \"vatRate\": 20,\n \"ean\": \"ITEM0981234\",\n \"productUrl\": \"https://example.com/teacup\"\n },\n {\n \"name\": \"fruit tea\",\n \"type\": \"ITEM\",\n \"amount\": 40,\n \"count\": 1,\n \"vatRate\": 20,\n \"ean\": \"ITEM7897\",\n \"productUrl\": \"https://example.com/fruittea\"\n }\n ],\n \"additionalParams\": [\n {\n \"name\": \"invoicenumber\",\n \"value\": \"2022112\"\n }\n ]\n }`}\n \n \n \n \n {`{\n \"transactionId\": \"c027395e-71cb-464b-8af3-11838787e9fb\"\n}`}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link, Route } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getIntegrionInfoByLanguage } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function OnDemandCancel(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const language = useSelector((state) => state.language.language);\n const epUrl = \"https://active.besteron.com\";\n const intl = useIntl();\n const copyToClipboard = (value) => {\n navigator.clipboard.writeText(value);\n\n notification.success({\n placement: \"bottomRight\",\n message: intl.formatMessage({ id: \"global.presentation.copied\" }),\n });\n };\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.restriction\" }),\n dataIndex: 'restriction',\n className: styles['col-restriction']\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const responseColumns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestHeader = [\n {\n name: 'Accept',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Content-type',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Authorization',\n type: 'string',\n required: true,\n example: 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} Bearer `,\n }\n ]\n\n const requestBody = []\n\n const responseBody = []\n\n return (\n \n
\n
\n \n \n {intl.formatMessage({ id: \"global.presentation.cancel\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.onDemand.cancel.text1\" })}\n \n
\n \n
\n
\n
\n \n {intl.formatMessage({ id: \"global.presentation.cancel\" })}\n \n \n POST\n \n {epUrl}{\"/api/payment-intents/on-demand/cancel/{transactionId}\"}\n \n copyToClipboard(`${epUrl}/api/payment-intents/on-demand/cancel/{transactionId}`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.onDemand.cancel.text2\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.authentication\" })}\n \n {\" \"}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST ${epUrl}/api/payment-intents/on-demand/cancel/5s3ec6fe-2f15-47b8-88aa-4a08b2egb8dd\nAccept: application/json\nContent-type: application/json\nAuthorization: Bearer `}\n \n \n \n \n {}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getPassiveAuthImgByLanguageAndTheme } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function OnDemandActiveAuthentication(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const language = useSelector((state) => state.language.language);\n const intl = useIntl();\n const epUrl = \"https://active.besteron.com\";\n const copyToClipboard = (value) => {\n navigator.clipboard.writeText(value);\n\n notification.success({\n placement: \"bottomRight\",\n message: intl.formatMessage({ id: \"global.presentation.copied\" }),\n });\n };\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestHeader = [\n {\n name: 'Accept',\n type: 'string',\n required: true,\n example: 'application/json',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/json`,\n },\n {\n name: 'Content-type',\n type: 'string',\n required: true,\n example: 'application/x-www-form-urlencoded',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} application/x-www-form-urlencoded`,\n }\n ]\n\n const requestBody = [\n {\n name: 'grant_type',\n type: 'string',\n required: true,\n example: 'client_credentials',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} client_credentials`,\n },\n {\n name: 'client_id',\n type: 'string',\n required: true,\n example: '1234567890',\n note: 'CID',\n },\n {\n name: 'client_secret',\n type: 'string',\n required: true,\n example: 'abcdef1234567890',\n note: 'API Key',\n }\n ]\n\n const responseBody = [\n {\n name: 'token_type',\n type: 'string',\n required: true,\n example: 'bearer',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} bearer`,\n },\n {\n name: 'access_token',\n type: 'string',\n required: true,\n example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw',\n note: '-',\n },\n {\n name: 'expires_in',\n type: 'int',\n required: true,\n example: '600',\n note: '-',\n },\n {\n name: 'grant_type',\n type: 'string',\n required: true,\n example: 'client_credentials',\n note: `${intl.formatMessage({ id: \"global.presentation.only\" })} client_credentials`,\n }\n ]\n\n return (\n \n
\n
\n \n \n {intl.formatMessage({ id: \"global.presentation.authentication\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.refundAuthentication.text1\" })}\n \n \n {intl.formatMessage({ id: \"global.presentation.refundAuthentication.text2\" })}\n \n
\n \n
\n
\n
\n {getPassiveAuthImgByLanguageAndTheme(language, theme)?.img}\n
\n
\n
\n
\n \n {intl.formatMessage({ id: \"global.presentation.refundAuthentication.getAccessToken\" })}\n \n \n POST\n \n {epUrl}/api/oauth2/token\n \n copyToClipboard(`${epUrl}/api/oauth2/token`)} />\n \n \n
\n {intl.formatMessage({ id: \"global.presentation.refundAuthentication.text3\" })}\n
\n {intl.formatMessage({ id: \"global.presentation.request\" })}\n \n
\n
intl.formatMessage({ id: \"global.presentation.header\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n {`${intl.formatMessage({ id: \"global.presentation.response\" })} (200 - OK)`}\n \n \n
intl.formatMessage({ id: \"global.presentation.body\" })}\n pagination={false}\n rowKey={\"name\"}\n scroll={{ x: 'max-content' }}\n />\n \n \n \n
\n
\n \n \n {`POST ${epUrl}/api/oauth2/token\nAccept: application/json\nContent-type: application/x-www-form-urlencoded\n \ngrant_type=client_credentials\n&client_id=\n&client_secret=`}\n \n \n \n \n {`{\n \"token_type\": \"bearer\",\n \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiQmVzdGVyb24ifQ.Bnz2ha8ctC-NXe0x16_lRCbArwk3DI0mCJwCxIRGcDw\",\n \"expires_in\": 600,\n \"grant_type\": \"client_credentials\"\n}`}\n \n \n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table, Tag, notification, Tabs, Divider, Checkbox } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport {\n RightOutlined,\n LeftOutlined,\n CopyOutlined\n} from \"@ant-design/icons\";\nimport SyntaxHighlighter from 'react-syntax-highlighter';\nimport { a11yLight, a11yDark } from 'react-syntax-highlighter/dist/esm/styles/hljs';\n\nimport styles from \"./index.module.scss\";\n\nimport { Link, Route } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\nimport { getIntegrionInfoByLanguage } from \"../../../enums/ImageByLanguageEnum\";\n\nexport default function OnDemandTransaction(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const intl = useIntl();\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.name\" }),\n dataIndex: 'name',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.type\" }),\n dataIndex: 'type',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.required\" }),\n dataIndex: 'required',\n render: (required, record) => {\n return ;\n },\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.restriction\" }),\n dataIndex: 'restriction',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.example\" }),\n dataIndex: 'example',\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.note\" }),\n dataIndex: 'note',\n },\n ];\n\n const requestBody = [\n {\n name: 'transactionId',\n type: 'string',\n required: true,\n restriction: `-`,\n example: '5s3ec6fe-2f15-47b8-88aa-4a08b2egb8dd',\n note: `${intl.formatMessage({ id: \"global.presentation.transactionId\" })}`,\n },\n {\n name: 'createdAt',\n type: 'string',\n required: true,\n restriction: `-`,\n example: '2022-01-01T05:15:55.646792Z',\n note: `${intl.formatMessage({ id: \"global.presentation.createdAt\" })}`,\n },\n {\n name: 'updatedAt',\n type: 'string',\n required: true,\n restriction: `-`,\n example: '2022-01-01T05:15:55.646792Z',\n note: `${intl.formatMessage({ id: \"global.presentation.updatedAt\" })}`,\n },\n {\n name: 'status',\n type: 'string',\n required: true,\n restriction: `-`,\n example: 'Created',\n note: <>\n {intl.formatMessage({ id: \"global.presentation.status\" })}{\". \"}\n {intl.formatMessage({ id: \"global.presentation.enumeration\" })}{\": \"}\n \n Status\n \n >\n },\n {\n name: 'onDemandTransactions',\n type: 'List',\n required: true,\n restriction: `-`,\n example: '[\"c3b406aa-9812-4992-9e6b-63dfd97232f0\", \"c2b406aa-9412-4992-9e6b-63dfd97232f0\"]',\n note: <>\n {intl.formatMessage({ id: \"global.presentation.onDemandTransaction.onDemandTransactions\" })}{\": \"}\n \n {intl.formatMessage({\n id: \"global.presentation.obtainingInformation\",\n })}\n \n >\n }\n ]\n\n return (\n \n
\n
\n \n \n OnDemandTransaction\n \n \n {intl.formatMessage({ id: \"global.presentation.onDemandTransaction.text1\" })}\n \n
\n \n
\n
\n
\n \n \n \n \n \n \n \n \n
\n
\n );\n}","import React from \"react\";\nimport { useSelector } from \"react-redux\";\nimport { Space, Typography, Button, Table } from \"antd\";\nimport { useIntl } from \"react-intl\";\nimport { RightOutlined, LeftOutlined } from \"@ant-design/icons\";\n\nimport styles from \"./index.module.scss\";\n\nimport { Link } from \"react-router-dom\";\nimport { RouterEnum } from \"../../../enums/RouterEnum\";\n\nexport default function OnDemandStatus(props) {\n const theme = useSelector((state) => state.userSettings.theme);\n const intl = useIntl();\n\n const columns = [\n {\n title: intl.formatMessage({ id: \"global.presentation.value\" }),\n dataIndex: \"value\",\n width: \"50%\",\n },\n {\n title: intl.formatMessage({ id: \"global.presentation.description\" }),\n dataIndex: \"description\",\n width: \"50%\",\n },\n ];\n\n const data = [\n {\n value: \"Created\",\n description: intl.formatMessage({ id: \"global.presentation.created\" }),\n },\n {\n value: \"WaitingForConfirmation\",\n description: intl.formatMessage({\n id: \"global.presentation.waitingForConfirmation\",\n }),\n },\n {\n value: \"InProgress\",\n description: intl.formatMessage({ id: \"global.presentation.inProgress\" }),\n },\n {\n value: \"Completed\",\n description: intl.formatMessage({ id: \"global.presentation.completed\" }),\n },\n {\n value: \"ManualAttentionRequired\",\n description: intl.formatMessage({\n id: \"global.presentation.manualAttentionRequired\",\n }),\n },\n {\n value: \"Invalid\",\n description: intl.formatMessage({ id: \"global.presentation.invalid\" }),\n },\n {\n value: \"Canceled\",\n description: intl.formatMessage({ id: \"global.presentation.canceled\" }),\n },\n {\n value: \"Timeouted\",\n description: intl.formatMessage({ id: \"global.presentation.timeouted\" }),\n },\n {\n value: \"Error\",\n description: intl.formatMessage({ id: \"global.presentation.error\" }),\n },\n ];\n\n return (\n \n
\n
\n \n OnDemand status\n
\n \n
\n
\n
\n \n \n \n \n \n
\n
\n );\n}\n","import React from \"react\";\nimport { Route, Switch } from \"react-router\";\nimport { RouterEnum } from \"../enums/RouterEnum\";\nimport VoidPaymentIntentCreation from \"../pages/presentation/VoidPaymentIntentCreation\";\nimport Void from \"../pages/presentation/Void\";\nimport VoidCompletionType from \"../pages/presentation/VoidCompletionType\";\nimport VoidActiveAuthentication from \"../pages/presentation/VoidActiveAuthentication\";\nimport VoidCapture from \"../pages/presentation/VoidCapture\";\nimport VoidCancel from \"../pages/presentation/VoidCancel\";\nimport OnDemandPaymentIntentCreation from \"../pages/presentation/OnDemandPaymentIntentCreation\";\nimport PassiveOnDemandAuthentication from \"../pages/presentation/PassiveOnDemandAuthentication\";\nimport PassiveOnDemandInformation from \"../pages/presentation/PassiveOnDemandInformation\";\nimport OnDemandInvoke from \"../pages/presentation/OnDemandInvoke\";\nimport OnDemandCancel from \"../pages/presentation/OnDemandCancel\";\nimport OnDemandActiveAuthentication from \"../pages/presentation/OnDemandActiveAuthentication\";\nimport OnDemandTransaction from \"../pages/presentation/OnDemandTransaction\";\nimport OnDemandStatus from \"../pages/presentation/OnDemandStatus\";\n\n// import ProtectedRoute from \"./ProtectedRoute\";\n\nconst Introduction = React.lazy(() => import(\"../pages/presentation/Introduction\"));\nconst Security = React.lazy(() => import(\"../pages/presentation/Security\"));\nconst Authentication = React.lazy(() => import(\"../pages/presentation/Authentication\"));\nconst PaymentIntentCreation = React.lazy(() => import(\"../pages/presentation/PaymentIntentCreation\"));\nconst PaymentIntent = React.lazy(() => import(\"../pages/presentation/PaymentIntent\"));\nconst PaymentMethod = React.lazy(() => import(\"../pages/presentation/PaymentMethod\"));\nconst Item = React.lazy(() => import(\"../pages/presentation/Item\"));\nconst ItemType = React.lazy(() => import(\"../pages/presentation/ItemType\"));\nconst Callback = React.lazy(() => import(\"../pages/presentation/Callback\"));\nconst RefundRequestCallback = React.lazy(() => import(\"../pages/presentation/RefundRequestCallback\"));\nconst Buyer = React.lazy(() => import(\"../pages/presentation/Buyer\"));\nconst Billing = React.lazy(() => import(\"../pages/presentation/Billing\"));\nconst Delivery = React.lazy(() => import(\"../pages/presentation/Delivery\"));\nconst Recipient = React.lazy(() => import(\"../pages/presentation/Recipient\"));\nconst PassiveAuthentication = React.lazy(() => import(\"../pages/presentation/PassiveAuthentication\"));\nconst PassiveInformation = React.lazy(() => import(\"../pages/presentation/PassiveInformation\"));\nconst Transaction = React.lazy(() => import(\"../pages/presentation/Transaction\"));\nconst RefundTransactionResponse = React.lazy(() => import(\"../pages/presentation/RefundTransactionResponse\"));\nconst Status = React.lazy(() => import(\"../pages/presentation/Status\"));\nconst RefundStatus = React.lazy(() => import(\"../pages/presentation/RefundStatus\"));\nconst AdditionalParam = React.lazy(() => import(\"../pages/presentation/AdditionalParam\"));\nconst NotFound = React.lazy(() => import(\"../pages/presentation/NotFound\"));\nconst RefundAuthentication = React.lazy(() => import(\"../pages/presentation/RefundAuthentication\"));\nconst RefundRequest = React.lazy(() => import(\"../pages/presentation/RefundRequest\"));\nconst ResponseCode = React.lazy(() => import(\"../pages/presentation/ResponseCode\"));\nconst DisplayRedirect = React.lazy(() => import(\"../pages/presentation/DisplayRedirect\"));\nconst Language = React.lazy(() => import(\"../pages/presentation/Language\"));\nconst PassiveRefundAuthentication = React.lazy(() => import(\"../pages/presentation/PassiveRefundAuthentication\"));\nconst PassiveRefundInformation = React.lazy(() => import(\"../pages/presentation/PassiveRefundInformation\"));\nconst RefundTransaction = React.lazy(() => import(\"../pages/presentation/RefundTransaction\"));\nconst RecurringPaymentIntentCreation = React.lazy(() => import(\"../pages/presentation/RecurringPaymentIntentCreation\"));\nconst Recurring = React.lazy(() => import(\"../pages/presentation/Recurring\"));\nconst RecurringCycle = React.lazy(() => import(\"../pages/presentation/RecurringCycle\"));\nconst PassiveRecurringAuthentication = React.lazy(() => import(\"../pages/presentation/PassiveRecurringAuthentication\"));\nconst PassiveRecurringInformation = React.lazy(() => import(\"../pages/presentation/PassiveRecurringInformation\"));\nconst RecurringTransaction = React.lazy(() => import(\"../pages/presentation/RecurringTransaction\"));\nconst RecurringStatus = React.lazy(() => import(\"../pages/presentation/RecurringStatus\"));\nconst CancelRecurringAuthentication = React.lazy(() => import(\"../pages/presentation/CancelRecurringAuthentication\"));\nconst CancelRecurringRequest = React.lazy(() => import(\"../pages/presentation/CancelRecurringRequest\"));\nconst Setting = React.lazy(() => import(\"../pages/presentation/Setting\"));\n\nconst PassiveCardDataAuthentication = React.lazy(() => import(\"../pages/presentation/PassiveCardDataAuthentication\"));\nconst PassiveCardDataInformation = React.lazy(() => import(\"../pages/presentation/PassiveCardDataInformation\"));\nconst PassiveBankDataAuthentication = React.lazy(() => import(\"../pages/presentation/PassiveBankDataAuthentication\"));\nconst PassiveBankDataInformation = React.lazy(() => import(\"../pages/presentation/PassiveBankDataInformation\"));\n\nconst CardDataObject = React.lazy(() => import(\"../pages/presentation/CardDataObject\"));\nconst BankDataObject = React.lazy(() => import(\"../pages/presentation/BankDataObject\"));\n\n\nfunction Routers(props) {\n const presentationRouter = () => {\n return (\n \n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n }\n />\n } />\n \n );\n };\n\n return presentationRouter();\n}\n\nexport default Routers;\n","export default __webpack_public_path__ + \"static/media/spinner.a7dab33f.svg\";","export default __webpack_public_path__ + \"static/media/spinner-logo.c6031714.svg\";","import React from \"react\";\n\nimport styles from \"./Spinner.module.scss\";\n\nimport SpinnerImg from \"../../assets/presentation/images/spinner.svg\";\nimport SpinnerLogoImg from \"../../assets/presentation/images/spinner-logo.svg\";\n\nfunction Spinner(props) {\n return (\n \n

\n

\n
\n );\n}\n\nexport default Spinner;","import React from \"react\";\nimport { useIntl } from \"react-intl\";\n\nimport styles from \"./Loader.module.scss\";\n\nimport Spinner from \"./Spinner\";\nimport { Typography } from \"antd\";\n\nfunction Loader(props) {\n const intl = useIntl();\n\n return (\n \n
\n \n \n {intl.formatMessage({ id: \"global.presentation.loader.title\" })}\n \n
\n
\n );\n}\n\n\nexport default Loader;","import React, { Suspense, useEffect } from 'react';\nimport { useSelector } from \"react-redux\";\nimport { useHistory, useLocation } from \"react-router-dom\";\nimport { IntlProvider } from \"react-intl\";\nimport { getLocaleByShortcut } from \"./utils/antdLocale.jsx\";\nimport { ConfigProvider } from \"antd\";\nimport { ThemeSwitcherProvider } from \"react-css-theme-switcher\";\n\nimport Routers from './components/Routers';\nimport global from \"./translations/global.json\";\nimport presenationGlobal from \"./translations/presentation/global.json\";\nimport Loader from './components/presentation/Loader';\n\nconst PresentationLayout = React.lazy(() => import(\"./components/presentation/PresentationLayout\"));\nconst Themes = {\n light: `${process.env.PUBLIC_URL}/css/antd.css`,\n dark: `${process.env.PUBLIC_URL}/css/antd.dark.css`,\n};\n\nfunction App(props) {\n const language = useSelector((state) => state.language.language);\n const theme = useSelector((state) => state.userSettings.theme);\n const history = useHistory();\n const location = useLocation();\n\n let combinedTranslation = {\n \"en\": {\n ...global[\"en\"],\n ...presenationGlobal[\"en\"]\n },\n \"sk\": {\n ...global[\"sk\"],\n ...presenationGlobal[\"sk\"],\n },\n // \"cz\": {\n // ...global[\"cz\"],\n // ...presenationGlobal[\"cz\"],\n // },\n // \"hu\": {\n // ...global[\"hu\"],\n // ...presenationGlobal[\"hu\"],\n // },\n // \"pl\": {\n // ...global[\"pl\"],\n // ...presenationGlobal[\"pl\"],\n // },\n // \"ro\": {\n // ...global[\"ro\"],\n // ...presenationGlobal[\"ro\"],\n // },\n // \"de\": {\n // ...global[\"de\"],\n // ...presenationGlobal[\"de\"],\n // }\n }\n\n useEffect(() => {\n if (location.pathname.includes(\"www\"))\n history.push(location.pathname.replace(\"www.\", \"\"));\n }, []);\n\n return (\n \n \n \n }>\n \n \n \n }>\n \n \n \n \n \n \n \n );\n}\n\nexport default App;\n","import skSk from \"antd/lib/locale/sk_SK\";\nimport enUs from \"antd/lib/locale/en_US\";\n\nexport const getLocaleByShortcut = shortcut => {\n return shortcut === \"sk\" ? skSk : enUs;\n};\n","import { createReducer } from \"redux-act\";\nimport * as action from \"../actions/languageAction\";\n\nconst initialState = {\n language: localStorage.getItem(\"language\") ? localStorage.getItem(\"language\") : \"sk\"\n};\n\nconst languageReducer = createReducer(\n {\n [action.changeLanguage]: (state, payload) => {\n return {\n ...state,\n language: payload\n };\n }\n },\n initialState\n);\n\nexport default languageReducer;\n","import { createReducer } from \"redux-act\";\n\nimport * as action from \"../actions/userSettingsAction\";\n\nconst initialState = {\n theme: \"light\",\n};\n\nconst setInitialState = () => {\n let localStorageTheme = localStorage.getItem(\"theme\");\n\n if (localStorageTheme === \"light\" || localStorageTheme === \"dark\")\n initialState.theme = localStorageTheme;\n\n return initialState;\n};\n\nconst userSettingsReducer = createReducer(\n {\n [action.changeTheme]: (state, payload) => {\n return {\n ...state,\n theme: payload,\n };\n },\n },\n setInitialState()\n);\n\nexport default userSettingsReducer;\n","import language from \"./languageReducer\";\nimport userSettings from \"./userSettingsReducer\";\n\nexport default {\n language,\n userSettings\n};","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Provider } from \"react-redux\";\nimport { BrowserRouter } from 'react-router-dom';\nimport * as serviceWorkerRegistration from './serviceWorkerRegistration';\nimport reportWebVitals from './reportWebVitals';\n\nimport App from './App';\n\nimport configureStore from \"./store/configureStore\";\n\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\nconst rootElement = document.getElementById('root');\nconst store = configureStore();\n\nReactDOM.render(\n \n \n \n \n ,\n rootElement);\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://cra.link/PWA\nserviceWorkerRegistration.unregister();\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n","import { composeWithDevTools } from \"redux-devtools-extension\";\nimport { createStore, applyMiddleware, combineReducers } from \"redux\";\n\nimport reducers from \"./reducers\";\n// import middleware from './middleware';\n\nexport default function configureStore() {\n const rootReducer = combineReducers({\n ...reducers\n });\n\n return createStore(\n rootReducer,\n // composeWithDevTools(applyMiddleware(...middleware))\n composeWithDevTools(applyMiddleware())\n );\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"VoidCapture_main___76Ly\",\"section\":\"VoidCapture_section__MaJLe\",\"dark-mode\":\"VoidCapture_dark-mode__1B7oP\",\"center\":\"VoidCapture_center__lD-9S\",\"full-width\":\"VoidCapture_full-width__2nvoC\",\"api-section\":\"VoidCapture_api-section__2mnvK\",\"left\":\"VoidCapture_left__hXjay\",\"right\":\"VoidCapture_right__17HSh\",\"table\":\"VoidCapture_table__zbdfH\",\"sticky\":\"VoidCapture_sticky__12t8R\",\"col-restriction\":\"VoidCapture_col-restriction__1yaAt\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"VoidCancel_main__2Y9_j\",\"section\":\"VoidCancel_section__3STTt\",\"dark-mode\":\"VoidCancel_dark-mode__3QD3d\",\"center\":\"VoidCancel_center__1qlE-\",\"full-width\":\"VoidCancel_full-width__2tJdM\",\"api-section\":\"VoidCancel_api-section__1Fp7R\",\"left\":\"VoidCancel_left__1UwJk\",\"right\":\"VoidCancel_right__3Z0sv\",\"table\":\"VoidCancel_table__3Y6u8\",\"sticky\":\"VoidCancel_sticky__2lXkM\",\"col-restriction\":\"VoidCancel_col-restriction__3Tl4E\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"OnDemandInvoke_main__32v4s\",\"section\":\"OnDemandInvoke_section__w4_oJ\",\"dark-mode\":\"OnDemandInvoke_dark-mode__3j_yo\",\"center\":\"OnDemandInvoke_center__3YoiN\",\"full-width\":\"OnDemandInvoke_full-width__1ZDVn\",\"api-section\":\"OnDemandInvoke_api-section__3p44K\",\"left\":\"OnDemandInvoke_left__1K0zk\",\"right\":\"OnDemandInvoke_right__1PfV1\",\"table\":\"OnDemandInvoke_table__2nGRY\",\"sticky\":\"OnDemandInvoke_sticky__1V42d\",\"col-restriction\":\"OnDemandInvoke_col-restriction__1qM5t\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"OnDemandCancel_main__3fFDv\",\"section\":\"OnDemandCancel_section__19l7A\",\"dark-mode\":\"OnDemandCancel_dark-mode__2S2j5\",\"center\":\"OnDemandCancel_center__3iDBF\",\"full-width\":\"OnDemandCancel_full-width__1M0E6\",\"api-section\":\"OnDemandCancel_api-section__36U-1\",\"left\":\"OnDemandCancel_left__1mjR2\",\"right\":\"OnDemandCancel_right__Wjikg\",\"table\":\"OnDemandCancel_table__2mvkf\",\"sticky\":\"OnDemandCancel_sticky__2O8Cp\",\"col-restriction\":\"OnDemandCancel_col-restriction__2v_VB\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"VoidPaymentIntentCreation_main__2SOmC\",\"section\":\"VoidPaymentIntentCreation_section__17cKX\",\"dark-mode\":\"VoidPaymentIntentCreation_dark-mode__2uPb1\",\"center\":\"VoidPaymentIntentCreation_center__3HgB7\",\"full-width\":\"VoidPaymentIntentCreation_full-width__2YAX_\",\"api-section\":\"VoidPaymentIntentCreation_api-section__12YRL\",\"left\":\"VoidPaymentIntentCreation_left__1ZFhU\",\"right\":\"VoidPaymentIntentCreation_right__YdXfM\",\"table\":\"VoidPaymentIntentCreation_table__2g-s0\",\"sticky\":\"VoidPaymentIntentCreation_sticky__36QVM\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"OnDemandPaymentIntentCreation_main__Lu8XG\",\"section\":\"OnDemandPaymentIntentCreation_section__2QFtx\",\"dark-mode\":\"OnDemandPaymentIntentCreation_dark-mode__3O8dM\",\"center\":\"OnDemandPaymentIntentCreation_center__d2F7R\",\"full-width\":\"OnDemandPaymentIntentCreation_full-width__3h4SM\",\"api-section\":\"OnDemandPaymentIntentCreation_api-section__8Nold\",\"left\":\"OnDemandPaymentIntentCreation_left__2GDdF\",\"right\":\"OnDemandPaymentIntentCreation_right__2QP9x\",\"table\":\"OnDemandPaymentIntentCreation_table__3ecHM\",\"sticky\":\"OnDemandPaymentIntentCreation_sticky__3CCZp\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"Void_main__2z_IR\",\"section\":\"Void_section__3wKap\",\"dark-mode\":\"Void_dark-mode__RhY1p\",\"center\":\"Void_center__uUXNw\",\"full-width\":\"Void_full-width__3UXhC\",\"api-section\":\"Void_api-section__2ZJ4D\",\"object\":\"Void_object__uQyeX\",\"table\":\"Void_table__vnF95\"};","export const RouterEnum = Object.freeze({\n Introduction: {\n Path: \"/\",\n },\n Security: {\n Path: \"/security\",\n },\n Authentication: {\n Path: \"/authentication\",\n },\n PaymentIntentCreation: {\n Path: \"/payment-intent-creation\",\n },\n RecurringPaymentIntentCreation: {\n Path: \"/recurring-payment-intent-creation\",\n },\n DisplayRedirect: {\n Path: \"/payment-gateway-display/redirect\",\n },\n PaymentIntent: {\n Path: \"/objects/payment-intent\",\n },\n PassiveAuthentication: {\n Path: \"/payment-information/authentication\",\n },\n PassiveInformation: {\n Path: \"/payment-information/information\",\n },\n PassiveRecurringAuthentication: {\n Path: \"/payment-recurring-information/authentication\",\n },\n PassiveRecurringInformation: {\n Path: \"/payment-recurring-information/information\",\n },\n PassiveRefundAuthentication: {\n Path: \"/payment-refund-information/authentication\",\n },\n PassiveRefundInformation: {\n Path: \"/payment-refund-information/information\",\n },\n RefundAuthentication: {\n Path: \"/refund/authentication\",\n },\n RefundRequest: {\n Path: \"/refund/request\",\n },\n CancelRecurringAuthentication: {\n Path: \"/recurring/authentication\",\n },\n CancelRecurringRequest: {\n Path: \"/recurring/request\",\n },\n AdditionalParam: {\n Path: \"/objects/additional-param\",\n },\n Item: {\n Path: \"/objects/item\",\n },\n Callback: {\n Path: \"/objects/callback\",\n },\n RefundRequestCallback: {\n Path: \"/objects/refund-request-callback\",\n },\n Buyer: {\n Path: \"/objects/buyer\",\n },\n Billing: {\n Path: \"/objects/billing\",\n },\n Delivery: {\n Path: \"/objects/delivery\",\n },\n Recipient: {\n Path: \"/objects/recipient\",\n },\n Transaction: {\n Path: \"/objects/transaction\",\n },\n RecurringTransaction: {\n Path: \"/objects/recurring-transaction\",\n },\n Recurring: {\n Path: \"/objects/recurring\",\n },\n RefundTransaction: {\n Path: \"/objects/refund-transaction\",\n },\n RefundTransactionResponse: {\n Path: \"/objects/refund-transaction-response\",\n },\n PaymentMethod: {\n Path: \"/enumerations/payment-method\",\n },\n ItemType: {\n Path: \"/enumerations/item-type\",\n },\n Status: {\n Path: \"/enumerations/status\",\n },\n RefundStatus: {\n Path: \"/enumerations/refund-status\",\n },\n Language: {\n Path: \"/enumerations/language\",\n },\n ResponseCode: {\n Path: \"/enumerations/response-code\",\n },\n RecurringCycle: {\n Path: \"/enumerations/recurring-cycle\",\n },\n RecurringStatus: {\n Path: \"/enumerations/recurring-status\",\n },\n PassiveCardDataAuthentication: {\n Path: \"/payment-card-data-information/authentication\",\n },\n PassiveCardDataInformation: {\n Path: \"/payment-card-data-information/information\",\n },\n PassiveBankDataAuthentication: {\n Path: \"/payment-bank-data-information/authentication\",\n },\n PassiveBankDataInformation: {\n Path: \"/payment-bank-data-information/information\",\n },\n CardDataObject: {\n Path: \"/objects/card-data\",\n },\n BankDataObject: {\n Path: \"/objects/bank-data\",\n },\n VoidPaymentIntentCreation: {\n Path: \"/void-payment-intent-creation\",\n },\n Void: {\n Path: \"/objects/void\",\n },\n VoidCompletionType: {\n Path: \"/enumerations/void-completion-type\",\n },\n VoidAuthentication: {\n Path: \"/void/authentication\",\n },\n VoidCancel: {\n Path: \"/void/cancel\",\n },\n VoidCapture: {\n Path: \"/void/capture\",\n },\n OnDemandPaymentIntentCreation: {\n Path: \"/on-demand-payment-intent-creation\",\n },\n PassiveOnDemandAuthentication: {\n Path: \"/payment-on-demand-information/authentication\",\n },\n PassiveOnDemandInformation: {\n Path: \"/payment-on-demand-information/information\",\n },\n OnDemandTransaction: {\n Path: \"/objects/on-demand-transaction\",\n },\n OnDemandAuthentication: {\n Path: \"/on-demand/authentication\",\n },\n OnDemandCancel: {\n Path: \"/on-demand/cancel\",\n },\n OnDemandInvoke: {\n Path: \"/on-demand/invoke\",\n },\n OnDemandStatus: {\n Path: \"/enumerations/on-demand-status\",\n },\n Setting: {\n Path: \"/objects/setting\",\n },\n});\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"VoidCompletionType_main__pu508\",\"section\":\"VoidCompletionType_section__22rZY\",\"dark-mode\":\"VoidCompletionType_dark-mode__2JD7z\",\"center\":\"VoidCompletionType_center__3VfaS\",\"full-width\":\"VoidCompletionType_full-width__38Say\",\"api-section\":\"VoidCompletionType_api-section__2hhcX\",\"object\":\"VoidCompletionType_object__1EX1t\",\"table\":\"VoidCompletionType_table__2G0mN\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"OnDemandTransaction_main__2gxjv\",\"section\":\"OnDemandTransaction_section__6W_rG\",\"dark-mode\":\"OnDemandTransaction_dark-mode__GQ-9L\",\"center\":\"OnDemandTransaction_center__31O6C\",\"full-width\":\"OnDemandTransaction_full-width__3SGA7\",\"api-section\":\"OnDemandTransaction_api-section__1EZq5\",\"object\":\"OnDemandTransaction_object__3Kxji\",\"table\":\"OnDemandTransaction_table__1rwpx\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"main\":\"OnDemandStatus_main__2Bu8C\",\"section\":\"OnDemandStatus_section__3LZkj\",\"dark-mode\":\"OnDemandStatus_dark-mode__1RMay\",\"center\":\"OnDemandStatus_center__22pxb\",\"full-width\":\"OnDemandStatus_full-width__3yNUU\",\"api-section\":\"OnDemandStatus_api-section__3YzHk\",\"object\":\"OnDemandStatus_object__2gdbq\",\"table\":\"OnDemandStatus_table__4ESdF\"};"],"sourceRoot":""}