<?php
require_once('payflow.php');
//create a payflow object
//total price is noly required.
$pf = new payflow(2.22,'User Name','user@email.com','user telphone','user shipping address','user shipping_city','user shipping state','user shipping zip','shipping country');
//get the token
$tokenResponse = $pf->getSecureToken();
//strip the response and get the token value
$secureToken = $pf->getMySecureToken($tokenResponse);
//parse out the rest of the response
$response = $pf->parseResponse($tokenResponse);
//build the HTML
$html = $pf->getHTML($response, $secureToken);
//show the button
echo $html;
?>
|