Skip to content

Commit

Permalink
Add insallation instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
judgej committed May 24, 2018
1 parent 8a41788 commit 0fe999c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Table of Contents

* [Table of Contents](#table-of-contents)
* [Omnipay-AuthorizeNetApi](#omnipay-authorizenetapi)
* [Installation](#installation)
* [Authorize.Net API](#authorizenet-api)
* [API Authorize/Purchase (Credit Card)](#api-authorizepurchase-credit-card)
* [API Capture](#api-capture)
Expand All @@ -24,6 +25,10 @@ Table of Contents

Omnipay 3.x implementation of Authorize.Net API

# Installation

composer require "academe/omnipay-authorizenetapi: ~3.0"

# Authorize.Net API

The *Authorize.Net API* driver handles server-to-server requests.
Expand Down Expand Up @@ -217,13 +222,19 @@ the previous section. In the `creditCard` object, leave the card details
blank, not set. Instead, send the opaque data:

```php
$gateway->authorize([
$request = $gateway->authorize([
...
'opaqueDataDescriptor' => $opaqueDataDescriptor,
'opaqueDataValue' => $opaqueDataValue,
]);
```

or

```php
$request->setOpaqueData($opaqueDataDescriptor, $opaqueDataValue);
```

The authorizatiob or purchase should then go ahead as though the card
details were provided directly. In the result, the last four digits
of the card will be made available in case a refund needs to be performed.
Expand Down

0 comments on commit 0fe999c

Please sign in to comment.