PHPackages                             lexty/robokassa - 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. lexty/robokassa

ActiveLibrary[Payment Processing](/categories/payments)

lexty/robokassa
===============

PHP library for Robokassa payment system

2.0.0(5y ago)1334.2k↓19.2%8[2 issues](https://github.com/Lexty/robokassa/issues)MITPHPPHP &gt;=7.0.0CI failing

Since Jan 29Pushed 5y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

PHP library for Robokassa payment system
========================================

[](#php-library-for-robokassa-payment-system)

[![Build Status](https://camo.githubusercontent.com/cc456d1e0233023a03f8e0d23505d539f0f6aa089e8333f0e488b226cfcf66f5/68747470733a2f2f7472617669732d63692e6f72672f4c657874792f726f626f6b617373612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Lexty/robokassa)[![Latest Stable Version](https://camo.githubusercontent.com/e45b549a25920ec233179eb58320122a5b4be4d6b410811697b96a654493deb6/68747470733a2f2f706f7365722e707567782e6f72672f6c657874792f726f626f6b617373612f762f737461626c65)](https://packagist.org/packages/lexty/robokassa)[![Latest Unstable Version](https://camo.githubusercontent.com/87b833f21f6773aef7c3411d4725c51a5e5f8ec511299c9a85056f71ecbf82db/68747470733a2f2f706f7365722e707567782e6f72672f6c657874792f726f626f6b617373612f762f756e737461626c65)](https://packagist.org/packages/lexty/robokassa)[![Total Downloads](https://camo.githubusercontent.com/32d3418f16459f104b6731dcff03d972d1c4ae155469eceabfc6d1f1b86c7d94/68747470733a2f2f706f7365722e707567782e6f72672f6c657874792f726f626f6b617373612f646f776e6c6f616473)](https://packagist.org/packages/lexty/robokassa)[![License](https://camo.githubusercontent.com/377b133fa39a066e6a9ceb552dbda9ffb60d1c2c9db01e58f79b0d3a66d908e7/68747470733a2f2f706f7365722e707567782e6f72672f6c657874792f726f626f6b617373612f6c6963656e7365)](https://packagist.org/packages/lexty/robokassa)[![SensioLabsInsight](https://camo.githubusercontent.com/847c062df118a4a84376629d05823fbe9d8069e40cfd627c7fa001459f25f083/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61343934316462342d306437352d346363612d393430362d6331393564383963363436662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/a4941db4-0d75-4cca-9406-c195d89c646f)

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

[](#installation)

```
$ composer require lexty/robokassa
```

Examples
--------

[](#examples)

Create payment:

```
$payment = new \Lexty\Robokassa\Payment(
    new \Lexty\Robokassa\Auth('your_login', 'password1', 'password2', true)
);

$payment
    ->setInvoiceId($orderId)
    ->setSum($orderAmount)
    ->setCulture(Payment::CULTURE_EN)
    ->setDescription('Payment for some goods');

// redirect to payment url
header("Location: {$payment->getPaymentUrl()}");

// or show payment button on page
//
