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'>
<name>" . $this->login . "</name>
<transactionKey>" . $this->transkey . "</transactionKey>
    " . $this->refId() . "
    " . $this->customerProfileId() . "
what am i doing wrong? or missing something