Download the PHP package andreighioc/btipay without Composer

On this page you can find all versions of the php package andreighioc/btipay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package btipay

BT iPay - Laravel Package

🇷🇴 Versiunea în română

Laravel package for integrating with the Banca Transilvania iPay payment platform.

Supports 1-Phase payments (automatic capture) and 2-Phase payments (pre-authorization + manual deposit), refunds, reversals, transaction status verification, and loyalty point payments (StarBT).

Requirements

Installation

Full installation (config, migrations, controller, routes, views):

The BtiPay:install command creates:

Optionally, publish only what you need:

After installation, include the routes in your app. In routes/web.php:

Or in bootstrap/app.php (Laravel 11+):

Configuration

Add to your .env:

Available Environments

Environment Description
sandbox Test environment (https://ecclients-sandbox.btrl.ro)
production Production environment (https://ecclients.btrl.ro)

Supported Currencies (ISO 4217)

Currency Code
RON 946
EUR 978
USD 840

Usage

1. Simple Payment (1-Phase)

2. Pre-Authorized Payment (2-Phase)

3. Reversal (Cancel Pre-Authorization)

4. Refund

5. Transaction Status Check

6. Shortcut: Get Payment URL

7. Finish Page (Return URL)

If you ran php artisan BtiPay:install, the controller and views are already created. The route GET /BtiPay/finish is automatically registered as BtiPay.finish.

The generated controller (BtiPayController) automatically handles:

For custom integration, you can use the facade directly:

8. Tracking with BtiPayTransaction Model

9. Model Trait

10. Loyalty Point Payments (StarBT)

Events

The package dispatches the following events that you can listen for:

Event Description
PaymentRegistered Payment has been registered with iPay
PaymentCompleted Payment completed successfully (DEPOSITED)
PaymentDeclined Payment was declined
PaymentRefunded Refund processed (partial or full)

Error Codes (Action Codes)

The 22 required error codes to handle per BT documentation:

Code Description
104 Restricted card
124 Transaction cannot be authorized per regulations
320 Inactive card
801 Issuer unavailable
803 Card blocked ⚠️ Do NOT retry with the same card!
804 Transaction not allowed ⚠️ Do NOT retry with the same card!
805 Transaction declined
861 Invalid expiration date
871 Invalid CVV
905 Invalid card
906 Expired card
913 Invalid transaction ⚠️ Do NOT retry with the same card!
914 Invalid account
915 Insufficient funds
917 Transaction limit exceeded
952 Suspected fraud
998 Installments not allowed with this card
341016 3DS2 authentication declined
341017 3DS2 status unknown
341018 3DS2 cancelled by customer
341019 3DS2 authentication failed
341020 3DS2 unknown status

Package Structure

License

MIT License

Contact

For BT iPay API issues: [email protected]


All versions of btipay with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package andreighioc/btipay contains the following files

Loading the files please wait ...