Download the PHP package wucdbm/epay without Composer
On this page you can find all versions of the php package wucdbm/epay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package epay
Epay
Usage
- Create a
Wucdbm\Component\Epay\Client\ClientOptions
instance, responsible for providing all the options theWucdbm\Component\Epay\Client\Client
needs. Its constructor needs the merchant ID and secret, provided by epay.bg. Remember to set the third constructor parameter to true or false depending on whether you're testing or not. - Create a handler that implements the
Wucdbm\Component\Epay\Client\PaymentHandlerInterface
interface. This interface has methods that are being called by the client - Create an instanceo of
Wucdbm\Component\Epay\Client\Client
, passing the above two - To create a payment form, call
$client->getEpayForm($id, $amount, $description, $expiry, $formId, $okUrl, $cancelUrl)
- To create an EasyPay payment ID, call
$response = $this->client->getEasyPayIdn($id, $amount, $description, $expiry)
. This will return aWucdbm\Component\Epay\Response\EasyPayResponse
response. Call$response->getIdn()
to get the ID. Beware, this method throws aWucdbm\Component\Epay\Exception\EasyPayGetIdnError
exception.
The WucdbmEpayBundle https://packagist.org/packages/wucdbm/epay-bundle uses this library, head there for more examples.
Getting a payment form is done like this
Getting an EasyPay IDN
Receiving payments
All versions of epay with dependencies
PHP Build Version
Package Version
The package wucdbm/epay contains the following files
Loading the files please wait ....