/** * @param string $url_format * @return string */ public function get_success_url($url_format) { return sprintf($url_format, TokenUtility::get_url_token($this->order->get_identifier(), $this->order->get_record_token(), $this->get_success_key())); }
/** * @return string */ public function get_record_token() { if (!$this->record_token) { $this->record_token = TokenUtility::generate_record_token(); } return $this->record_token; }