CreditCardNum;
  		
                // $data sorts all your Order Data
                $ID = $data['ProductID'];

                // send this order off to payment gateway somehow

                // save the order for us
		$this->write();
		return $result;
	}
	/**
          * The fields you need to add to the payment - eg CreditCard or Paypal data
          */
	function getPaymentFormFields() {
		return new FieldSet(
			new CreditCardField("CreditCardNum, "Credit Card Number:"),
		);
	}
	/**
	 * Returns the required fields to add to the order form, when using this payment method. 
	 */
	function getPaymentFormRequirements() {
			return array(
				"js" => "
					require('CreditCardNum');
				",
				"php" => '
					$this->requireField("CreditCardNum", $data);
				',
			);
	}
	
}

?>