Skip to content

Latest commit

 

History

History
85 lines (60 loc) · 1.82 KB

index.rst

File metadata and controls

85 lines (60 loc) · 1.82 KB

Installation

1. Using Composer (recommended)

To install KarserRobokassaBundle with Composer just add the following to your composer.json file:

// composer.json
{
    require: {
        "karser/robokassa-bundle": "dev-master"
    }
}

Then, you can install the new dependencies by running Composer's update command from the directory where your composer.json file is located:

$ php composer.phar update

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your AppKernel.php file, and register the new bundle:

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new Karser\RobokassaBundle\KarserRobokassaBundle(),
    // ...
);

Dependencies

This plugin depends on the JMSPaymentCoreBundle, so you'll need to add this to your kernel as well even if you don't want to use its persistence capabilities.

<?php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new JMS\Payment\CoreBundle\JMSPaymentCoreBundle(),
    // ...
);

Configuration

// config.yml
karser_robokassa:
    login: username
    password1: pass1
    password2: pass2
    test: true/false
    debug: true/false
// routing.yml
karser_robokassa:
    resource: "@KarserRobokassaBundle/Resources/config/routing.yml"
    prefix:   /

Usage

Usage example