PHPackages                             fmtl-studio/laravel-transcard - 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. fmtl-studio/laravel-transcard

ActiveLibrary[Payment Processing](/categories/payments)

fmtl-studio/laravel-transcard
=============================

Laravel adapter to accept payments through the Transcard service.

13[1 PRs](https://github.com/fmtl-studio/laravel-transcard/pulls)PHP

Since Jan 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fmtl-studio/laravel-transcard)[ Packagist](https://packagist.org/packages/fmtl-studio/laravel-transcard)[ RSS](/packages/fmtl-studio-laravel-transcard/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel Transcard
=================

[](#laravel-transcard)

Laravel wrapper for easy and seamless integration with Transcard VPOS.

Made with love and code by [Fundamental Studio Ltd.](https://www.fundamental.bg)

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

[](#installation)

The package is compatible with Laravel 7+ version.

Via composer:

```
$ composer require fmtl-studio/laravel-transcard
```

After installing, the package should be auto-discovered by Laravel. In order to configurate the package, you need to publish the config file using this command:

```
$ php artisan vendor:publish --provider="Fundamental\Transcard\TranscardServiceProvider"
```

After publishing the config file, you should either add the needed keys to the global .env Laravel file:

```
TRANSCARD_MERCHANT_ID=XXXXXXXXXX  # Official Merchant ID number, obtained from Transcard
TRANSCARD_PRODUCTION=FALSE # Should the platform use the production or the test Transcard endpoint
TRANSCARD_PRIVATE_KEY="" # Location of your private key file, make sure it is not available to public
TRANSCARD_PRIVATE_KEY_PASS="" # Location of your private key password, make sure it this file is not available to public
TRANSCARD_PUBLIC_KEY="" # Location of your public key file, make sure it is not available to public
TRANSCARD_RETURN_URL=""
TRANSCARD_GENERATE_INVOICE=TRUE # Should the package generate random invoice number if one isn't presented

```

You are up &amp; running and ready to go.

Documentation and Usage instructions
------------------------------------

[](#documentation-and-usage-instructions)

The usage of our package is pretty seamless and easy. First of all, you need to use the proper namespace for our package:

```
use Fundamental\Transcard\Transcard;

```

Creating the instance of our package:

```
$epay = new Transcard('paylogin', array $data, 'BG'); // The second parameter is documented in the next section and the third parameter is the request language page will be shown in: BG or EN, default: BG.
$epay->setData(
    1000000000, // Could be either number or false(will be auto-generated if EPAY_GENERATE_INVOICE=TRUE)
    40.00, // Amount of the payment, double formatted either as double or string
    'Description of the payment in less than 100 symbols.', // Could be empty
);
```

The setData function could be ommitted. The data may be set as array and second parameter to the constructor of the main class.

```
$epay = new Transcard('paylogin', [
    'invoice' => 1000000000, // Could be either number or false(will be auto-generated if EPAY_GENERATE_INVOICE=TRUE)
    'amount' => 40.00, // Amount of the payment, double formatted either as double or string
    'description' => 'Description of the payment in less than 100 symbols.' // Could be empty
]);
```

All available methods are shown into the next section, including setter and getter methods.

Retrieve the correct and formatted hidden fields, form, or array with all the needed parameters.

```
// Would return all hidden fields as formatted html
$epay->generatePaymentFields();

// Would return html form with the first parameter as id
$epay->generatePaymentForm('#form-id');

// Would return array with all needed parameters for the platform request you need to do on your own
$epay->getPaymentParameters();
```

All available methods are shown into the next section.

Changelog
---------

[](#changelog)

All changes are available in our Changelog file.

Support
-------

[](#support)

For any further questions, feature requests, problems, ideas, etc. you can create an issue tracker or drop us a line at

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

[](#contributing)

Read the Contribution file for further information.

Credits
-------

[](#credits)

- Konstantin Rachev
- Vanya Ananieva

The package is bundled and contributed to the community by Fundamental Studio Ltd.'s team.

Issues
------

[](#issues)

If you discover any issues, please use the issue tracker.

Security
--------

[](#security)

If your discover any security-related issues, please email  or  instead of using the issue tracker.

License
-------

[](#license)

The MIT License(MIT). See License file for further information and reading.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![konstantinrachev](https://avatars.githubusercontent.com/u/7881742?v=4)](https://github.com/konstantinrachev "konstantinrachev (16 commits)")

---

Tags

laravelpaymentsphptranscard

### Embed Badge

![Health badge](/badges/fmtl-studio-laravel-transcard/health.svg)

```
[![Health](https://phpackages.com/badges/fmtl-studio-laravel-transcard/health.svg)](https://phpackages.com/packages/fmtl-studio-laravel-transcard)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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