vnpay/soap-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vnpay/soap-client

最新稳定版本:v1.0.0

Composer 安装命令:

composer require vnpay/soap-client

包简介

A PHP client for the Vnpay SOAP API

README 文档

README

A PHP client for the VnPay SOAP API

Introduction

Features

This library's features include the following.

  • Added an EventDispatcher to your Soap client. It will trigger events at all important phases of the SOAP call
  • Easily extensible through events: add custom logging, caching, error handling etc
  • Completely tested

Installation

This library is available on Packagist. The recommended way to install this library is through Composer:

$ php composer.phar require vnpay/soap-client dev-master

Usage

The client

First construct a client using the builder:

$builder = new \Vnpay\SoapClient\ClientBuilder(
  '/path/to/your/vnpay/wsdl/sandbox.enterprise.wsdl.xml'
);

$client = $builder->build();

Logging

To enable logging for the client, call withLog() on the builder. For instance when using Monolog:

$log = new \Monolog\Logger('vnpay');  
$log->pushHandler(new \Monolog\Handler\StreamHandler('/path/to/your.log'));

$builder = new \Vnpay\SoapClient\ClientBuilder(
  '/path/to/your/vnpay/wsdl/sandbox.enterprise.wsdl.xml'
);
$client = $builder->withLog($log)
  ->build();

All requests to the VnPay API, as well as the responses and any errors that it returns, will now be logged.

Completely tested

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-12-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固