Skip to content

Commit bc1a27f

Browse files
committed
Added explicit Authentication section
1 parent 23f3eaf commit bc1a27f

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ Alternatively, we provide a custom `SPL` autoloader:
3333
```php
3434
require 'path/to/anet_php_sdk/autoload.php';
3535
```
36-
36+
37+
## Authentication
38+
To authenticate with the Authorize.Net API you will need to retrieve your API Login ID & Transaction Key from the [`Merchant Interface`](https://account.authorize.net/). You can find these details in the Settings section.
39+
If you need a sandbox account you can sign up for one really easily [`here`](https://developer.authorize.net/sandbox/).
40+
41+
Once you have your keys simply plug them into the appropriate variables as per the samples below.
42+
43+
````php
44+
define("AUTHORIZENET_API_LOGIN_ID", "YOURLOGIN");
45+
define("AUTHORIZENET_TRANSACTION_KEY", "YOURKEY");
46+
````
47+
3748
## Usage Examples
3849

3950
See below for basic usage examples. View the `tests/` folder for more examples of

0 commit comments

Comments
 (0)