定制 djoo/symfony2hipaylib 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

djoo/symfony2hipaylib

Composer 安装命令:

composer require djoo/symfony2hipaylib

包简介

Hipay Payment Libs for Symfony2

README 文档

README

This is a package who contains libraries of the payment method Hipay. This is for use in a Symfony2 Application. It's not a bundle with method, just the libraries of Hipay ready to use in Symfony2.

The folder lib is the same of the lib provided by Hipay. I don't change the files.

How to use ?

Install with composer :

"require": {
  "djoo/symfony2hipaylib": "*"
}

Configure your app/autoload.php

add('', __DIR__.'/../vendor/symfony/symfony/src/Symfony/Component/Locale/Resources/stubs')
    ->add('HIPAY', __DIR__.'/../vendor/djoo/symfony2hipaylib/lib/hipay') //Add This line
    ;
}


AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

require __DIR__.'/../vendor/djoo/symfony2hipaylib/lib/hipay/mapi_package.php'; //Add This line

return $loader;

And after in your controller you can use the method developped by Hipay. Don't forget to use this at the top of your controller :

use HIPAY;

And if you need to call method of Hipay can use this for example :

$params = new \HIPAY_MAPI_PaymentParams();

Idem for static method :

$output = \HIPAY_MAPI_SEND_XML::sendXML($xmlTx,$urlHipay);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-12-13