$card_data = new CardData();
$card_data->setCardNumber("5466410004374507");
$card_data->setCardExpiryDate("202011");
$card_data->setCvvData("988");
$card_data->setBillingAddress1("2350 Kerner Blvd");
$card_data->setBillingAddress2("On the corner");
$card_data->setBillingCity("San Rafael");
$card_data->setBillingState("CA");
$card_data->setBillingZip("94901");
// Customer data
$customer = new Customer();
$customer->setFirstName("First");
$customer->setLastName("Contact");
$customer->setCompanyName("Payhub Inc");
$customer->setJobTitle("Software Engineer");
$customer->setEmailAddress("*****@*****.**");
$customer->setWebAddress("http://payhub.com");
$customer->setPhoneNumber("(415) 479 1349");
$customer->setPhoneExt("123");
$customer->setPhoneType("M");
$authorization = new AuthOnly($merchant, $bill, $card_data, $customer);
$transaction = new TransactionManager($merchant, $WsURL, $oauth_token);
$result = $transaction->doAuthonly($authorization);
if ($result->getErrors() == null) {
    $transactionId = $result->getAuthOnlyResponse()->getTransactionId();
    $capture = new Capture($merchant, $transactionId, $bill);
    $responseCapture = $transaction->doCapture($capture);
    var_dump($responseCapture);
} else {
    var_dump($result->getErrors());
}