# Integration options div div span 3 min div span Merchant Onboarding Team (Marcel K.) ###### This page shows the possible integration options for your respective scenario. Ratepay's Merchant Onboarding team is happy to support you individually to figure out the best solution for your use cases. Please reach out to your Ratepay representative for support. div h2 Choose your integration path div button span → div div script (function () { // ============================ // Configuration // ============================ const URLS = { shopware: '/docs/developer/shop_modules/shopware/overview', magento: '/docs/developer/shop_modules/magento/overview', oxid: '/docs/developer/shop_modules/oxid/overview', paymentApi20: '/docs/developer/api_integration/payment_2.0/payment_api_2.0', hpp: '/docs/developer/hosted_payment_page/introduction', paymentApi18: '/docs/developer/api_integration/payment_1.8/payment_1.8', adyen: '/docs/developer/psps_and_marketplaces/adyen/ratepay_docs', avarda: '/docs/developer/psps_and_marketplaces/avarda/ratepay_docs', computop: '/docs/developer/psps_and_marketplaces/computop', payone: '/docs/developer/psps_and_marketplaces/payone/ratepay_docs' }; const EFFORT = { LOW: { label: 'Effort: Low', cls: 'wiz-badge--effort-low' }, MED: { label: 'Effort: Medium', cls: 'wiz-badge--effort-med' }, HIGH: { label: 'Effort: High', cls: 'wiz-badge--effort-high' } }; // ============================ // Wizard Nodes // ============================ const NODES = { root: { title: 'Choose your integration approach', hint: 'Pick how you want to integrate Ratepay.', options: [ { kind: 'next', id: 'direct', title: 'Direct integration', desc: 'Build a custom solution via the Payment API or Hosted Payment Page.', icon: '→' }, { kind: 'next', id: 'shopsys', title: 'Shop system integration', desc: 'Integrate Ratepay using our official plugins for supported shop systems.', icon: '→' }, { kind: 'next', id: 'psp', title: 'PSP integration', desc: 'Offer Ratepay through a supported Payment Service Provider (PSP).', icon: '→' } ] }, // ------------------------- // Direct Integration // ------------------------- direct: { title: 'Direct integration', hint: 'Choose your preferred integration approach.', options: [ { kind: 'link', href: URLS.paymentApi20, title: 'Payment API 2.0', desc: 'Recommended for custom checkouts and merchants with a development team who want full control over the payment flow.', badges: [EFFORT.MED], methods: [ 'JSON API', 'Open Invoice', 'Direct Debit', 'Amount- or item-based follow-ups' ], icon: '→' }, { kind: 'link', href: URLS.hpp, title: 'Hosted Payment Page (HPP)', desc: 'Ideal if you want a fast integration with minimal changes to your checkout.', badges: [EFFORT.LOW], methods: [ 'Built on Payment API 2.0', 'JSON API', 'Open Invoice', 'Direct Debit', 'Amount- or item-based follow-ups' ], icon: '→' }, { kind: 'link', href: URLS.paymentApi18, title: 'Payment API 1.8', desc: 'The previous generation of the Ratepay Payment API. Recommended for custom checkouts and merchants with a development team who want full control over the payment flow.', badges: [EFFORT.HIGH], methods: [ 'XML API', 'Open Invoice', 'Direct Debit', 'Pay in 3', 'Item-based follow-ups only' ], icon: '→' } ] }, // ------------------------- // Shop Systems // ------------------------- shopsys: { title: 'Shop system integration', hint: 'Choose your shop system.', options: [ { kind: 'link', href: URLS.shopware, title: 'Shopware', desc: 'Official Ratepay Shopware plugin.', badges: [EFFORT.LOW], methods: [ 'Payment API 1.8', 'Open Invoice', 'Direct Debit', 'Pay in 3' ], icon: '→' }, { kind: 'link', href: URLS.magento, title: 'Magento', desc: 'Official Ratepay Magento plugin.', badges: [EFFORT.LOW], methods: [ 'Payment API 1.8', 'Open Invoice', 'Direct Debit', 'Pay in 3' ], icon: '→' }, { kind: 'link', href: URLS.oxid, title: 'OXID', desc: 'Official Ratepay OXID eShop plugin.', badges: [EFFORT.LOW], methods: [ 'Payment API 1.8', 'Open Invoice', 'Direct Debit', 'Pay in 3' ], icon: '→' } ] }, // ------------------------- // PSP Integrations // ------------------------- psp: { title: 'PSP integration', hint: 'Choose your PSP.', options: [ { kind: 'link', href: URLS.adyen, title: 'Adyen', desc: 'Use your Adyen integration to offer Ratepay payment methods.', methods: [ 'Payment API 1.8', 'Open Invoice', 'Direct Debit' ], icon: '→' }, { kind: 'link', href: URLS.avarda, title: 'Avarda', desc: 'Integrate Ratepay via Avarda.', methods: [ 'Payment API 2.0', 'Open Invoice', 'Direct Debit' ], icon: '→' }, { kind: 'link', href: URLS.computop, title: 'Computop', desc: 'Offer Ratepay via your Computop integration.', methods: [ 'Payment API 2.0', 'Open Invoice', 'Direct Debit' ], icon: '→' }, { kind: 'link', href: URLS.payone, title: 'PAYONE', desc: 'Read the documentation for the Ratepay integration via PAYONE.', methods: [ 'Payment API 1.8', 'Open Invoice', 'Direct Debit', 'Pay in 3' ], icon: '→' } ] } }; // ============================ // State // ============================ const stack = []; // ============================ // Helpers // ============================ function clear(element) { if (element) { element.innerHTML = ''; } } function escapeHtml(value) { return String(value).replace(/[&<>"']/g, function (character) { const entities = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }; return entities[character]; }); } function methodsHtml(methods) { if (!methods || !methods.length) { return ''; } const methodBadges = methods .map(function (method) { return ( '' + escapeHtml(method) + '' ); }) .join(''); return ( '
' + methodBadges + '
' ); } function effortHtml(badges) { if (!badges || !badges.length) { return ''; } const effortBadges = badges .map(function (badge) { const badgeClass = badge && badge.cls ? badge.cls : ''; const badgeLabel = badge && badge.label ? badge.label : badge; return ( '' + escapeHtml(badgeLabel) + '' ); }) .join(''); return ( '
' + effortBadges + '
' ); } // ============================ // Session Path // ============================ function savePathToSession(pathStack, currentId) { try { sessionStorage.setItem( 'wizPath', JSON.stringify({ stack: pathStack, current: currentId }) ); } catch (_) { // Session storage may be unavailable. } } function restorePathFromSession(fallbackId) { try { const raw = sessionStorage.getItem('wizPath'); if (!raw) { return { id: fallbackId, restoredStack: [] }; } const parsed = JSON.parse(raw); const restoredStack = Array.isArray(parsed && parsed.stack) ? parsed.stack.filter(function (id) { return Boolean(NODES[id]); }) : []; const id = parsed && parsed.current && NODES[parsed.current] ? parsed.current : fallbackId; return { id: id, restoredStack: restoredStack }; } catch (_) { return { id: fallbackId, restoredStack: [] }; } } // ============================ // Card Creation // ============================ function cardMarkup(options) { const title = options.title; const desc = options.desc; const icon = options.icon || '→'; const badges = options.badges || []; const methods = options.methods || []; return `

