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
Code PHP:
if (isset($_POST['btnCancel'])){
           //echo "Cancel Subscription";exit; 
          [B] $result = $this->cancelCustomerSubscription();[/B]
}
Now the echo is working but when i comment it and run this it throws a error
Code PHP:
//Cancel Subscription Request
function CancelSubscriptionRequest(){
$this->xml = "<?xml version='1.0' encoding='utf-8'?>
<CancelSubscriptionRequestt xmlns='AnetApi/xml/v1/schema/AnetApiSchema.xsd'>
<merchantAuthentication>
<name>" . $this->login . "</name>
<transactionKey>" . $this->transkey . "</transactionKey>
</merchantAuthentication>
    " . $this->refId() . "
    " . $this->customerProfileId() . "
</CancelSubscriptionRequest>";
}
what am i doing wrong? or missing something