2017 © Pedro Peláez
 

library web-pay-bundle

image

polidog/web-pay-bundle

  • Thursday, September 15, 2016
  • by polidog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 170 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

WebPayBundle

A Symfony Bundle for including webpay-php, (*1)

Requirements

PHP 5.4+, (*2)

Installation

$ composer require polidog/web-pay-bundl

and adding an instance of Polidog\WepPayBundle\PolidogWebPayBundle to your application's kernel., (*3)

$ vim app/AppKernel.php

...

    public function registerBundles()
    {
        $bundles = [
            // ...
            new Polidog\WebPayBundle\PolidogWebPayBundle(),
        ];
        // ...


    }

and parameter settings., (*4)

polidog_web_pay:
    public_api_key: "your pubic api key"
    secret_api_key: "your secret api key"

Usage

basic api call for controller., (*5)

<?php

class DefaultController extends Controller
{
    /**
     * @Route("/api/test", name="homepage")
     */
    public function indexAction()
    {
        // ...
        $charges = $this->get('polidog_web_pay.web_pay_api')->charge->all(['count' => 1]);
        // ...
    }
}

api document WebPay docuemnt, (*6)

License

MIT, (*7)

The Versions