|
nThis chapter covers the Linux and Windows platforms and uses the Linux convention of forward slashes when path names are listed. nThe PHP client for the Simple Order API is supported on 32-bit operating systems only. nIf you are building an application to sell to others, see Using the Client Application Fields. This appendix has a list of API fields you can use in your request that describe the application, its version, and its user. If you use these fields in your request, you can view their values in the Transaction Search Details window of the Business Center. |
Using PHP in a Hosted Environment
If you are operating in a hosted environment (with an Internet Service Provider hosting your web store), read this section.
To use the CyberSource Simple Order API client for PHP, you must register a PHP extension in php.ini and modify the LD_LIBRARY_PATH (for Linux) or the system PATH (for Windows) to include the lib directory of the CyberSource client. The CyberSource binaries ensure that your transactions are secure while being sent to CyberSource. If you use a hosted environment, you must check with your hosting provider (ISP) to make sure that they support the addition of a PHP extension and editing of the path environment variables.
If you cannot find any documentation related to your hosting provider's support of extensions and new library locations, contact your hosting provider with this statement:
CyberSource requires modifying php.ini to add their extension and editing of LD_LIBRARY_PATH (for Linux) or the system PATH (for Windows) to add the directory containing the dynamic libraries required by the extension for use by my e-commerce software. CyberSource ensures the safety and functionality of these libraries. Please let me know your policy for supporting this implementation.
Because other merchants who use your hosting provider may also use CyberSource, your hosting provider may have already installed the CyberSource PHP client. In that case, we suggest that you verify with your hosting provider the version of the client they have installed and registered. If the client you want to use is newer, ask them to replace the libraries with the new ones.
If you have any questions regarding the above information or installation of the client, please contact Customer Support. If you are a Business Center user, and you cannot obtain the appropriate access from your ISP to install the client, consider using Secure Acceptance instead of the PHP client. Secure Acceptance is available in two integration types, both of which are available in the Business Center. See Secure Acceptance Hosted Checkout Integration Guide and Secure Acceptance Checkout API Integration Guide.