/** * Creates an delete transaction through the HpsPayPlanPaymentMethodService */ public function execute() { parent::execute(); if ($this->paymentMethod != null) { $this->paymentMethodKey = $this->paymentMethod->paymentMethodKey; } $service = new HpsPayPlanPaymentMethodService($this->service->servicesConfig()); return $service->delete($this->paymentMethodKey); }