{"_id":"57ff93cfc135231700aed83e","category":{"_id":"559faf5b545cf90d00337dda","project":"559faf5a545cf90d00337dd6","version":"559faf5b545cf90d00337dd9","__v":9,"pages":["559faf5d545cf90d00337ddc","559fb21ea195040d0029211e","559fe3a2a195040d002921d9","55a3cfc753611017004386e8","55a4aec3dad9d00d0071fcd6","55a4af41e6c2470d002a64a8","55c35e59b6e05719008a04ac","55ccdce34906d12f00122695","56652ba8e2ccf50d00c1199e"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-07-10T11:41:15.803Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"project":"559faf5a545cf90d00337dd6","parentDoc":null,"user":"559faf09a195040d00292112","version":{"_id":"559faf5b545cf90d00337dd9","project":"559faf5a545cf90d00337dd6","__v":2,"createdAt":"2015-07-10T11:41:15.245Z","releaseDate":"2015-07-10T11:41:15.244Z","categories":["559faf5b545cf90d00337dda","559fe3f4a195040d002921e0"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-10-13T14:01:51.206Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"Payrexx Gateway can be implemented in two ways:\n* Redirect to our hosted payment form\n* Implemented as modal window\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Shop Plugins\"\n}\n[/block]\nMagento (v. 1.5 – 1.9, EE 1.11-1.14)\nMagento 2\n[WordPress WooCommerce (v. 1.6 – 2.x)](https://support.payrexx.com/en/support/solutions/articles/11000030951-woocommerce-payrexx-integration)\nWordPres JigoShop (v. 1. x)\nWordPress E-Commerce (v. 3.x)\nShopware (v. 4.x / 5.x)\n[PrestaShop (v. 1. 5 - 1.7.x)](https://support.payrexx.com/en/support/solutions/articles/11000033891-prestashop-payrexx-integration)\nxt:Commerce (v. 3)\nGambio (v. GX 1 / 2)\nxtcModified (v. 1.x)\ncommerce:SEO (v1 und v2)\nOpenCart (v. 1.5.x / 2.x)\nMijoshop\nAceShop\nJTL (v. 3.x / 4.x)\nOxid eSales (v. 4.7.x / 5.x CE & EE)\nseo:Mercari (v. 1.5.x)\nDrupal Commerce (Drupal v. 7.x )\n\nGet all the shop plugins here: https://www.sellxed.com/shop/de/chf/extensions/module/payment-service-provider/payrexx.html?\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Gateway API - hosted version\"\n}\n[/block]\nFirst you need to place the order using our /Gateway endpoint.\n\nSee [/Gateway](doc:gateway) for more information about the request.\n\nYou will get a link back to which you can redirect your customer for the checkout procedure.\nIn case you would like to implement a modal window, use this link for the data-href attribute. More information you can find in the next section.\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Modal window\"\n}\n[/block]\n* jQuery: (e.g. from CDN [https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js](https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js))\n* Payrexx Gateway JS: [https://media.payrexx.com/modal/v1/gateway.min.js](https://media.payrexx.com/modal/v1/gateway.min.js) \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<script type=\\\"text/javascript\\\" src=\\\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\\\">\\n</script>\\n<script type=\\\"text/javascript\\\" src=\\\"https://media.payrexx.com/modal/v1/gateway.min.js\\\"></script>\",\n      \"language\": \"html\"\n    }\n  ]\n}\n[/block]\nTo open the generated gateway link in modal window, use the following code example.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<a class=\\\"payrexx-modal-window\\\" href=\\\"#\\\"\\n    data-href=\\\"https://example.payrexx.com/?payment=GATEWAY-HASH\\\">\\n    Open modal window\\n</a>\\n<script type=\\\"text/javascript\\\">\\n    jQuery(\\\".payrexx-modal-window\\\").payrexxModal();\\n</script>\",\n      \"language\": \"html\",\n      \"name\": null\n    }\n  ]\n}\n[/block]\n  * More information about modal window, you can find on [Modal window](doc:modal-window) \n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"* Replace **example.payrexx.com** with the URL of your Payrexx installation\\n* Replace **GATEWAY-HASH** by the hash returned by our Gateway API\",\n  \"title\": \"Replacements\"\n}\n[/block]","excerpt":"The Payrexx Gateway can be implemented in a web shop.","slug":"payrexx-gateway","type":"basic","title":"Payrexx Gateway"}

Payrexx Gateway

The Payrexx Gateway can be implemented in a web shop.

Payrexx Gateway can be implemented in two ways: * Redirect to our hosted payment form * Implemented as modal window [block:api-header] { "type": "basic", "title": "Shop Plugins" } [/block] Magento (v. 1.5 – 1.9, EE 1.11-1.14) Magento 2 [WordPress WooCommerce (v. 1.6 – 2.x)](https://support.payrexx.com/en/support/solutions/articles/11000030951-woocommerce-payrexx-integration) WordPres JigoShop (v. 1. x) WordPress E-Commerce (v. 3.x) Shopware (v. 4.x / 5.x) [PrestaShop (v. 1. 5 - 1.7.x)](https://support.payrexx.com/en/support/solutions/articles/11000033891-prestashop-payrexx-integration) xt:Commerce (v. 3) Gambio (v. GX 1 / 2) xtcModified (v. 1.x) commerce:SEO (v1 und v2) OpenCart (v. 1.5.x / 2.x) Mijoshop AceShop JTL (v. 3.x / 4.x) Oxid eSales (v. 4.7.x / 5.x CE & EE) seo:Mercari (v. 1.5.x) Drupal Commerce (Drupal v. 7.x ) Get all the shop plugins here: https://www.sellxed.com/shop/de/chf/extensions/module/payment-service-provider/payrexx.html? [block:api-header] { "type": "basic", "title": "Gateway API - hosted version" } [/block] First you need to place the order using our /Gateway endpoint. See [/Gateway](doc:gateway) for more information about the request. You will get a link back to which you can redirect your customer for the checkout procedure. In case you would like to implement a modal window, use this link for the data-href attribute. More information you can find in the next section. [block:api-header] { "type": "basic", "title": "Modal window" } [/block] * jQuery: (e.g. from CDN [https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js](https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js)) * Payrexx Gateway JS: [https://media.payrexx.com/modal/v1/gateway.min.js](https://media.payrexx.com/modal/v1/gateway.min.js) [block:code] { "codes": [ { "code": "<script type=\"text/javascript\" src=\"https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js\">\n</script>\n<script type=\"text/javascript\" src=\"https://media.payrexx.com/modal/v1/gateway.min.js\"></script>", "language": "html" } ] } [/block] To open the generated gateway link in modal window, use the following code example. [block:code] { "codes": [ { "code": "<a class=\"payrexx-modal-window\" href=\"#\"\n data-href=\"https://example.payrexx.com/?payment=GATEWAY-HASH\">\n Open modal window\n</a>\n<script type=\"text/javascript\">\n jQuery(\".payrexx-modal-window\").payrexxModal();\n</script>", "language": "html", "name": null } ] } [/block] * More information about modal window, you can find on [Modal window](doc:modal-window) [block:callout] { "type": "warning", "body": "* Replace **example.payrexx.com** with the URL of your Payrexx installation\n* Replace **GATEWAY-HASH** by the hash returned by our Gateway API", "title": "Replacements" } [/block]