-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from rohitkes/future
Support for Meta Key and README changes.
- Loading branch information
Showing
8 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// Using Composer-generated autoload file. | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
// Or, uncomment the line below if you're not using Composer autoloader. | ||
// require_once(__DIR__ . '/../lib/CybsSoapClient.php'); | ||
//require_once(__DIR__ . '/../lib/CybsSoapClient.php'); | ||
|
||
|
||
// Before using this example, you can use your own reference code for the transaction. | ||
|
@@ -31,11 +31,12 @@ | |
$billTo->email = '[email protected]'; | ||
$billTo->ipAddress = '10.7.111.111'; | ||
$request->billTo = $billTo; | ||
//$request->merchantID = '<merchantID>'; | ||
|
||
$card = new stdClass(); | ||
$card->accountNumber = '4111111111111111'; | ||
$card->expirationMonth = '12'; | ||
$card->expirationYear = '2020'; | ||
$card->expirationYear = '2021'; | ||
$request->card = $card; | ||
|
||
$purchaseTotals = new stdClass(); | ||
|
@@ -73,7 +74,7 @@ | |
$captureRequest->ccCaptureService = $ccCaptureService; | ||
$captureRequest->item = array($item0, $item1); | ||
$captureRequest->purchaseTotals = $purchaseTotals; | ||
|
||
//$captureRequest->merchantID = '<merchantID>'; | ||
$captureReply = $client->runTransaction($captureRequest); | ||
|
||
// This section will show all the reply fields. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// Using Composer-generated autoload file. | ||
require __DIR__ . '/../vendor/autoload.php'; | ||
// Or, uncomment the line below if you're not using Composer autoloader. | ||
// require_once(__DIR__ . '/../lib/CybsNameValuePairClient.php'); | ||
//require_once(__DIR__ . '/../lib/CybsNameValuePairClient.php'); | ||
|
||
|
||
// Before using this example, you can use your own reference code for the transaction. | ||
|
@@ -26,10 +26,12 @@ | |
$request['billTo_email'] = '[email protected]'; | ||
$request['card_accountNumber'] = '4111111111111111'; | ||
$request['card_expirationMonth'] = '12'; | ||
$request['card_expirationYear'] = '2019'; | ||
$request['card_expirationYear'] = '2021'; | ||
$request['purchaseTotals_currency'] = 'USD'; | ||
$request['item_0_unitPrice'] = '12.34'; | ||
$request['item_1_unitPrice'] = '56.78'; | ||
//$request['merchantID'] = '<merchantID>'; | ||
|
||
$reply = $client->runTransaction($request); | ||
|
||
// This section will show all the reply fields. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters