Skip to content

Commit 1fee370

Browse files
authored
Update README.md
1 parent fea1d68 commit 1fee370

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment
66
processing library for PHP 5.3+. This package implements NAB Transact support for Omnipay.
77

8-
[![StyleCI](https://styleci.io/repos/73980655/shield?branch=master)](https://styleci.io/repos/73980655)
8+
[![StyleCI](https://styleci.io/repos/74269379/shield?branch=master)](https://styleci.io/repos/74269379)
99
[![Build Status](https://travis-ci.org/sudiptpa/nabtransact.svg?branch=master)](https://travis-ci.org/sudiptpa/nabtransact)
10-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sudiptpa/nabtransact/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sudiptpa/nabtransact/?branch=master)
11-
[![Latest Stable Version](https://poser.pugx.org/sudiptpa/nabtransact/version.png)](https://packagist.org/packages/sudiptpa/nabtransact)
1210

1311
## Installation
1412

@@ -32,7 +30,7 @@ And run composer to update your dependencies:
3230

3331
The following gateways are provided by this package:
3432

35-
* NAB Transact SecureXML API*
33+
* NAB Transact SecureXML API
3634

3735
```php
3836
use Omnipay\Omnipay;
@@ -43,17 +41,17 @@ The following gateways are provided by this package:
4341
$gateway->setTransactionPassword('abc123');
4442
$gateway->setTestMode(true);
4543

46-
$card = new CreditCard(
47-
[
44+
$card = new CreditCard([
45+
'firstName' => 'Sujip',
46+
'lastName' => 'Thapa',
4847
'number' => '4444333322221111',
49-
'expiryMonth' => '6',
50-
'expiryYear' => '2020',
48+
'expiryMonth' => '06',
49+
'expiryYear' => '2030',
5150
'cvv' => '123',
5251
]
5352
);
5453

55-
$transaction = $gateway->purchase(
56-
[
54+
$transaction = $gateway->purchase([
5755
'amount' => '10.00',
5856
'currency' => 'AUD',
5957
'transactionId' => 'XYZ100',

0 commit comments

Comments
 (0)