Download the PHP package dahromy/mvola-bundle without Composer

On this page you can find all versions of the php package dahromy/mvola-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package mvola-bundle

MVola Bundle for Symfony

The MVola Bundle is a Symfony bundle that provides integration with the MVola payment gateway. It offers a convenient way to interact with the MVola API, handle transactions, and manage callbacks.

Features

Installation

You can install the MVola Bundle using Composer:

Configuration

After installing the bundle, you need to configure it in your Symfony application. Add the following to your config/packages/mvola.yaml file:

Make sure to set the corresponding environment variables in your .env file:

Usage

Initiating a Transaction

To initiate a transaction, you can use the MVolaService:

Checking Transaction Status

To check the status of a transaction:

Retrieving Transaction Details

To get the details of a transaction:

Handling Callbacks

The MVola Bundle provides a built-in callback handler that processes incoming callbacks from MVola. To handle these callbacks in your application, follow these steps:

  1. Create an event subscriber:

  2. Register your event subscriber in your services.yaml:

  3. Configure the callback URL:

When initiating a transaction, you can include custom callback data:

The MVola Bundle will automatically handle incoming callbacks at the /mvola/callback endpoint. When a callback is received, it will:

  1. Log the received callback data
  2. Dispatch a MVolaCallbackEvent

Your event subscriber will then be called to process the callback data according to your application's needs.

You can also customize the callback URL by setting the callbackUrl property in the TransactionRequest object:

Note: Ensure that your server is configured to accept PUT requests at the callback URL, as MVola sends callbacks using the PUT method.

Error Handling

The bundle throws specific exceptions for different error scenarios. Make sure to catch and handle these exceptions in your application:

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This bundle is open-sourced software licensed under the MIT license.


All versions of mvola-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/framework-bundle Version ^5.0|^6.0|^7.0
guzzlehttp/guzzle Version ^7.0
symfony/cache Version ^5.0|^6.0|^7.0
symfony/monolog-bundle Version ^3.10
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dahromy/mvola-bundle contains the following files

Loading the files please wait ...