// 'USD', 'EUR', 'GBP', 'CAD', 'JPY', 'AUD'.
$PayFlow->setAmount('15.00', FALSE);
$PayFlow->setCCNumber('378282246310005');
$PayFlow->setCVV('4685');
$PayFlow->setExpiration('1112');
$PayFlow->setCreditCardName('Richard Castera');
$PayFlow->setCustomerFirstName('Richard');
$PayFlow->setCustomerLastName('Castera');
$PayFlow->setCustomerAddress('589 8th Ave Suite 10');
$PayFlow->setCustomerCity('New York');
$PayFlow->setCustomerState('NY');
$PayFlow->setCustomerZip('10018');
$PayFlow->setCustomerCountry('US');
$PayFlow->setCustomerPhone('212-123-1234');
$PayFlow->setCustomerEmail('*****@*****.**');
$PayFlow->setPaymentComment('New Regular Transaction');
$PayFlow->setPaymentComment2('Product 233');
if ($PayFlow->processTransaction()) {
    echo 'Transaction Processed Successfully!';
} else {
    echo 'Transaction could not be processed at this time.';
}
echo '<h2>Name Value Pair String:</h2>';
echo '<pre>';
print_r($PayFlow->debugNVP('array'));
echo '</pre>';
echo '<h2>Response From Paypal:</h2>';
echo '<pre>';
print_r($PayFlow->getResponse());
echo '</pre>';
unset($PayFlow);
$PayFlow->setProfilePayPeriod('MONT');
$PayFlow->setProfileTerm(0);
$PayFlow->setAmount('15.00', FALSE);
$PayFlow->setCCNumber('378282246310005');
$PayFlow->setCVV('4685');
$PayFlow->setExpiration('1112');
$PayFlow->setCreditCardName('Richard Castera');
$PayFlow->setCustomerFirstName('Richard');
$PayFlow->setCustomerLastName('Castera');
$PayFlow->setCustomerAddress('589 8th Ave Suite 10');
$PayFlow->setCustomerCity('New York');
$PayFlow->setCustomerState('NY');
$PayFlow->setCustomerZip('10018');
$PayFlow->setCustomerCountry('US');
$PayFlow->setCustomerPhone('212-123-1234');
$PayFlow->setCustomerEmail('*****@*****.**');
$PayFlow->setPaymentComment('New Monthly Transaction');
if ($PayFlow->processTransaction()) {
    echo 'Transaction Processed Successfully!';
} else {
    echo 'Transaction could not be processed at this time.';
}
echo '<h2>Name Value Pair String:</h2>';
echo '<pre>';
print_r($PayFlow->debugNVP('array'));
echo '</pre>';
echo '<h2>Response From Paypal:</h2>';
echo '<pre>';
print_r($PayFlow->getResponse());
echo '</pre>';
unset($PayFlow);