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 errorCode PHP:if (isset($_POST['btnCancel'])){ //echo "Cancel Subscription";exit; [B] $result = $this->cancelCustomerSubscription();[/B] }
what am i doing wrong? or missing somethingCode 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>"; }



Reply With Quote




BBCode tags dont work inside PHP tags, for the record, nofel.

Bookmarks