Ejemplo n.º 1
0
 /**
  * delete an address by id
  *
  * @param mixed $customerOrId
  * @param string $addressId
  */
 public function delete($customerOrId = null, $addressId = null)
 {
     $this->_validateId($addressId);
     $customerId = $this->_determineCustomerId($customerOrId);
     $path = $this->_config->merchantPath() . '/customers/' . $customerId . '/addresses/' . $addressId;
     $this->_http->delete($path);
     return new Braintree_Result_Successful();
 }
Ejemplo n.º 2
0
 /**
  * delete an address by id
  *
  * @param mixed $customerOrId
  * @param string $addressId
  */
 public static function delete($customerOrId = null, $addressId = null)
 {
     self::_validateId($addressId);
     $customerId = self::_determineCustomerId($customerOrId);
     Braintree_Http::delete('/customers/' . $customerId . '/addresses/' . $addressId);
     return new Braintree_Result_Successful();
 }
Ejemplo n.º 3
0
 public static function delete($token)
 {
     self::_validateId($token);
     Braintree_Http::delete('/payment_methods/' . $token);
     return new Braintree_Result_Successful();
 }
 /**
  * delete a customer by id
  *
  * @param string $customerId
  */
 public static function delete($customerId)
 {
     self::_validateId($customerId);
     Braintree_Http::delete('/customers/' . $customerId);
     return new Braintree_Result_Successful();
 }