PHPackages                             sfolador/heidipay - 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. sfolador/heidipay

ActiveLibrary[Payment Processing](/categories/payments)

sfolador/heidipay
=================

Use HeidiPay services easy with Laravel

1.0(3y ago)18[2 PRs](https://github.com/sfolador/heidipay/pulls)MITPHPPHP ^8.1

Since Apr 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sfolador/heidipay)[ Packagist](https://packagist.org/packages/sfolador/heidipay)[ Docs](https://github.com/sfolador/heidipay)[ RSS](/packages/sfolador-heidipay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (15)Versions (4)Used By (0)

HeidiPay for Laravel
====================

[](#heidipay-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/71df579b5ac418c7ecc70df4e0822ad2e4cbba65e1620a483b1813a244221cf4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666f6c61646f722f68656964697061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfolador/heidipay)[![GitHub Tests Action Status](https://camo.githubusercontent.com/6caa29f8072fc40b622274790ecf172d1b00f5b4230b92ae03d431a46dcddd1b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73666f6c61646f722f68656964697061792f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/sfolador/heidipay/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/69031e44d98a87498b86ed8315faad6bfc03dca80d203273b7a41dce940d6d11/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f73666f6c61646f722f68656964697061792f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/sfolador/heidipay/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/ecbb6191ed855c8969b8ddf257eb4b0ded38fc1c64b85b100b3e0ef94c721d48/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666f6c61646f722f68656964697061792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfolador/heidipay)

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

[](#installation)

You can install the package via composer:

```
composer require sfolador/heidipay
```

You can publish the config file with:

```
php artisan vendor:publish --tag="heidipay-config"
```

This is the contents of the published config file:

```
return [
    'api_url' => 'https://sandbox-origination.heidipay.com/',
    'merchant_key' => 'your merchant key',
];
```

Usage
-----

[](#usage)

```
 $product = CreditInitProduct::from(sku: null, name: "Test", quantity: 1, price: 100, imageThumbnailUrl: null, imageOriginalUrl: null, description: "");
    $amount = Amount::from(currency: "EUR", amount: 100, format: AmountFormat::DECIMAL);
    $products = [$product];
    $consumer = Customer::from(email: "sfolador@gmail.com", title: null, firstname: "simone", lastname: "folador", dateOfBirth: null, contactNumber: null, companyName: null, residence: null);

    $webhooks = Webhooks::from(
        success: "https://www.example.com/heidi-success",
        failure: "https://www.example.com/heidi-failure",
        cancel: "https://www.example.com/heidi-cancel",
        status: "https://www.example.com/heidi-status",
        mappingScheme: "default"
    );

    $webhooks->setToken(str()->random(32));

    $contractInitDto = ContractInitDto::from(amount: $amount, customer: $consumer, webhooks: $webhooks, products: $products);

    $hp =\Sfolador\Heidipay\Facades\Heidipay::contract($contractInitDto);
    dd($hp->dto());

/**
*
* Sfolador\HeidiPaySaloon\Dto\Response\ContractDto {#479 ▼ // routes/web.php:201
  +action: "REDIRECT"
  +redirect_url: "https://sandbox-checkout.heidipay.com?otc=f8952b8c-919d-4d7f-a54c-70027d5f0a55&fallback=https%3A%2F%2Flaravel-10.test%2Fheidi-failure"
  +external_contract_uuid: "b3df38c4-6cdb-4224-adb9-6878922721ff"
  +application_uuid: "07ef7950-3189-4a11-be6e-98b1d88a9340"
}
 */
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Simone Folador](https://github.com/sfolador)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

1120d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54c6b8884e3bd4e86d26de024ca07094728adc7db2a8a483538222121b00f9f1?d=identicon)[sfolador](/maintainers/sfolador)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![sfolador](https://avatars.githubusercontent.com/u/36632?v=4)](https://github.com/sfolador "sfolador (4 commits)")

---

Tags

laravelsfoladorheidipay

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sfolador-heidipay/health.svg)

```
[![Health](https://phpackages.com/badges/sfolador-heidipay/health.svg)](https://phpackages.com/packages/sfolador-heidipay)
```

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

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