Download the PHP package forci/epay without Composer
On this page you can find all versions of the php package forci/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
TODO
- Tests
Usage
- Create a
Forci\Component\Epay\Client\ClientOptions
instance, responsible for providing all the options theForci\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
Forci\Component\Epay\Client\PaymentHandlerInterface
interface. This interface has methods that are being called by the client - Create an instance of
Forci\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 aForci\Component\Epay\Response\EasyPayResponse
response. Call$response->getIdn()
to get the ID. Beware, this method throws aForci\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
Requires
php Version
~5.5|~7.0
The package forci/epay contains the following files
Loading the files please wait ....