thanks but not using Revolution.
I did rewrite the one portion using runSnippet but still no success.
$response = $transaction->authorizeAndCapture();
if ($response->approved) {
echo "<h1>Success! The test credit card has been charged!</h1>";
echo "Transaction ID: " . $response->transaction_id;
echo $_POST['username'] = 'bobjones';
$_POST['full name'] = 'bobjones';
$_POST['email'] = '
[email protected]';
$adduser = $modx->runSnippet ('WebLoginPE?', array (
'&type'=> 'register',
'®Type'=> 'instant',
'®SuccessId' => '57',
'®SuccessPause' => '1',
'&groups' => 'LoggedInUsers',
));