{"id":15173131,"url":"https://github.com/goldbachalgorithms/novalnetag","last_synced_at":"2026-01-27T03:07:36.149Z","repository":{"id":62511751,"uuid":"462801626","full_name":"GoldbachAlgorithms/NovalnetAG","owner":"GoldbachAlgorithms","description":"A PHP library developed to integrate the Novalnet payment system with Symfony and Drupal.","archived":false,"fork":false,"pushed_at":"2023-03-24T19:25:55.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-19T23:45:01.375Z","etag":null,"topics":["drupal","library","novalnet","novalnet-ag","novalnet-payment","novalnet-payment-plugin","payment","payment-gateway","payment-integration","php","symfony"],"latest_commit_sha":null,"homepage":"https://github.com/GoldbachAlgorithms","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoldbachAlgorithms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-23T15:48:21.000Z","updated_at":"2022-02-24T19:38:53.000Z","dependencies_parsed_at":"2024-09-27T10:41:23.860Z","dependency_job_id":null,"html_url":"https://github.com/GoldbachAlgorithms/NovalnetAG","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"903c17021c3d2b4cbf536640a1d129a8d08668c5"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoldbachAlgorithms%2FNovalnetAG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoldbachAlgorithms%2FNovalnetAG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoldbachAlgorithms%2FNovalnetAG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoldbachAlgorithms%2FNovalnetAG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoldbachAlgorithms","download_url":"https://codeload.github.com/GoldbachAlgorithms/NovalnetAG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239753699,"owners_count":19691160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drupal","library","novalnet","novalnet-ag","novalnet-payment","novalnet-payment-plugin","payment","payment-gateway","payment-integration","php","symfony"],"created_at":"2024-09-27T10:41:20.113Z","updated_at":"2026-01-14T16:30:15.128Z","avatar_url":"https://github.com/GoldbachAlgorithms.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NovalnetAG by Goldbach\n\n[\u003cimg src=\"https://badgen.net/badge/Powered%20by/Goldbach/red\" /\u003e](https://github.com/Goldbach07/)\n[\u003cimg src=\"https://badgen.net/badge/Developed%20for/Symfony/black\" /\u003e](https://symfony.com/)\n[\u003cimg src=\"https://badgen.net/badge/Developed%20for/Drupal/blue\" /\u003e](https://www.drupal.org/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nNovalnetAG by Goldbach is a PHP library developed to integrate the Novalnet payment system with Symfony and Drupal.\n\n## Installation\n\nUse the composer to install\n\n```bash\ncomposer require goldbach-algorithms/novalnet-ag\n```\n\n## Usage\n\n### Transaction\nTo execute a transaction it is necessary to assign the configuration keys of your Novalnet account. Then configure customer, billing address and payment data.  At the end, a link will be generated to the payment page to which the customer must be redirected to complete their purchase. The payment links expire after 45 minutes.\n```php\n# add use Novalnet\nuse GoldbachAlgorithms\\Novalnet\\Novalnet;\n\n# create a instance of Novalnet\n$novalnet = new Novalnet();\n\n# set account config keys\n$novalnet-\u003esetPaymentKey('YOUR_PAYMENT_KEY');\n$novalnet-\u003esetSignature('YOUR_SIGNATURE');\n$novalnet-\u003esetTariff('YOUR_TARIFF_CODE');\n\n# set transaction data\n$novalnet-\u003esetTransaction(\n            'CREDITCARD', // payment type\n            '7', // amount\n            'EUR', // currency\n            1, // test mode (true or false)\n            '', // return url to redirect (success)\n            '' // return url to redirect (error)\n        );\n\n# set customer data\n$novalnet-\u003esetCustomer(\n            'Max', // first name\n            'Mustermann', // last name\n            'test@novalnet.de', //e-mail\n            '+49 174 7781423' // mobile number\n            '1911-11-11', // birth date\n            'm', // gender (m or f)\n            '+49 (0)89 123456', // telephone number (optional)\n            '' // fax (optional)\n        );\n\n# set billing data\n$novalnet-\u003esetBilling(\n            '2', // house number\n            'Musterstr', // street\n            'Musterhausen', // city\n            '12345', // zipcode\n            'DE', // country code\n            'ABC GmbH', // company name (optional)\n        );\n\n# set hide blocks (will change the payment screen)\n$novalnet-\u003esetHideBlocks(\n            [\n                'ADDRESS_FORM',\n                'SHOP_INFO', \n                'LANGUAGE_MENU', \n                'TARIFF'\n            ]\n        );\n\n# set skip pages (will change the payment screen)\n$novalnet-\u003esetSkipPages(\n            [\n                'CONFIRMATION_PAGE',\n                'SUCCESS_PAGE',\n                'PAYMENT_PAGE'\n            ]\n        );\n\n# generating payment link\n$payment_link = $novalnet-\u003egetLink();\n```\n\n### Transaction return\nAfter payment, a unique code will be generated that will be returned along with the secret that is the identification of the payment page generated previously\n```php\n# success returns\nstdClass Object (\n     [status] =\u003e \"success\"\n     [link] =\u003e \"https://paygate.novalnet.de/nn/d8884c8c299cfdd7232964e5fe788849\"\n     [secret] =\u003e \"d8884c8c299cfdd7232964e5fe788849\"\n)\n\n# error return\nstdClass Object (\n     [status] =\u003e \"error\"\n     [link] =\u003e \"Invalid payment type or payment type inactive\"\n)\n```\n\n### Refund\nIn the refund process, the full amount or partial amount can be refunded. When the value of 'amount' is not filled, the full amount will be applied.\n\n```php\n# add use Novalnet\nuse GoldbachAlgorithms\\Novalnet\\Novalnet;\n\n# create a instance of Novalnet\n$novalnet = new Novalnet();\n\n# set account payment key\n$novalnet-\u003esetPaymentKey('YOUR_PAYMENT_KEY');\n\n# config refund data\n$refund = $novalnet-\u003erefund(\n            '14533600047325226', // tid\n            'fail', // reason\n            'EN', // language\n            '200' // amount to refund (optional)\n        );\n```\n\n### Refund return\n```php\n# success returns\nstdClass Object (\n     [status] =\u003e \"success\"\n     [tid] =\u003e \"14533600047325226\"\n     [refunded_amount] =\u003e \"200\"\n)\n\n# error return\nstdClass Object (\n     [status] =\u003e \"error\"\n     [message] =\u003e \"Amount larger than zero required\"\n)\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\nCopyright © 2023 [Goldbach Algorithms](https://github.com/GoldbachAlgorithms/NovalnetAG/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldbachalgorithms%2Fnovalnetag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoldbachalgorithms%2Fnovalnetag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoldbachalgorithms%2Fnovalnetag/lists"}