https://github.com/polidog/payjpbundle
https://github.com/polidog/payjpbundle
payjp symfony-bundle
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/polidog/payjpbundle
- Owner: polidog
- License: mit
- Created: 2018-08-22T17:51:29.000Z (almost 7 years ago)
- Default Branch: 1.0
- Last Pushed: 2022-03-07T04:10:03.000Z (over 3 years ago)
- Last Synced: 2025-03-15T16:13:04.296Z (4 months ago)
- Topics: payjp, symfony-bundle
- Language: PHP
- Size: 24.4 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PayjpBundle
SymfonyBundle the PAY.JP for PHP.
## Requirements
PHP7.1+## Install
```
composer req polidog/payjp-bundle
```## Configuration
```
// AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Polidog\PayjpBundle\PolidogPayjpBundle(),
// ...
);
}
``````
// app/config/polidog_payjp.yamlpolidog_payjp:
public_key:
secret_key:
```
## Using```
payjp = $payjp;
parent::__construct(null);
}protected function configure()
{
$this->setName('app:customer:retrieve');
}protected function execute(InputInterface $input, OutputInterface $output)
{
$result = $this->payjp->customer->retrieve('cus_141a8ff031230845375b8181293f');
var_dump($result);
}}
```