3DSI / Wex PHP Library
If you are looking for 3 Delta System's (now Wex) PHP Library (developed by Peacock Software), you may download it below.
Please read the included README.txt file for extra instructions, as well any documentation given to you by 3DSI.
If you have issues with installation or implementation, please first contact 3 Delta Systems / Wex.
DEBUGGING WITH WPM()
Included with the library is an HTML-based variable debugger, wpm(). You can use it
to display pretty, click-able details about any variable.
Sometimes exceptions happen, which are not appropriate to display with wpm() (the default).
You can tell your $client to use print_r instead.
$client = new CreditCardTransactionClient(); $client->bool_output_exceptions_as_print_r = TRUE;
GETTING ACTUAL XML SENT AND RECEIVED
Sometimes for debugging, 3DSI needs to see the actual XML which was sent or received.
You can do this if you set the $setLastXmlValues = TRUE on the callClientMethod function.
$client = new CreditCardTransactionClient(); ... $result = $client->callClientMethod("AuthorizeAndCapture", $params, TRUE); // (notice the last parameter is TRUE). // We may now access or log: $client->lastXmlResponse, and $client->lastXmlRequest