https://github.com/paysera/lib-wallet-bundle
Symfony2 bundle for integration with Paysera Wallet API
https://github.com/paysera/lib-wallet-bundle
Last synced: 5 months ago
JSON representation
Symfony2 bundle for integration with Paysera Wallet API
- Host: GitHub
- URL: https://github.com/paysera/lib-wallet-bundle
- Owner: paysera
- Created: 2015-05-06T23:49:14.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T13:34:23.000Z (over 7 years ago)
- Last Synced: 2024-11-18T09:53:36.222Z (6 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 9
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Paysera Wallet API bundle
## Installing
```
composer require paysera/lib-wallet-bundle
```In `AppKernel.php`:
```
$bundles = array(
// other bundles
new Paysera\Bundle\WalletBundle\PayseraWalletBundle(),
);
```## Configuring
In `config.yml`:
If using shared secret:
```
paysera_wallet:
client_id: %wallet_api_client_id%
secret: %wallet_api_secret%
```If using certificate credentials:
```
paysera_wallet:
client_id: %wallet_api_client_id%
certificate:
private_key_path: %kernel.root_dir%/config/keys/wallet.key
private_key_password: %wallet_api_private_key_password%
certificate_path: %kernel.root_dir%/config/keys/wallet.crt
```## Using
```
$walletApi = $container->get('paysera_wallet_api');
$walletClient = $walletApi->walletClient();$response = $walletClient->get('client');
```