承接 dmitrovskiy/velocityservice 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dmitrovskiy/velocityservice

Composer 安装命令:

composer require dmitrovskiy/velocityservice

包简介

silex service for velocity payment system

README 文档

README

Using

Single velocity processor

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

Before using velocity service provider you need to inject values:

$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.

After registering the service you be able to use $app['velocity.processor'] to communicate with velocity service.

Velocity processor factory

That to use several instances of velocity processor you need $app['velocity.processor.factory'].

$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
);

统计信息

  • 总下载量: 104
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-14