adaptation of the calls of the functions and classes in the "sphere-php-sdk" in the controller "Checkouts"