$webOption = new WebOptionsType();
    $webOption->cancelUrl = $cancelURL;
    $webOption->cancelUrlDescription = $_REQUEST['cancelURLDescription'];
    $webOption->returnUrl = $returnURL;
    $webOption->returnUrlDescription = $_REQUEST['returnURLDescription'];
    $addPaymentCard->webOptions = $webOption;
}
// ## Creating service wrapper object
// Creating service wrapper object to make API call
// Configuration::getAcctAndConfig() returns array that contains credential and config parameters
$service = new AdaptiveAccountsService(Configuration::getAcctAndConfig());
try {
    // ## Making API call
    // invoke the appropriate method corresponding to API in service
    // wrapper object
    $response = $service->AddPaymentCard($addPaymentCard);
} catch (Exception $ex) {
    require_once 'Common/Error.php';
    exit;
}
// ## Accessing response parameters
// You can access the response parameters as shown below
$ack = strtoupper($response->responseEnvelope->ack);
if ($ack != "SUCCESS") {
    echo "<b>Error </b>";
    echo "<pre>";
    print_r($response);
    echo "</pre>";
} else {
    echo "<pre>";
    print_r($response);