Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/20/2018 in all areas

  1. public function success (array $get, array $post) { # # TODO: Return transaction data, if possible # //$this->Input->setErrors($this->getCommonError("unsupported")); } just change the success function to this code . as you are not doing anything so it should not return any error .
    1 point
  2. Return values for Module::renewService($package, $service, $parent_package = null, $parent_service = null) are either null or a set of meta fields (an array) containing the key value pairs "key", "value", and "encrypted": public function renewService($package, $service, $parent_package = null, $parent_service = null) { // Attempt to perform the renewal $renewal = ...; $service_fields = $this->serviceFieldsToObject($service->fields); if (there is an error) { // Error $this->Input->setErrors(['error' => ['type' => 'The service could not be renewed because of this error!']]); } else { // Success, the service was renewed. Update and return the meta fields return [ [ 'key' => 'mymodule_renew_email', 'value' => $service_fields->mymodule_renew_email, 'encrypted' => 0 ], [ 'key' => 'mymodule_expiry_date', 'value' => $renewal->expiry_date, 'encrypted' => 0 ] ]; } // Return null to not change any meta fields return null; }
    1 point
×
×
  • Create New...