# Magento 2

{% hint style="info" %}
Verfügbar für Magento 2.4 - 2.4.x
{% endhint %}

## Allgemein

Magento 2 ist ein von Adobe entwickeltes Open Source E-Commerce-System zur Erstellung von Online-Shops. Dank eines entsprechenden Plugins kann die Zahlungslösung von Payrexx in Magento 2 integriert werden.

Das Plugin ist auch mit der Magento Community Edition (Open Source) kompatibel.

### Links

* Webseite von [Magento 2](https://business.adobe.com/ch_de/products/magento/open-source.html)
* Download [Plugin](https://github.com/payrexx/magento-payrexx-gateway)

### Funktionen

* ✅ Mehrwährungs-Fähigkeit
* ✅ Zahlungsmittel-Logos im Checkout
* ✅ Warenkorb-Übertragung
* ✅ Webhook-Fähigkeit
* ✅ Individuelle Zahlungsmittel-Konfiguration
* ✅ Kompatibel mit [Hyvä Checkout Modul](https://github.com/payrexx/hyva-payrexx-compatibility)
* ❌ Einstellungen zu Look & Feel
* ❌ Abonnement-Support

{% hint style="info" %}
Bitte beachte, dass die Integration in Magento 2 nur in den Preisplänen "Standard" und "Premium" verfügbar ist. [Weitere Informationen](https://payrexx.com/de-ch/preise)
{% endhint %}

### Zahlungsarten

Die folgenden Zahlungsarten werden vom Plugin unterstützt:

<table><thead><tr><th width="206.74072265625">Payrexx Pay</th><th width="244.1112060546875">Payrexx Pay Plus</th><th width="197.5555419921875">Externe Zahlungsanbieter</th><th data-hidden></th></tr></thead><tbody><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FzmSiSts3E0QSDEMQl9Hf%2Fimage.png?alt=media&#x26;token=c257a146-eb71-43a1-893f-c396efea3280" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/mastercard">Mastercard</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FzmSiSts3E0QSDEMQl9Hf%2Fimage.png?alt=media&#x26;token=c257a146-eb71-43a1-893f-c396efea3280" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/mastercard">Mastercard</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FS4Uccre8m1pO8L8dhQnf%2Fimage.png?alt=media&#x26;token=439291be-3279-4a93-9209-dc280f1729f3" alt="" data-size="line"> Masterpass</td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FOMih5TP6rtMuvtI0LblW%2Fimage.png?alt=media&#x26;token=49593e63-5c2d-4778-bced-720873dd9e6f" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/visa">Visa</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FOMih5TP6rtMuvtI0LblW%2Fimage.png?alt=media&#x26;token=49593e63-5c2d-4778-bced-720873dd9e6f" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/visa">Visa</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FeSqoUIoTtK9CsrOcPr4s%2Fimage.png?alt=media&#x26;token=a41eacc0-d1e5-4b7b-9734-020b7d0e89a8" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/paypal">PayPal</a></td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FLVgIjDrsMTOficb0o0E2%2Fcard_postfinance-pay%402x.png?alt=media&#x26;token=5b14cab5-b791-4e5f-9f4f-cf1b56a9878b" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/postfinance-pay">PostFinance Pay</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FQ4Pw15SbyF5HZmLTdeby%2Fimage.png?alt=media&#x26;token=7cf3e352-5a26-490a-813e-0f56b4c63651" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/american-express">American Express</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FGuX45sYogMu7xSg7zkC6%2Fimage.png?alt=media&#x26;token=f1c66ec5-405a-4665-a6cb-db5e7003f34c" alt="" data-size="line"> Maestro</td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FQmoNlTY2RHjz12DsLE6S%2Fimage.png?alt=media&#x26;token=8f2d9059-59ab-4318-a4b0-8f923f55f60e" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/twint">TWINT</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FOQDbOLnSJqpBiQbs9B2Q%2Fimage.png?alt=media&#x26;token=b02b0d3a-18a4-4723-ac5c-4ddca01edf81" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/diners-club-international">Diners Club International</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2Fc6PZY6S0uUiSOtRscv3q%2FHeyLight_Payment_Badge_White.png?alt=media&#x26;token=89dec13b-9b93-4c3b-8125-0bef3eb0f4c2" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/kreditkarten/heylight">HeyLight</a></td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FaslPSpJR7o20IpLYVPrh%2Fcard_google-pay.svg?alt=media&#x26;token=5af47904-ab64-4095-a1a9-f27719f28b13" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/google-pay">Google Pay</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2Fabg6kdxmdazOeDRyb33F%2Fimage.png?alt=media&#x26;token=976d916a-87aa-49be-8c94-5e44821b348e" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/discover-card">Discover Card</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FJ00VN5sggD2OYSj0Uiz2%2Fimage.png?alt=media&#x26;token=61fa5f31-2a36-4509-9fd4-0e51329653a8" alt="" data-size="line"> Swissbilling</td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FZzVAjKontBUmPwY19Bj3%2Fimage.png?alt=media&#x26;token=d646967b-a709-4199-b3c6-80fb22033190" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/pay-by-bank">Pay by Bank</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2F0Zooyx2YVdQIeawCTXZV%2Fimage.png?alt=media&#x26;token=37014444-056a-4661-a0ac-c7272a995cd7" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/apple-pay">Apple Pay</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FcuHUg9OXVF6Q0mNZjXtN%2Fimage.png?alt=media&#x26;token=7cccdf21-0150-486d-ab1a-5725c7c360c9" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/wirpay">WIRpay</a></td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2F4v2uSaWlAMbreEMYQez1%2Fimage.png?alt=media&#x26;token=fbfbbfd7-1b13-4742-969a-628425ab3eed" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/kauf-auf-rechnung">Kauf auf Rechnung</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FaslPSpJR7o20IpLYVPrh%2Fcard_google-pay.svg?alt=media&#x26;token=5af47904-ab64-4095-a1a9-f27719f28b13" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/google-pay">Google Pay</a></td><td> <img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2F6HFKGXHFBhZQmcS7D6U3%2Fimage.png?alt=media&#x26;token=5ba9e6f8-e17b-435c-945a-50a1ecece787" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/barzahlen-viacash">Barzahlen/viacash</a></td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FN6DI4ZZfjuglMh4W1Umi%2Fcard_centi.svg?alt=media&#x26;token=63c67bdb-5dd0-4821-9ae7-e43c135dbbc8" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/centi">Centi</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FhwFChllXfqdTZ64sg6sz%2Fimage.png?alt=media&#x26;token=07f340b8-4d88-46b1-8e25-592715b04489" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/klarna">Klarna</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FDc5tuWcTyynPrgG7YR48%2Fimage.png?alt=media&#x26;token=97590085-4c2f-4e67-951f-009eeb1d298c" alt="" data-size="line"><a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/giropay">giropay</a></td><td></td></tr><tr><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FQDKMXy46FiTCmKk8diHN%2Fimage.png?alt=media&#x26;token=6618d3a0-3ca3-4c0a-b7cd-a7b9efea4c13" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/crypto">Crypto</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FxM5Zxnksmv8m51qch17K%2Fcard_eps.svg?alt=media&#x26;token=286fb11b-2561-42c3-8436-f25d2bb2c6cf" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/eps">eps</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FSnstaV3cC7J64YMjvtRI%2Fimage.png?alt=media&#x26;token=cc43c6df-5845-4d48-a47f-3295cd1334d8" alt="" data-size="line"> JCB</td><td></td></tr><tr><td></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FazRmO9hASjKPaZlXE9vu%2Fcard_bancontact.svg?alt=media&#x26;token=30dcb714-15cb-4e92-aea9-c636b4a42b69" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/bancontact">Bancontact</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2Fa94g3Kbz0O5DT9jm7fL3%2Fimage.png?alt=media&#x26;token=90275879-2fe7-4874-8d0c-a5d1ce6c6b15" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/verd">Paysafecash</a></td><td></td></tr><tr><td></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FeidShG03QDxxtAGrjMKW%2Fcard_ideal.svg?alt=media&#x26;token=316edff8-9338-4d0f-9a72-d11e7eadd9bf" alt="" data-size="line"><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FEFH2stkk98Cvuu5B5dCQ%2Fimage.png?alt=media&#x26;token=4f88c09c-672f-4856-996e-e27e3e198a9b" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/ideal">iDEAL</a></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FyQPTXj9Brvyuw5sRs3AX%2Fimage.png?alt=media&#x26;token=42754f3c-4c69-4c8a-bb32-d3893de9f506" alt="" data-size="line"> Bitcoin</td><td></td></tr><tr><td></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FippWcOzBacR7wcW0z2Vt%2Fcard_sepa-direct-debit.svg?alt=media&#x26;token=ce1259cc-f451-4ff8-b30d-524afb0f36c8" alt="" data-size="line"> <a href="../../bezahldienste/payrexx-pay/zahlungsmittel/sepa-debit-direct">SEPA Direct Debit</a></td><td> <img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FUFNjOOV5KzTX9ubxThWw%2Fimage.png?alt=media&#x26;token=c0da888c-45bf-4dd8-a018-313a3dbb71ac" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/manuelle-zahlungsmethoden/rechnung">Rechnung</a></td><td></td></tr><tr><td></td><td></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FrkWyu2um2XCilcuzf4hy%2Fimage.png?alt=media&#x26;token=b9ecb2a8-7568-4632-8fe3-815a88577b89" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/powerpay">POWERPAY</a></td><td></td></tr><tr><td></td><td></td><td><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FoS9INIgKHrrfcr1MsRl3%2Fcembrapay.png?alt=media&#x26;token=d09d8dbd-7fc4-4ab7-b5d5-953472f61e12" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/cembrapay">CembraPay</a></td><td></td></tr><tr><td></td><td></td><td> <img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FRMuwtKQjpXFZgdVjmKOS%2Fimage.png?alt=media&#x26;token=49f683e8-b9c6-4af5-b5d5-c59c3c5062ff" alt="" data-size="line"> <a href="../../bezahldienste/externe-zahlungsanbieter/wallets-and-alternative/verd">VERD</a></td><td></td></tr></tbody></table>

## Integration

Folge der untenstehenden Anleitung, um Payrexx in Magento 2 zu integrieren.

### Konfiguration von Payrexx

{% hint style="info" %}
Bitte beachte, dass Du bei Payrexx [eingeloggt](https://login.payrexx.com/de) sein musst, bevor Du beginnst. Falls Du noch kein Konto hast, [registriere](https://signup.payrexx.com/de/email-validation/) Dich bitte bei Payrexx.
{% endhint %}

* Navigiere in der Händler-Administration Deines Payrexx-Kontos zu **API und Integrationen**.
* Klicke unterhalb von "E-Commerce-Integration hinzufügen" auf "Alle anzeigen".
* Klicke neben Magento 2 auf "Hinzufügen":

<div align="left"><figure><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2Fcjw9MjyZ8NczLPsSIzYY%2Fimage.png?alt=media&#x26;token=66b14e0a-51d8-4fe3-b990-0b27d13ac690" alt=""><figcaption><p>Start der Integration ins E-Commerce-System Magento 2</p></figcaption></figure></div>

* Nimm im untenstehenden Fenster die folgenden Einstellungen vor:

<div align="left"><figure><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FANXYS5wthRmGb4ISggs1%2Fimage.png?alt=media&#x26;token=86fed47f-8109-4a97-8de5-060a40c7fd3d" alt=""><figcaption><p>Konfiguration der Anbindung von Magento 2 in Payrexx</p></figcaption></figure></div>

1. **API-Schlüssel:** Kopiere den angezeigten API-Schlüssel in die Zwischenablage, da Du ihn später benötigst.
2. **Instanzname:** Kopiere den angezeigten Instanznamen in die Zwischenablage, da Du ihn später benötigst.
3. **Shop-Adresse eingeben:** Erfasse in diesem Feld die URL Deines Shops. Falls sich Dein Shop nicht im Hauptverzeichnis (<https://demo-shop.com>) befindet, sondern in einem Unterverzeichnis, gibt bitte den kompletten Pfad zu Deinem Shop an. Beispiel: <https://demo-shop.com/shop>

{% hint style="warning" %}
Bitte beachte, dass Du die Shop-Adresse korrekt einträgst. Abweichungen (z. B. http\:// statt https\:// können zu Fehlern bei der Verarbeitung der Webhooks führen.
{% endhint %}

4. **Webhooks:** Definiere, ob ein fehlgeschlagener Webhook erneut ausgeführt werden soll oder nicht. Ist die Checkbox aktiviert, wird bis zu 10 Mal versucht, den Webhook erneut zu versenden. Die Abstände der Versuche betragen 5 Minuten, 15 Minuten, 1 Stunde, 2 Stunden, 4 Stunden und danach jeweils 24 Stunden.
5. **Abschliessen:** Klicke auf den grünen Button "Aktivieren", um die Konfiguration abzuschliessen.

### Installation des Plugins

* Lade auf GitHub die neuste Version des [Plugins](https://github.com/payrexx/magento-payrexx-gateway) herunter.
* Öffne den Ordner **/app/**, der sich im Root-Verzeichnis der Magento-Installation befindet.
* Erstelle innerhalb des Verzeichnisses **/app/** die Ordnerstruktur **code/Payrexx/PaymentGateway/**.
* Entpacke die heruntergeladene ZIP-Datei im Verzeichnis **/PaymentGateway**.
* Verschieben Sie alle entpackten Dateien und Ordner in den das Verzeichnis **/PaymentGateway.**

### Aktivierung der Erweiterung

* Logge Dich in den Administrations-Bereich von Magento 2 ein.
* Wechsle in Root-Verzeichnis von Magento 2 und führe die folgenden Befehle aus:

`$ bin/magento setup:upgrade`

`$ bin/magento setup:di:compile`

`$ bin/magento cache:clean`

{% hint style="warning" %}
Der Vorgang kann einige Zeit in Anspruch nehmen.
{% endhint %}

{% hint style="info" %}
Bei Magento-Versionen älter als V 2.3 ist es möglich, die Erweiterung unter **System > Web Setup Wizard** zu aktivieren. Weitere Informationen dazu findest Du in der Anleitung auf GitHub.
{% endhint %}

### Konfiguration von Magento 2

* Navigiere im Administrations-Bereich von Magento 2 zu **Stores > Configuration > Sales > Payment Methods**.
* Scrolle hinunter zu "Other Payment Methods" und klicke auf das dreieckige Symbol.
* Öffne "Required Settings" und trage die während der [Konfiguration von Payrexx](#konfiguration-von-payrexx) in die Zwischenablage kopierten Werte ein:

<div align="left"><figure><img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FvDUXqMiYebCRBM2kPJCh%2Fimage.png?alt=media&#x26;token=803e7b12-82bb-4aa5-aab7-49e756216cde" alt=""><figcaption><p>Einstellungen in Magento 2</p></figcaption></figure></div>

1. **Instance Name:** Trage den Instanznamen aus Payrexx ein.
2. **API Secret Key:** Trage den API-Schlüssel aus Payrexx ein.

{% hint style="info" %}
Alternativ kann die Verbindung auch ganz einfach mittels Klick auf den Button "Connect" hergestellt werden.
{% endhint %}

{% hint style="success" %}
Die Konfiguration ist abgeschlossen. Deine Kunden können im Shop von Magento 2 mit den Zahlungsmitteln aus Payrexx bezahlen.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.payrexx.com/merchant/integration/e-commerce/magento-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
