PHPackages                             goldbach-algorithms/novalnet-ag - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. goldbach-algorithms/novalnet-ag

ActiveLibrary[Payment Processing](/categories/payments)

goldbach-algorithms/novalnet-ag
===============================

Novalnet AG by Goldbach

1.0.1(4y ago)05MITPHP

Since Feb 23Pushed 3y agoCompare

[ Source](https://github.com/GoldbachAlgorithms/NovalnetAG)[ Packagist](https://packagist.org/packages/goldbach-algorithms/novalnet-ag)[ RSS](/packages/goldbach-algorithms-novalnet-ag/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

NovalnetAG by Goldbach
======================

[](#novalnetag-by-goldbach)

[![](https://camo.githubusercontent.com/bdad2a98e507fc39c91184af0b47d10395612d98fc654223eb92774d4b614cfc/68747470733a2f2f62616467656e2e6e65742f62616467652f506f776572656425323062792f476f6c64626163682f726564)](https://github.com/Goldbach07/)[![](https://camo.githubusercontent.com/d4cbd22fffe5150374e5f87f85a36b5501f2097218a4dfb0417529656aefef20/68747470733a2f2f62616467656e2e6e65742f62616467652f446576656c6f706564253230666f722f53796d666f6e792f626c61636b)](https://symfony.com/)[![](https://camo.githubusercontent.com/9fd0e8974887c81cbd81f9e3ada5de7c3661775c0618e8e6ead195663a0f584a/68747470733a2f2f62616467656e2e6e65742f62616467652f446576656c6f706564253230666f722f44727570616c2f626c7565)](https://www.drupal.org/)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

NovalnetAG by Goldbach is a PHP library developed to integrate the Novalnet payment system with Symfony and Drupal.

Installation
------------

[](#installation)

Use the composer to install

```
composer require goldbach-algorithms/novalnet-ag
```

Usage
-----

[](#usage)

### Transaction

[](#transaction)

To 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.

```
# add use Novalnet
use GoldbachAlgorithms\Novalnet\Novalnet;

# create a instance of Novalnet
$novalnet = new Novalnet();

# set account config keys
$novalnet->setPaymentKey('YOUR_PAYMENT_KEY');
$novalnet->setSignature('YOUR_SIGNATURE');
$novalnet->setTariff('YOUR_TARIFF_CODE');

# set transaction data
$novalnet->setTransaction(
            'CREDITCARD', // payment type
            '7', // amount
            'EUR', // currency
            1, // test mode (true or false)
            '', // return url to redirect (success)
            '' // return url to redirect (error)
        );

# set customer data
$novalnet->setCustomer(
            'Max', // first name
            'Mustermann', // last name
            'test@novalnet.de', //e-mail
            '+49 174 7781423' // mobile number
            '1911-11-11', // birth date
            'm', // gender (m or f)
            '+49 (0)89 123456', // telephone number (optional)
            '' // fax (optional)
        );

# set billing data
$novalnet->setBilling(
            '2', // house number
            'Musterstr', // street
            'Musterhausen', // city
            '12345', // zipcode
            'DE', // country code
            'ABC GmbH', // company name (optional)
        );

# set hide blocks (will change the payment screen)
$novalnet->setHideBlocks(
            [
                'ADDRESS_FORM',
                'SHOP_INFO',
                'LANGUAGE_MENU',
                'TARIFF'
            ]
        );

# set skip pages (will change the payment screen)
$novalnet->setSkipPages(
            [
                'CONFIRMATION_PAGE',
                'SUCCESS_PAGE',
                'PAYMENT_PAGE'
            ]
        );

# generating payment link
$payment_link = $novalnet->getLink();
```

### Transaction return

[](#transaction-return)

After 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

```
# success returns
stdClass Object (
     [status] => "success"
     [link] => "https://paygate.novalnet.de/nn/d8884c8c299cfdd7232964e5fe788849"
     [secret] => "d8884c8c299cfdd7232964e5fe788849"
)

# error return
stdClass Object (
     [status] => "error"
     [link] => "Invalid payment type or payment type inactive"
)
```

### Refund

[](#refund)

In 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.

```
# add use Novalnet
use GoldbachAlgorithms\Novalnet\Novalnet;

# create a instance of Novalnet
$novalnet = new Novalnet();

# set account payment key
$novalnet->setPaymentKey('YOUR_PAYMENT_KEY');

# config refund data
$refund = $novalnet->refund(
            '14533600047325226', // tid
            'fail', // reason
            'EN', // language
            '200' // amount to refund (optional)
        );
```

### Refund return

[](#refund-return)

```
# success returns
stdClass Object (
     [status] => "success"
     [tid] => "14533600047325226"
     [refunded_amount] => "200"
)

# error return
stdClass Object (
     [status] => "error"
     [message] => "Amount larger than zero required"
)
```

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

Copyright © 2023 [Goldbach Algorithms](https://github.com/GoldbachAlgorithms/NovalnetAG/blob/main/LICENSE)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

2

Last Release

1587d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc5d31ed985a2b808619a74f37d32228ea19c22b0aff02e54877c5a66bfe3ead?d=identicon)[Goldbach07](/maintainers/Goldbach07)

---

Top Contributors

[![Goldbach07](https://avatars.githubusercontent.com/u/13986904?v=4)](https://github.com/Goldbach07 "Goldbach07 (14 commits)")

---

Tags

drupallibrarynovalnetnovalnet-agnovalnet-paymentnovalnet-payment-pluginpaymentpayment-gatewaypayment-integrationphpsymfonysymfonypaymentpaynovalnetNovalnetAG

### Embed Badge

![Health badge](/badges/goldbach-algorithms-novalnet-ag/health.svg)

```
[![Health](https://phpackages.com/badges/goldbach-algorithms-novalnet-ag/health.svg)](https://phpackages.com/packages/goldbach-algorithms-novalnet-ag)
```

###  Alternatives

[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59710.9M51](/packages/payum-payum-bundle)[paymentsuite/paymentsuite

PaymentSuite is an easy implementation for lot of Payment Methods for Symfony projects

2615.7k2](/packages/paymentsuite-paymentsuite)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1019.5k](/packages/sudiptpa-omnipay-nabtransact)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
