PHPackages                             pipisco/laravel-verotel-flexpay - 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. pipisco/laravel-verotel-flexpay

ActiveLaravel-package[Payment Processing](/categories/payments)

pipisco/laravel-verotel-flexpay
===============================

Laravel package allows you to use Verotel payment gateway and accept credit cards and other payment methods on your website.

8139PHP

Since May 9Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

Verotel FlexPay Laravel Package
===============================

[](#verotel-flexpay-laravel-package)

[![Build Status](https://camo.githubusercontent.com/f85c0f15abedf18f9ed680e668142887ae377e2a2cd77215bcd53fe2894ec168/68747470733a2f2f7472617669732d63692e636f6d2f7069706973636f2f6c61726176656c2d7665726f74656c2d666c65787061792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/pipisco/laravel-verotel-flexpay)

Verotel FlexPay Laravel Package is component for you Laravel application. Package allows you to use Verotel payment gateway and accept credit cards and other payment methods on your website. Now you can, using this SDK, make payment in cryptocurrency on your resource.

Table of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
    - [Composer](#composer)
- [Config](#config)
    - [Config file](#config-files)
- [Usage](#usage)
    - [Create a subscription order](#create-a-subscription-order)

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

[](#installation)

Install the package via composer:

```
composer require pipisco/laravel-verotel-flexpay

```

Config
------

[](#config)

### Config file

[](#config-file)

Before usage Verotel FlexPay component, you should put to the `.env` configuration files next Verotel credentials

`.env` variableVerotel description`VEROTEL_FLEXPAY_ID`Your Shop ID`VEROTEL_FLEXPAY_SECRET`Signature Key`VEROTEL_FLEXPAY_MERCHANT_ID`Merchant ID means yor Verotel ID`VEROTEL_FLEXPAY_API_VERSION`Protocol Verotel IDExample

```
VEROTEL_FLEXPAY_ID=
VEROTEL_FLEXPAY_SECRET=
VEROTEL_FLEXPAY_MERCHANT_ID=
VEROTEL_FLEXPAY_API_VERSION=3.4
```

Usage
-----

[](#usage)

### Create a subscription order

[](#create-a-subscription-order)

The "startorder" subscription request is used to redirect buyer to the Verotel Order Page to process subscription with a given amount, duration and currency.

Example method for initial `one-time` subscription. We're choose only mandatory parameters and use `processor()` method to the define payment processor automaticly.

```
    /**
     * @param Request $request
     * @return RedirectResponse
     * @throws \Exception
     * @throws \Pipisco\Verotel\FlexPay\FlexPayException
     */
    public function subscribe(Request $request) : RedirectResponse
    {
        $flexpay = new FlexPayClient();

        return redirect($flexpay->processor()->subscription([
            UrlParameter::NAME              => 'Order name',
            UrlParameter::SUBSCRIPTION_TYPE => SubscriptionType::ONE_TIME,
            UrlParameter::PRICE_AMOUNT      => 99.99,
            UrlParameter::PRICE_CURRENCY    => Currency::USD,
            UrlParameter::PERIOD            => 'P1M',
        ]));
    }
```

Example method for initial `recurring` subscription.

```
    /**
     * @param Request $request
     * @return RedirectResponse
     * @throws \Exception
     * @throws \Pipisco\Verotel\FlexPay\FlexPayException
     */
    public function subscribe(Request $request) : RedirectResponse
    {
        $flexpay = new FlexPayClient();

        return redirect($flexpay->processor()->subscription([
            UrlParameter::NAME              => 'Order name',
            UrlParameter::SUBSCRIPTION_TYPE => SubscriptionType::RECURRING,
            UrlParameter::PRICE_AMOUNT      => 99.99,
            UrlParameter::PRICE_CURRENCY    => Currency::USD,
            UrlParameter::PERIOD            => 'P1M',
        ]));
    }
```

Also, you can use supported options parameters, see below table.

ParameterEnum help classTypeRequiredDescription`priceAmount``UrlParameter::PRICE_AMOUNT`

 You can use `Currency` enum class and choose right currency from then:

 - `Currency::USD`
- `Currency::EUR`
- `Currency::GBP`
- `Currency::AUD`
- `Currency::CAD`
- `Currency::CHF`
- `Currency::DKK`
- `Currency::NOK`
- `Currency::SEK`Float**mandatory**priceAmount amount to be processed in `nnn.nn` format`priceCurrency``UrlParameter::PRICE_CURRENCY`String**mandatory**`priceCurrency` 3 char ISO code, must be one of the Sale currencies (`USD` `EUR` `GBP` `AUD` `CAD` `CHF` `DKK` `NOK` `SEK`)

NOTE: only EUR is can be used for DDEU payment method system`period``UrlParameter::PERIOD`String**mandatory**Duration in **ISO8601** format, for example: **P30D**, minimum is 7 days for recurring and 2 days for on-time`subscriptionType``UrlParameter::SUBSCRIPTION_TYPE`

 You can use `SubscriptionType` enum class and choose subscription type as bellow:
`SubscriptionType::ONE_TIME`
`SubscriptionType::RECURRING`String**mandatory**NOTE: `DDEU` and `BTC` only support `one-time``trialAmount``UrlParameter::TRIAL_AMOUNT`NumberoptionalAmount to be processed in `nnn.nn` format for the initial trial period, minimum is 2 days`trialPeriod``UrlParameter::TRIAL_PERIOD`StringoptionalDuration in ISO8601 format, for example: **P30D**`name``UrlParameter::NAME`StringoptionalName of the product. Text is displayed on the order page - max 100 printable characters`paymentMethod``UrlParameter::PAYMENT_METHOD`

It's a perfect params because yourself choose payment method. For helpful, you can use my `PaymentMethod` enum class as:
Credit card payment `PaymentMethod::CREDIT_CARD`
`PaymentMethod::BTC` to Bitcoin payment
and `PaymentMethod::DIGITAL_DATA_ENTRY_UTIL`StringoptionalPayment method, `CC`, `DDEU` or `BTC` (if not set then buyers can choose from available payment methods)
 NOTE: DDEU is available only in DE, AT, CH, BE, IT, NL, ES and FR`referenceID``UrlParameter::REFERENCE_ID`StringoptionalMerchant's reference identifier. It must be unique if provided`custom1``UrlParameter::CUSTOM_1`StringoptionalPass-through variable - max 255 printable characters`custom2``UrlParameter::CUSTOM_2`StringoptionalPass-through variable - max 255 printable characters`custom3``UrlParameter::CUSTOM_3`StringoptionalPass-through variable - max 255 printable characters`backURL``UrlParameter::BACK_URL`StringoptionalURL for redirect after successful transaction - max 255 characters`declineURL``UrlParameter::DECLINE_URL`StringoptionalURL for redirect after declined transaction - max 255 characters`email``UrlParameter::EMAIL`StringoptionalEmail of the buyer. If not set, it will be collected on the Order PageDocumentation is under construction. Subscribe to me and stay tuned.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2510798?v=4)[Dmitriy Kovalev](/maintainers/pipisco)[@pipisco](https://github.com/pipisco)

---

Top Contributors

[![pipisco](https://avatars.githubusercontent.com/u/2510798?v=4)](https://github.com/pipisco "pipisco (7 commits)")

### Embed Badge

![Health badge](/badges/pipisco-laravel-verotel-flexpay/health.svg)

```
[![Health](https://phpackages.com/badges/pipisco-laravel-verotel-flexpay/health.svg)](https://phpackages.com/packages/pipisco-laravel-verotel-flexpay)
```

###  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)
