Netopia MobilPay Payment Gateway Symfony Bundle
This bundle provides an easy way to integrate MobilPay.ro Payment Gateway into your Symfony application., (*1)
Compatibility
It's compatible with Symfony 3.4 LTS and Symfony 4.0 (and later)., (*2)
Installation
You just require using composer and you're good to go!, (*3)
composer require birkof/netopia-mobilpay-bundle
If you don't use Flex, you need to manually enable bundle in your kernel:, (*4)
```$php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = [
// ...
new birkof\NetopiaMobilPay\NetopiaMobilPayBundle(),
];
}, (*5)
## Configuration
Configuration typically lives in the config/packages/netopia_mobilpay.yaml file for a Symfony 4 application.
config/packages/netopia_mobilpay.yaml
netopia_mobilpay:
payment_url: '%env(NETOPIA_MOBILPAY_PAYMENT_URL)%'
public_cert: '%env(NETOPIA_MOBILPAY_PUBLIC_CERT)%' // Allowed to pass the certificate content directly as well as its file path
private_key: '%env(NETOPIA_MOBILPAY_PRIVATE_KEY)%' // Allowed to pass the key content directly as well as its file path
signature: '%env(NETOPIA_MOBILPAY_SIGNATURE)%', (*6)
You should define ``NETOPIA_MOBILPAY_PAYMENT_URL``, ``NETOPIA_MOBILPAY_PUBLIC_CERT``, ``NETOPIA_MOBILPAY_PRIVATE_KEY`` and ``NETOPIA_MOBILPAY_SIGNATURE`` in your environment variables.
If you're still using the old, non-environment system:
app/config/config.yml
netopia_mobilpay:
payment_url: '%netopia_mobilpay_payment_url%'
public_cert: '%netopia_mobilpay_public_cert%'
private_key: '%netopia_mobilpay_private_key%'
signature: '%netopia_mobilpay_signature%'
```
And define netopia_mobilpay_payment_url
, netopia_mobilpay_public_cert
, netopia_mobilpay_private_key
and netopia_mobilpay_signature
parameters in app/config/parameters.yml file., (*7)
Documentation
The bulk of the documentation is stored in the ./src/Resources/doc/index.md
file in this bundle:, (*8)
Read the Documentation, (*9)
License
This bundle is under the MIT license. See the complete license in the bundle:, (*10)
Read the License, (*11)
Features, Bugs and Collaborating
All of the code is provided as-is. We will not provide on-going support for any bugs that may be found. Please submit bug
and features requests - we will review them but we do not guarantee that they will be addressed. Pull requests are welcome
and we'll review them as quickly as we can., (*12)