Sonata\Component\Payment\BasePayment::generateUrlCheck PHP Метод

generateUrlCheck() публичный Метод

public generateUrlCheck ( Sonata\Component\Order\OrderInterface $order ) : string
$order Sonata\Component\Order\OrderInterface
Результат string
    public function generateUrlCheck(OrderInterface $order)
    {
        if (!$order->getCreatedAt() instanceof \DateTime) {
            throw new \RuntimeException(sprintf('The order must have a creation date - id:%s, reference:%s ', $order->getId(), $order->getReference()));
        }
        return sha1($order->getReference() . $order->getCreatedAt()->format('m/d/Y:G:i:s') . $order->getId() . $this->getOption('shop_secret_key'));
    }