11First Data Global Gateway PHP API Service
22==================
33
4- <a href =' https://twitter.com/gabrielva ' target =' _blank ' >Follow @gabrielva </a >
5-
64This component provides a PHP Wrapper to post api calls to the First Data payment processor.
75
86It requires curl and the php curl extension.
@@ -33,7 +31,7 @@ use integready\firstdataapi\FirstData;
3331// In debug mode, the demo gateway is used.
3432// You will need to create a demo gateway account with First Data
3533//
36- $firstData = new FirstData(API_LOGIN, API_KEY, true);
34+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
3735
3836```
3937
@@ -44,6 +42,8 @@ $firstData = new FirstData(API_LOGIN, API_KEY, true);
4442In these examples:
4543* API_LOGIN is the Terminal Gateway ID of your commerce terminal.
4644* API_KEY is the password you generate in the terminal screen.
45+ * HMAC_ID is the HMAC ID of your commerce terminal.
46+ * HMAC_KEY is the HMAC Key you generate in the terminal screen.
4747
4848
4949### Examples:
@@ -52,7 +52,7 @@ In these examples:
5252
5353```
5454// Pre Auth Transaction Type
55- $firstData = new FirstData(API_LOGIN, API_KEY, true);
55+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
5656
5757// Charge
5858$firstData->setTransactionType(FirstData::TRAN_PREAUTH);
@@ -89,7 +89,7 @@ if($firstData->isError()) {
8989
9090```
9191// Purchase Transaction type
92- $firstData = new FirstData(API_LOGIN, API_KEY, true);
92+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
9393
9494// Charge
9595$firstData->setTransactionType(FirstData::TRAN_PURCHASE);
@@ -126,7 +126,7 @@ if($firstData->isError()) {
126126
127127```
128128// Purchase Transaction type
129- $firstData = new FirstData(API_LOGIN, API_KEY, true);
129+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
130130
131131// Charge
132132$firstData->setTransactionType(FirstData::TRAN_PURCHASE);
@@ -151,7 +151,7 @@ if($firstData->isError()) {
151151
152152```
153153// Purchase Transaction type
154- $firstData = new FirstData(API_LOGIN, API_KEY, true);
154+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
155155
156156// Charge
157157$firstData->setTransactionType(FirstData::TRAN_PREAUTHCOMPLETE);
@@ -177,7 +177,7 @@ if($firstData->isError()) {
177177
178178```
179179// Purchase Transaction type
180- $firstData = new FirstData(API_LOGIN, API_KEY, true);
180+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
181181
182182// Charge
183183$firstData->setTransactionType(FirstData::TRAN_REFUND);
@@ -202,7 +202,7 @@ if($firstData->isError()) {
202202
203203```
204204// Purchase Transaction type
205- $firstData = new FirstData(API_LOGIN, API_KEY, true);
205+ $firstData = new FirstData(API_LOGIN, API_KEY, HMAC_ID, HMAC_KEY, true);
206206
207207// Charge
208208$firstData->setTransactionType(FirstData::TRAN_VOID);
@@ -223,8 +223,6 @@ if($firstData->isError()) {
223223}
224224```
225225
226- <p >© ; <a href =' http://vadimg.com ' target =" _blank " >Vadim Vincent Gabriel</a > <a href =' https://twitter.com/gabrielva ' target =' _blank ' >Follow @gabrielva</a > 2013</p >
227-
228226License
229227===============
230228The MIT License (MIT)
0 commit comments