PHPackages                             stev/btipay - 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. stev/btipay

ActiveLibrary[Payment Processing](/categories/payments)

stev/btipay
===========

Librarie pentru integrarea sistemului de plati IPay al Bancii Transilvania

v1.4.1(1y ago)3489↓37.5%31PHP

Since Jul 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/stevro/btipay)[ Packagist](https://packagist.org/packages/stev/btipay)[ RSS](/packages/stev-btipay/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (6)Versions (12)Used By (1)

btipay
======

[](#btipay)

Librarie pentru integrarea sistemului de plati BT IPay al Bancii Transilvania

Installation
============

[](#installation)

`composer require stev/btipay`

Examples
========

[](#examples)

Send new order
--------------

[](#send-new-order)

```
currentDate = new \DateTime();
$order = new Order();
$order->setOrderNumber(uniqid('F', false).'/'.$currentDate->format('d-m-Y'))
 ->setDescription('Plata Fact F')
 ->setEmail('customer@gmail.com')
 ->setAmount(1000)
 ->setCurrencyAlpha3('RON')
 ->setReturnUrl("https://ecclients.btrl.ro:5443/payment/merchants/Test_BT/finish.html");

$order->force3DSecure(true);

$customerDetails = new CustomerDetails();
$customerDetails->setEmail('contact.webservice@gmail.com')
 ->setPhone(40743333333)
 ->setContact('Stefan');

$billingInfo = new BillingInfo();
$billingInfo->setCountryAlpha2('RO')
 ->setCity('Iasi')
 ->setPostAddress('Elena Doamna 20-22');
$customerDetails->setBillingInfo($billingInfo);

$orderBundle = new OrderBundle($currentDate, $customerDetails);

$order->setOrderBundle($orderBundle);

$btClient = new BTIPayClient('username', 'password', true);

try {
  $response = $btClient->register($order);
} catch (\Stev\BTIPay\Exceptions\ValidationException $exception) {
 print_r( [  'property' => $exception->getProperty(),
  'value' => $exception->getValue(),
  'message' => $exception->getMessage(),
  ]
 );

if($response->getErrorCode() === ErrorCodes::SUCCESS){
      //Redirect your user to the received form url
     return $response->getFormUrl();
 }

 die($response->getErrorMessage());

 }

```

Get Order Status Extended
-------------------------

[](#get-order-status-extended)

```
$btClient = new BTIPayClient('username', 'password', true);

//Send an order and finish the payment, then copy the orderId here
$orderId = '5ba7984b-9ad0-4ec1-a3b0-5a516d207018';

try {
  $response = $btClient->getOrderStatusExtendedByOrderId($orderId);
} catch (\Stev\BTIPay\Exceptions\ValidationException $exception) {
     print_r( [  'property' => $exception->getProperty(),
      'value' => $exception->getValue(),
      'message' => $exception->getMessage(),
      ]
     );

     return;
     }

if($response->getErrorCode() === ErrorCodes::SUCCESS){
	      //Show your user the details of the transaction
	     return $response;
 }

 die($response->getErrorMessage());

```

BT Documentation
================

[](#bt-documentation)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~116 days

Recently: every ~42 days

Total

11

Last Release

652d ago

Major Versions

v0.5 → v1.02024-03-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4375675?v=4)[Stefan Matei](/maintainers/stevro)[@stevro](https://github.com/stevro)

---

Top Contributors

[![stevro](https://avatars.githubusercontent.com/u/4375675?v=4)](https://github.com/stevro "stevro (30 commits)")[![gabrielsolomon](https://avatars.githubusercontent.com/u/17990591?v=4)](https://github.com/gabrielsolomon "gabrielsolomon (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stev-btipay/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)

PHPackages © 2026

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