Home > Constructing SOAP with PHP 5.2.1 > Building and Running the Sample


Building and Running the Sample

To test your client, modify the variables in the sample files, and launch the application.
  1. In your sample PHP file, replace the variables with your own values: 

    MERCHANT_ID

    TRANSACTION_KEY

    Note that the URL for the CyberSource API (WSDL_URL) is set to the test environment and for a specific version of the API. Always use the most current version of the API.

  2. Run the script php <sample PHP file>

    In the reply file, you can see the result of the request and all of the fields that are returned.