src/AmazonPaymentBundle/pkgShop/db/AmazonShopOrder.php
public function getAmazonOrderReferenceId()
    {
        $paymentHandler = $this->GetPaymentHandler();
        if (false === ($paymentHandler instanceof AmazonPaymentHandler)) {
            throw new \InvalidArgumentException('order was not paid with amazon payment');
        }

        /** @var $paymentHandler AmazonPaymentHandler */

        return $paymentHandler->getAmazonOrderReferenceId();
    }
public function getAmazonOrderReferenceId()
    {
        $paymentHandler = $this->GetPaymentHandler();
        if (false === ($paymentHandler instanceof AmazonPaymentHandler)) {
            throw new \InvalidArgumentException('order was not paid with amazon payment');
        }

        /** @var $paymentHandler AmazonPaymentHandler */

        return $paymentHandler->getAmazonOrderReferenceId();
    }
public function getAmazonOrderReferenceId ( ) { $ paymentHandler = $ this -> GetPaymentHandler ( ) ; if ( false === ( $ paymentHandler instanceof AmazonPaymentHandler ) ) { throw new \ InvalidArgumentException ( 'order was not paid with amazon payment' ) ; } /** @var $paymentHandler AmazonPaymentHandler */ return $ paymentHandler -> getAmazonOrderReferenceId ( ) ; }
returns amazon order reference id if the order was paid with amazon. throws an InvalidArgumentException if the
order was not paid with amazon.

@throws \InvalidArgumentException

@return string
returns amazon order reference id if the order was paid with amazon . throws an InvalidArgumentException if the order was not paid with amazon .