2017 © Pedro Peláez
 

library velocityservice

silex service for velocity payment system

image

dmitrovskiy/velocityservice

silex service for velocity payment system

  • Tuesday, October 6, 2015
  • by dmitrovskiy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 98 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

velocity-service

Using

Single velocity processor

To use it in your project you should add the package "dmitrovskiy/velocityservice": "dev-master" into your composer.json file., (*1)

Before using velocity service provider you need to inject values:, (*2)

$app = new Application();

$app->register(new VelocityServiceProvider(), array(
    'velocity.identityToken' => 'yourToken',
    'velocity.applicationProfileId' => 1234,
    'velocity.merchantProfileId' => 'yourMerchantProfileID',
    'velocity.workflowId' => 1234565,
    'velocity.isTestAccount' => true
));

The value velocity.isTestAccount is optional and false by default., (*3)

After registering the service you be able to use $app['velocity.processor'] to communicate with velocity service., (*4)

Velocity processor factory

That to use several instances of velocity processor you need $app['velocity.processor.factory']., (*5)

$applicationProfileId = 14644;
$merchantProfileId = "Test Merchant HC";
$workflowId = 2317000001;
$identityToken = 'yourToken';
$isTestAccount = true;

$velocityProcessorFactory = $app['velocity.processor.factory'];

$processor = $velocityProcessorFactory->getProcessor(
    $applicationProfileId,
    $merchantProfileId,
    $workflowId,
    $identityToken,
    $isTestAccount
);

The Versions

06/10 2015

dev-master

9999999-dev

silex service for velocity payment system

  Sources   Download

MIT

The Requires

 

The Development Requires

29/04 2015

dev-dev

dev-dev

silex service for velocity payment system

  Sources   Download

MIT

The Requires

 

The Development Requires