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

ActiveLibrary[Payment Processing](/categories/payments)

vikilaboy/btipay
================

Librarie pentru integrarea sistemului de plati IPay al Bancii Transilvania

01PHP

Since Dec 5Pushed 3y agoCompare

[ Source](https://github.com/vikilaboy/btipay)[ Packagist](https://packagist.org/packages/vikilaboy/btipay)[ RSS](/packages/vikilaboy-btipay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 92% 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/108057ba15fb61e3108d6339d1de780420073b129e28dadd33c35513e7f6709b?d=identicon)[vikilaboy](/maintainers/vikilaboy)

---

Top Contributors

[![stevro](https://avatars.githubusercontent.com/u/4375675?v=4)](https://github.com/stevro "stevro (23 commits)")[![vikilaboy](https://avatars.githubusercontent.com/u/2757887?v=4)](https://github.com/vikilaboy "vikilaboy (2 commits)")

### Embed Badge

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

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

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