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
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 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.
252
+
253
+
### Apple Pay Example
254
+
You'll need to introduce some new dependencies into composer.json
255
+
````json
256
+
{
257
+
258
+
"require": {
259
+
"php": ">=5.2.0",
260
+
"ext-curl": "*",
261
+
"authorizenet/authorizenet": "1.8.3",
262
+
"jms/serializer": "xsd2php-dev as 0.18.0"
263
+
},
264
+
"require-dev": {
265
+
"goetas/xsd2php": "2.*@dev",
266
+
"goetas/xsd-reader": "2.*@dev"
267
+
},
268
+
"repositories": [{
269
+
"type": "vcs",
270
+
"url": "https://github.com/goetas/serializer.git"
271
+
}]
272
+
273
+
}
274
+
````
275
+
276
+
Here's the PHP code :
277
+
278
+
````php
279
+
<?php
280
+
require 'vendor/autoload.php';
281
+
282
+
use net\authorize\api\contract\v1 as AnetAPI;
283
+
use net\authorize\api\controller as AnetController;
284
+
285
+
define("AUTHORIZENET_LOG_FILE", "phplog");
286
+
287
+
$merchantAuthentication = new AnetAPI\MerchantAuthenticationType();
0 commit comments