Skip to content

Commit 0d3bbc3

Browse files
committed
Merge pull request #8 from djvaldez/future
Future
2 parents c14735a + 185b558 commit 0d3bbc3

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ This is the PHP client for the [CyberSource SOAP Toolkit API](http://www.cyberso
88
- PHP 5.3 or above
99
- [curl](http://php.net/manual/en/book.curl.php), [openssl](http://php.net/manual/en/book.openssl.php), [soap](http://php.net/manual/en/book.soap.php) extensions must be enabled
1010
- A CyberSource account. You can create an evaluation account [here](http://www.cybersource.com/register/).
11-
- A CyberSource transaction key. You will need to set your merchant ID and transaction key in the ````cybs.ini```` file in ````lib/conf````. Instructions on obtaining a transaction key can be found [here](http://www.cybersource.com/developers/integration_methods/simple_order_and_soap_toolkit_api/soap_api/html/).
11+
- A CyberSource transaction key. You will need to set your merchant ID and transaction key in the ````cybs.ini```` file in ````lib/conf````. Instructions on obtaining a transaction key can be found [here](http://www.cybersource.com/developers/integration_methods/simple_order_and_soap_toolkit_api/soap_api/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=Intro.04.3.html).
1212

1313

1414
##Installation
1515

16-
You can install the client either via [Composer](https://getcomposer.org/) or manually. Before installing, make sure to configure the merchant ID, transaction key, and the WSDL file URL in ````cybs.ini````. By default, the WSDL file for the client is for API version 1.109.
16+
You can install the client either via [Composer](https://getcomposer.org/) or manually. Before installing, make sure to configure the merchant ID, transaction key, and the WSDL file URL in ````cybs.ini````. By default, the WSDL file for the client is for API version 1.109 (the latest when this package was created). Available WSDL file URLs can be browsed at the following locations:
17+
18+
- [test](https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/)
19+
- [live](https://ics2ws.ic3.com/commerce/1.x/transactionProcessor/)
1720

1821
###Installing with Composer
1922
You'll first need to make sure you have Composer installed. You can follow the instructions on the [official web site](https://getcomposer.org/download/). Once Composer is installed, you can enter the project root and run:
@@ -59,7 +62,7 @@ After configuring your merchant ID and transaction key in ````cybs.ini````, the
5962
php samples/Sale.php
6063
```
6164

62-
The samples will output the response object for each request if successful.
65+
The samples will output the response object for each request if successful. Note that the samples contain test data and should not be run in a live environment.
6366

6467
##Tests
6568

@@ -68,6 +71,8 @@ In order to run tests, you'll need [PHPUnit](https://phpunit.de). You'll also ne
6871
composer.phar dump-autoload
6972
```
7073

74+
If you installed PHPUnit with Composer, run the tests from the project root with the command ````vendor/bin/phpunit````.
75+
7176
##Documentation
7277

7378
For more information about CyberSource services, see <http://www.cybersource.com/developers/documentation>

lib/CybsSoapClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function createRequest($merchantReferenceCode)
115115
$request = new stdClass();
116116
$request->merchantID = $this->merchantId;
117117
$request->merchantReferenceCode = $merchantReferenceCode;
118-
$request->clientLibrary = "PHP";
118+
$request->clientLibrary = "CyberSource PHP 2.0.0";
119119
$request->clientLibraryVersion = phpversion();
120120
$request->clientEnvironment = php_uname();
121121
return $request;

lib/conf/cybs.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
merchant_id = your_merchant_id
22
transaction_key = "your_transaction_key"
3-
wsdl = "https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.66.wsdl"
3+
4+
; Modify the URL to point to either a live or test WSDL file with the desired API version.
5+
wsdl = "https://ics2wstest.ic3.com/commerce/1.x/transactionProcessor/CyberSourceTransaction_1.109.wsdl"

0 commit comments

Comments
 (0)