// Country: USA
$payment->setCustomerInformation('Bob', 'Tester', '123 Test St.', 'Apt #500', 'Testville', 'IL', '54321', 'USA');
// Card Number: 4111111111111111
// Card Expire: 12/15
// Card CVV2: 123
$payment->setCCInformation('4111111111111111', '1215', '123');
// Phone #: 123-123-1234
$payment->setPhone('1231231234');
// Email Address: test@bluepay.com
$payment->setEmail('*****@*****.**');
// Custom ID1: 12345
$payment->setCustomID1("12345");
// Custom ID2: 09866
$payment->setCustomID2("09866");
// Invoice ID: 50000
$payment->setInvoiceID("500000");
// Order ID: 10023145
$payment->setOrderID("10023145");
// Tip Amount: $6.00
$payment->setAmountTip("6.00");
// Tax Amount: $3.50
$payment->setAmountTax("3.50");
// Food Amount: $3.11
$payment->setAmountFood("3.11");
// Miscellaneous Amount: $5.00
$payment->setAmountMisc("5.00");
/* RUN A $15.00 CREDIT CARD SALE */
$payment->sale('15.00');
$payment->process();
# Read response from BluePay
echo 'Status: ' . $payment->getStatus() . '<br />' . 'Message: ' . $payment->getMessage() . '<br />' . 'Transaction ID: ' . $payment->getTransID() . '<br />' . 'AVS Response: ' . $payment->getAVSResponse() . '<br />' . 'CVS Response: ' . $payment->getCVV2Response() . '<br />' . 'Masked Account: ' . $payment->getMaskedAccount() . '<br />' . 'Card Type: ' . $payment->getCardType() . '<br />' . 'Authorization Code: ' . $payment->getAuthCode() . '<br />';
$payment = new BluePayPayment_BP10Emu($accountID, $secretKey, $mode);
// First Name: Bob
// Last Name: Tester
// Address1: 123 Test St.
// Address2: Apt #500
// City: Testville
// State: IL
// Zip: 54321
// Country: USA
$payment->setCustomerInformation('Bob', 'Tester', '123 Test St.', 'Apt #500', 'Testville', 'IL', '54321', 'USA');
// Card Number: 4111111111111111
// Card Expire: 12/15
// Card CVV2: 123
$payment->setCCInformation('4111111111111111', '1215', '123');
// Phone #: 123-123-1234
$payment->setPhone('1231231234');
// Email Address: test@bluepay.com
$payment->setEmail('*****@*****.**');
/* RUN A $3.00 CREDIT CARD SALE */
$payment->sale('3.00');
$payment->process();
// If transaction was approved..
if ($payment->getStatus() == "APPROVED") {
    $cancelPayment = new BluePayPayment_BP10Emu($accountID, $secretKey, $mode);
    $cancelPayment->void($payment->getTransID());
    $cancelPayment->process();
    // Read response from BluePay
    echo 'Status: ' . $payment->getStatus() . '<br />' . 'Message: ' . $payment->getMessage() . '<br />' . 'Transaction ID: ' . $payment->getTransID() . '<br />' . 'AVS Response: ' . $payment->getAVSResponse() . '<br />' . 'CVS Response: ' . $payment->getCVV2Response() . '<br />' . 'Masked Account: ' . $payment->getMaskedAccount() . '<br />' . 'Card Type: ' . $payment->getCardType() . '<br />' . 'Authorization Code: ' . $payment->getAuthCode() . '<br />';
} else {
    echo $payment->getMessage();
}