${escapeHtml(title)}

${desc ? `

${escapeHtml(desc)}

` : ''} ${methodsHtml(methods)}
${effortHtml(badges)} `; } function cardLink(options) { const anchor = document.createElement('a'); anchor.className = 'card'; anchor.href = options.href || '#'; anchor.addEventListener('click', function () { const current = getHash() || 'root'; savePathToSession(stack.slice(), current); }); anchor.innerHTML = cardMarkup(options); return anchor; } function cardNext(options) { const anchor = document.createElement('a'); anchor.className = 'card'; anchor.href = '#'; anchor.addEventListener('click', function (event) { event.preventDefault(); go(options.nextId); }); anchor.innerHTML = cardMarkup(options); return anchor; } // ============================ // Navigation // ============================ function renderPathChips(currentId) { const pathElement = document.getElementById('wiz-path'); if (!pathElement) { return; } clear(pathElement); const fullPath = stack.concat(currentId); fullPath.forEach(function (id, index) { const node = NODES[id]; const chip = document.createElement('span'); const isCurrent = index === fullPath.length - 1; chip.className = 'path-chip' + (isCurrent ? ' is-current' : ''); chip.textContent = node && node.title ? node.title : id; if (!isCurrent) { chip.setAttribute('role', 'button'); chip.setAttribute('tabindex', '0'); chip.addEventListener('click', function () { goToIndex(index); }); chip.addEventListener('keydown', function (event) { if (event.key === 'Enter' || event.key === ' ') { event.preventDefault(); goToIndex(index); } }); } pathElement.appendChild(chip); }); } function go(nextId) { const current = getHash() || 'root'; const next = NODES[nextId] ? nextId : 'root'; const nextStack = stack.concat(current); savePathToSession(nextStack, next); setHash(next, nextStack); renderNode(next, nextStack); } function goToIndex(index) { const current = getHash() || 'root'; const fullPath = stack.concat(current); const targetId = fullPath[index]; const newStack = fullPath.slice(0, index); if (!targetId || !NODES[targetId]) { return; } savePathToSession(newStack, targetId); setHash(targetId, newStack); renderNode(targetId, newStack); } function goBack() { if (stack.length === 0) { setHash('root', []); renderNode('root', []); return; } const targetId = stack[stack.length - 1]; const newStack = stack.slice(0, -1); savePathToSession(newStack, targetId); setHash(targetId, newStack); renderNode(targetId, newStack); } function setHash(id, pathStack) { const hash = '#' + id; try { history.pushState( { pathStack: pathStack }, '', hash ); } catch (_) { location.hash = id; } } function getHash() { return (location.hash || '') .replace(/^#/, '') .trim(); } // ============================ // Rendering // ============================ function renderNode(nodeId, pathStack) { const titleElement = document.getElementById('wiz-title'); const hintElement = document.getElementById('wiz-hint'); const gridElement = document.getElementById('wiz-grid'); const wizardElement = document.getElementById('integration-wizard'); const backRow = document.querySelector( '#integration-wizard .back-row' ); if ( !titleElement || !hintElement || !gridElement || !wizardElement || !backRow ) { return; } const safeNodeId = NODES[nodeId] ? nodeId : 'root'; const node = NODES[safeNodeId]; const safeStack = Array.isArray(pathStack) ? pathStack.filter(function (id) { return Boolean(NODES[id]); }) : []; stack.length = 0; stack.push.apply(stack, safeStack); titleElement.textContent = node.title || ''; hintElement.textContent = node.hint || ''; const isRoot = safeNodeId === 'root'; backRow.classList.toggle( 'hidden', isRoot && stack.length === 0 ); clear(gridElement); (node.options || []).forEach(function (option) { if (option.kind === 'link') { gridElement.appendChild( cardLink({ title: option.title, desc: option.desc, href: option.href, icon: option.icon, badges: option.badges || [], methods: option.methods || [] }) ); return; } if (option.kind === 'next') { gridElement.appendChild( cardNext({ title: option.title, desc: option.desc, nextId: option.id, icon: option.icon, badges: option.badges || [], methods: option.methods || [] }) ); return; } if (option.kind === 'header') { const heading = document.createElement('div'); heading.className = 'section-header'; heading.textContent = option.text || ''; gridElement.appendChild(heading); } }); renderPathChips(safeNodeId); if (isRoot) { try { sessionStorage.removeItem('wizPath'); } catch (_) { // Session storage may be unavailable. } } wizardElement.setAttribute('data-ready', '1'); } function renderFromHistory() { let id = getHash() || 'root'; if (!NODES[id]) { id = 'root'; } let pathStack = history.state && Array.isArray(history.state.pathStack) ? history.state.pathStack : null; if (!pathStack) { const restored = restorePathFromSession(id); id = restored.id; pathStack = restored.restoredStack; try { history.replaceState( { pathStack: pathStack }, '', '#' + id ); } catch (_) { location.hash = id; } } renderNode(id, pathStack || []); } // ============================ // Initialization // ============================ function wizardDomReady() { return Boolean( document.getElementById('integration-wizard') && document.getElementById('wiz-title') && document.getElementById('wiz-back') && document.getElementById('wiz-path') && document.getElementById('wiz-grid') ); } function waitForWizardDom(callback) { if (wizardDomReady()) { callback(); return; } window.setTimeout(function () { waitForWizardDom(callback); }, 30); } function initializeWizard() { if (window.__ratepayIntegrationWizardInitialized) { renderFromHistory(); return; } const backButton = document.getElementById('wiz-back'); if (!backButton) { return; } backButton.addEventListener('click', goBack); window.addEventListener('popstate', renderFromHistory); window.addEventListener('hashchange', renderFromHistory); window.addEventListener('pageshow', renderFromHistory); document.addEventListener('visibilitychange', function () { if (document.visibilityState === 'visible') { renderFromHistory(); } }); window.__ratepayIntegrationWizardInitialized = true; const currentHash = getHash(); const fallbackId = currentHash && NODES[currentHash] ? currentHash : 'root'; const restored = restorePathFromSession(fallbackId); try { history.replaceState( { pathStack: restored.restoredStack }, '', '#' + restored.id ); } catch (_) { location.hash = restored.id; } renderNode( restored.id, restored.restoredStack ); } waitForWizardDom(initializeWizard); })();