Skip to content

Commit ab3f8c0

Browse files
author
rkesarwa
committed
README changes and add merchantID in sample request
1 parent 784aa00 commit ab3f8c0

5 files changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,15 @@ php samples/Sale.php
103103

104104
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.
105105

106+
##Meta Key support
107+
Meta Key is a key generated by an entity that can be used to authenticate on behalf of other entities provided that the entity which holds key is a parent entity or associated as a partner.
108+
109+
SOAP PHP SDK supports meta key by default. Additional detail regarding cybs.ini changes.
110+
111+
merchantID=\<Refers-to-portfolio-mid> <br>
112+
transaction_key=\<Soap-password-generated-for-meta-key><br>
113+
Send merchantID in request for nvl/xml/sales and followOnCapture request.
114+
106115
## Tests
107116

108117
In order to run tests, you'll need [PHPUnit](https://phpunit.de). You'll also need to use [Composer](https://getcomposer.org/) for autoloading. If you used Composer to install the client, this should already be set up. Otherwise, to use Composer for autoloading only, from the project root run

samples/AuthFollowOnCapture.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
$billTo->email = 'null@cybersource.com';
3232
$billTo->ipAddress = '10.7.111.111';
3333
$request->billTo = $billTo;
34+
//$request->merchantID = '<merchantID>';
3435

3536
$card = new stdClass();
3637
$card->accountNumber = '4111111111111111';
@@ -73,7 +74,7 @@
7374
$captureRequest->ccCaptureService = $ccCaptureService;
7475
$captureRequest->item = array($item0, $item1);
7576
$captureRequest->purchaseTotals = $purchaseTotals;
76-
77+
//$captureRequest->merchantID = '<merchantID>';
7778
$captureReply = $client->runTransaction($captureRequest);
7879

7980
// This section will show all the reply fields.

samples/AuthFromNameValuePairs.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
$request['purchaseTotals_currency'] = 'USD';
3131
$request['item_0_unitPrice'] = '12.34';
3232
$request['item_1_unitPrice'] = '56.78';
33+
//$request['merchantID'] = '<merchantID>';
34+
3335
$reply = $client->runTransaction($request);
3436

3537
// This section will show all the reply fields.

samples/Sale.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
$purchaseTotals->currency = 'USD';
4747
$purchaseTotals->grandTotalAmount = '90.01';
4848
$request->purchaseTotals = $purchaseTotals;
49+
//$request->merchantID = '<merchantID>';
4950

5051
$reply = $client->runTransaction($request);
5152

samples/xml/auth.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<requestMessage
33
xmlns="urn:schemas-cybersource-com:transaction-data-_1.109_"> -->
44
<merchantReferenceCode>your_merchant_reference_code</merchantReferenceCode>
5+
<!--<merchantID>cybs_test_new1</merchantID>-->
56
<billTo>
67
<firstName>John</firstName>
78
<lastName>Doe</lastName>

0 commit comments

Comments
 (0)