Hi All,<br><br>My requirement is to save a user's billing information and Payment Method in the My Accounts section and use the information to collect money automatically from users credit card as soon as he user creates a node.<br>
I am trying to bring the Billing information and Payment methods on user/%/edit by implementing hook_user <br>I created a new category payment and am trying to get the uc_cart_checkout_form on user/%/edit/payment section <br>
<br>Following is the code that I have tried but did not work, can anyone please help me identify what and where am I going wrong?<br><br>function custom_form_user($op, &$edit, &$account, $category = NULL) {<br> switch ($op) {<br>
case 'form':<br> if($category == 'payment') {<br> $form_state = array();<br> $form = uc_cart_checkout_form();<br> return $form;<br> }<br> break;<br> case 'categories':<br>
$output[] = array(<br> 'name' => 'payment',<br> 'title' => t('Payment Options'),<br> 'weight' => 10,<br> 'access callback' => 'user_access',<br>
'access arguments' => array('access content'),<br> );<br> return $output;<br> break;<br> }<br>}<br><br>