Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/polidog/payjpbundle


https://github.com/polidog/payjpbundle

payjp symfony-bundle

Last synced: 4 days ago
JSON representation

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.yaml

polidog_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);
}

}
```