hostbox/api-payu-nette-bridge

Nette bridge for PayU API

v1.1.0 2015-07-25 20:56 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:17:22 UTC


README

Package Installation

The best way to install Social Plugins is using Composer:

$ composer require hostbox/api-payu-nette-bridge

Packagist - Versions

Nette Addons

or manual edit composer.json in your project

"require": {
    "hostbox/api-payu-nette-bridge": "~1.1.0"
}

Bridge Installation

Registration

extensions:
	payu: HostBox\Bridge\PayU\Extension

Configuration: Single POS

Autowire and inject is ON

payu:
	posId: '123456789'
	posAuthKey: 'qwertyuiop'
	key1: 'asdfghjkl'
	key2: 'zxcvbnm'

services:
    - MyFirstService
    - MySecondService(@payu.default) #manual inject

Configuration: Multi POS

Autowire and inject is OFF

payu:
	firstPOS:
		posId: '123456789'
		posAuthKey: 'qwertyuiop'
		key1: 'asdfghjkl'
		key2: 'zxcvbnm'
	secondPOS:
		posId: '987654321'
		posAuthKey: 'poiuytrewq'
		key1: 'lkjhgfdsa'
		key2: 'mnbvcxz'
		encoding: 'ISO'
		format: 'txt'

services:
    - MyFirstService(@payu.firstPOS)
    - MySecondService(@payu.secondPOS)