public static function getEndpointUrl($action, $identifier)
    {
        $url = Controller::join_links(
            'paymentendpoint',
            $identifier,
            $action
        );

        return Director::absoluteURL($url);
    }