You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+81Lines changed: 81 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -240,3 +240,84 @@ To autogenerate PHPDocs run:
240
240
```shell
241
241
vendor/bin/phpdoc -t doc/api/ -d lib
242
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 real appreciate your feedback. Let us know what you really think! Here’s an example of a server side call with ApplePay data in the new model.
247
+
248
+
### Apple Pay Example
249
+
You'll need to introduce some new dependencies into composer.json
250
+
````json
251
+
{
252
+
253
+
"require": {
254
+
"php": ">=5.2.0",
255
+
"ext-curl": "*",
256
+
"authorizenet/authorizenet": "1.8.3",
257
+
"jms/serializer": "xsd2php-dev as 0.18.0"
258
+
},
259
+
"require-dev": {
260
+
"goetas/xsd2php": "2.*@dev",
261
+
"goetas/xsd-reader": "2.*@dev"
262
+
},
263
+
"repositories": [{
264
+
"type": "vcs",
265
+
"url": "https://github.com/goetas/serializer.git"
266
+
}]
267
+
268
+
}
269
+
````
270
+
271
+
Here's the PHP code :
272
+
273
+
````php
274
+
<?php
275
+
require 'vendor/autoload.php';
276
+
277
+
use net\authorize\api\contract\v1 as AnetAPI;
278
+
use net\authorize\api\controller as AnetController;
279
+
280
+
define("AUTHORIZENET_LOG_FILE", "phplog");
281
+
282
+
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
0 commit comments