You can install the Nexi SDK for PHP via the composer command:
In order to communicate with the gateway, you need to create a configuration object that implements the IConfiguration interface.
Once instantiated, this object can call the PaymentGatewayClient constructor which instantiates the object that handles calls to the gateway.
Example of use
Having obtained the object indicated in the previous section, it is possible to proceed with the requests to the gateway. Below is an example of payment using the method Hosted Payment Page:
Objects, as well as "set" methods for setting parameters, are referenced by the API POST /orders/hpp. The SDK was developed keeping the parameter names the same as those of the gateway API, to facilitate and improve the user experience.