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)3433↑50%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 1mo ago

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

35

—

LowBetter than 80% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity21

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

606d ago

Major Versions

v0.5 → v1.02024-03-31

### Community

Maintainers

![](https://www.gravatar.com/avatar/672e7c6f90e2b0fbc11b73af48ece5b8e536fd2475170b84f93683c0ed24b2b3?d=identicon)[stevro](/maintainers/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

[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[ticketpark/saferpay-json-api

A php library to use the json api of Saferpay

34312.6k1](/packages/ticketpark-saferpay-json-api)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)

PHPackages © 2026

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