Skip to content

Commit fd17fc7

Browse files
committed
Update and rename README_OLD.md to lib/DeprecatedSamples.md
Removed details other than the sample code and its dependencies.
1 parent 4fbc668 commit fd17fc7

1 file changed

Lines changed: 3 additions & 56 deletions

File tree

README_OLD.md renamed to lib/DeprecatedSamples.md

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
Authorize.Net PHP SDK
2-
======================
1+
Old Usage Examples (Of Deprecated SDK Functionality)
2+
=======================================
33

4-
[![Build Status] (https://travis-ci.org/AuthorizeNet/sdk-php.png?branch=master)]
5-
(https://travis-ci.org/AuthorizeNet/sdk-php)
6-
7-
8-
## License
9-
Proprietary, see the provided `license.md`.
4+
** PLEASE NOTE: These examples are for deprecated functionality. Refer to the [README](README.md) in root folder of the SDK for the new examples.**
105

116
## Requirements
127

@@ -201,51 +196,3 @@ $request = new AuthorizeNetTD;
201196
$response = $request->getTransactionDetails("12345");
202197
echo $response->xml->transaction->transactionStatus;
203198
```
204-
205-
## Testing
206-
207-
Integration tests for the AuthorizeNet SDK are in the `tests` directory. These tests
208-
are mainly for SDK development. However, you can also browse through them to find
209-
more usage examples for the various APIs.
210-
211-
- Run `composer update --dev` to load the `PHPUnit` test library.
212-
- Copy the `phpunit.xml.dist` file to `phpunit.xml` and enter your merchant
213-
credentials in the constant fields.
214-
- Run `vendor/bin/phpunit` to run the test suite.
215-
216-
*You'll probably want to disable emails on your sandbox account.*
217-
218-
### Test Credit Card Numbers
219-
220-
| Card Type | Card Number |
221-
|----------------------------|------------------|
222-
| American Express Test Card | 370000000000002 |
223-
| Discover Test Card | 6011000000000012 |
224-
| Visa Test Card | 4007000000027 |
225-
| Second Visa Test Card | 4012888818888 |
226-
| JCB | 3088000000000017 |
227-
| Diners Club/ Carte Blanche | 38000000000006 |
228-
229-
*Set the expiration date to anytime in the future.*
230-
231-
## PHPDoc
232-
233-
Add PhpDocumentor to your composer.json and run `composer update --dev`:
234-
```json
235-
"require-dev": {
236-
"phpdocumentor/phpdocumentor": "*"
237-
}
238-
```
239-
To autogenerate PHPDocs run:
240-
```shell
241-
vendor/bin/phpdoc -t doc/api/ -d lib
242-
```
243-
244-
## New Model
245-
246-
We’re exploring a new model of maintaining the SDKs which allows us to be more responsive to API changes. This model is consistent across the different SDK languages, which is great for us, however we do not want to sacrifice your productivity by losing the inherent efficiencies in the PHP language or our object model. To this end we’re introducing the new model as purely “experimental” at this time and we would appreciate your feedback. Let us know what you really think!
247-
248-
You can find examples of using the new model in the following places:
249-
- [Developer Center Reference](http://developer.authorize.net/api/reference/index.html)
250-
- [Github Sample Code Repositories](http://developer.authorize.net/api/samplecode/), [php](https://github.com/AuthorizeNet/sample-code-php)
251-
- [SDK README (New Version)](README.md)

0 commit comments

Comments
 (0)