/**
  * Update an ARB subscription
  *
  * @param int                       $subscriptionId
  * @param AuthorizeNet_Subscription $subscription
  *
  * @return AuthorizeNetARB_Response
  */
 public function updateSubscription($subscriptionId, AuthorizeNet_Subscription $subscription)
 {
     $this->_request_type = "UpdateSubscriptionRequest";
     $this->_request_payload .= "<subscriptionId>{$subscriptionId}</subscriptionId>";
     $this->_request_payload .= $subscription->getXml();
     return $this->_sendRequest();
 }
Ejemplo n.º 2
0
 /**
  * Create an ARB subscription
  *
  * @param AuthorizeNet_Subscription $subscription
  *
  * @return AuthorizeNetARB_Response
  */
 public function createSubscription(AuthorizeNet_Subscription $subscription)
 {
     $this->_request_type = "CreateSubscriptionRequest";
     $this->_request_payload .= $subscription->getXml();
     return $this->_sendRequest();
 }