New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adee2210/omnitest

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adee2210/omnitest

Omnipay Payment Gateway

Source
Packagist
Version
dev-master
Version published
Total downloads
23
Maintainers
1
Created
Source

omnitest

Gateway Operations

OperationDecription
ccPurchaseAllow you to test Payment Gateway without transfer money.

ccPurchase elements

ElementChild ElementRequiredTypeDescription
sid---YesStringSite id (unique identifier for the web site)
rcode---YesStringSite RCODE
country---YesStringCountry of the user - will provide the list of payments available for that country
addfee---NoBooleanThis will add the processing fees on top of the amount.
cart---YesArrayInformation about the purchase items. This is only compulsory for feeapi, do not sent the cart to rawfeeapi.
summaryamountYesFloatContains a summary of price amount (without commas and only 2 decimals places)
summaryquantityYesIntegerContains a summary of cart quantity
currency_code---YesString3 digit currency code
items---YesArrayContains the cart items
---(numerical index)YesArrayContains information about one item in the cart (Repeat until all cart items are listed)
---nameYesStringCategory, can be used freely
---quantityYesIntegerQuantity of the item
---amount_unitYesStringUnit price amount (without commas and only 2 decimals places)
---item_noYesStringArticle number
---item_descYesStringItem 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"}

FAQs

Package last updated on 30 May 2015

Related posts