undefined error even when function exist
I m working on a joomla site. (i m new to joomla) i have a button cancel, which cancel a person subscription( i m using CIM) now i have the function made of xml file as said by the payment gateway SDK tut. But when i clock the button it says undefined method my method name, here is the code
Now the echo is working but when i comment it and run this it throws a error
//echo "Cancel Subscription";exit;
[B] $result = $this->cancelCustomerSubscription();[/B]
what am i doing wrong? or missing something
//Cancel Subscription Request
$this->xml = "<?xml version='1.0' encoding='utf-8'?>
<name>" . $this->login . "</name>
<transactionKey>" . $this->transkey . "</transactionKey>
" . $this->refId() . "
" . $this->customerProfileId() . "