/**
  * Get the article checkout URL.
  *
  * @param Article $article The article.
  * @param Customer|null $customer The customer.
  * @return string
  */
 public function getArticleCheckoutURL(Article $article, Customer $customer = null)
 {
     if ($customer === null) {
         return $article->getCheckoutUrl();
     }
     return $this->generateCheckoutURLForCustomer($customer->getHash(), $article->getArticleNumber());
 }