定制 adee2210/omnitest 二次开发

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

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

adee2210/omnitest

Composer 安装命令:

composer require adee2210/omnitest

包简介

Omnipay Payment Gateway

README 文档

README

Gateway Operations

Operation Decription
ccPurchase Allow you to test Payment Gateway without transfer money.

ccPurchase elements

Element Child Element Required Type Description
sid --- Yes String Site id (unique identifier for the web site)
rcode --- Yes String Site RCODE
country --- Yes String Country of the user - will provide the list of payments available for that country
addfee --- No Boolean This will add the processing fees on top of the amount.
cart --- Yes Array Information about the purchase items. This is only compulsory for feeapi, do not sent the cart to rawfeeapi.
summary amount Yes Float Contains a summary of price amount (without commas and only 2 decimals places)
summary quantity Yes Integer Contains a summary of cart quantity
currency_code --- Yes String 3 digit currency code
items --- Yes Array Contains the cart items
--- (numerical index) Yes Array Contains information about one item in the cart (Repeat until all cart items are listed)
--- name Yes String Category, can be used freely
--- quantity Yes Integer Quantity of the item
--- amount_unit Yes String Unit price amount (without commas and only 2 decimals places)
--- item_no Yes String Article number
--- item_desc Yes String Item description

Installation

composer require adee2210/omnitest:dev-master

How to use

Step 1 : Initialize

$gateway = new Adee2210\Omnitest\Gateway;

Step 2 : Call Gateway Operation (ie. ccPurchase)

$args = $gateway->getConfig(array('run' => 'ccPurchase'));

Step 3 : Get all Operation fields

$Fields = $args['args'];
$OptionalField = $args['optional'];

Step 4 : Post variable or Get Gateway result

$response = $gateway->postForm('ccPurchase', $app['request']->request->all());

Response

Success

[ { "mxsid": "10146", "payby": "bpay", "title": "BPay", "display_title": null, "description": null, "transfertime": null, "transferlimit": null, "currency_code": "AUD", "currency_symbol": "$", "image": "--Logo URL--", "fee": { "srccode": "AUD", "destcode": "USD", "rate": 0.96801106010318, "effectivedate": "2011-04-04",  "flatfee": 3, "mdr": 1 }, "fields": { "card_no": { "description": "", "type": "hidden", "value": "70720297711", "title": "" }, "description": { "description": "", "type": "span", "value": "--HTML String--" }, } }]

Fail

{"status":"EXC","msg":"Some error message here"}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-15