Download the PHP package vanilo/netopia without Composer
On this page you can find all versions of the php package vanilo/netopia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vanilo/netopia
More information about vanilo/netopia
Files in vanilo/netopia
Package netopia
Short Description Netopia Payment Gateway Support for Vanilo (Laravel)
License MIT
Informations about the package netopia
Netopia Payment Gateway Support for Vanilo
This library implements the Netopia Payment Processor for Vanilo Payments.
Being a Concord Module it is intended to be used by Laravel Applications.
IMPORTANT
Netopia uses the RC4 cipher algo for its messages. In recent (~2023) OpenSSL installations this cipher is disabled by default.
In order to use this library you must enable legacy options for OpenSSL 3:
- Find and open the file at /etc/ssl/openssl.cnf
-
At the
[default_sect]section change it to the following: - Then find the
[provider_sect]and change it to the following:
Documentation
Refer to the markdown files in the docs folder.
To-do
The library works but there's space for improvement.
1. Recurring Payments
It's completely untested at the moment, thus it may or may not work
2. Usage of Loyalty Points
It's completely untested at the moment.
3. Add More Specific Error Test Cases
- Use the test cards from the doc to generate scenarios for various failed cases
- Catch the XML responses, add them to unit tests and check them specifically
Cases:
- [X] Successful Payment. Covered.
- [X] Expired Card. Covered.
- [X] Partial refund. Covered.
- [X] Complete refund. Covered.
- [X] Transaction Declined. Covered.
- [ ] Insufficient funds. No unit test coverage.
- [ ] Incorrect CVV2/CCV. No unit test coverage.
- [ ] Transaction not permitted (eg. card not enrolled). No unit test coverage.
- [ ] Risky card detected (eg. stolen card). No unit test coverage.
- [ ] Error at the origin Bank (eg. can't connect to the Bank). No unit test coverage.
4. Test With Real Netopia Keys
During tests, I created a test account at Netopia and generated test keys, to establish close to real life scenarios during unit tests.
There were issues with simulating the encrypted messages generated by Netopia using the actual keys. The tests use a locally generated RSA key pair for this functionality. It seems to do the job, but if we find to cause of the issue, let's use actual Netopia keys.
5. Record More Response Details
Netopia returns the following data which we should record locally:
pan_masked(card number digits eg. 4****2806)
6. SMS Payment
Netopia supports SMS payments. Likely won't be implemented here as it's more for micro payments, but hell, who knows 🤷
7. Refunds
Netopia supports direct credit (refund) and capture operations via its SOAP API
All versions of netopia with dependencies
konekt/concord Version ^1.18
konekt/enum Version ^4.2
laravel/framework Version ^12.69|^13.30
vanilo/contracts Version ^6.0
vanilo/payment Version ^6.0
ext-dom Version *
ext-openssl Version *
ext-simplexml Version *