src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/CancellationExample.php
public function setupOrderReference()
    {
        $orderTotal = new OffAmazonPaymentsService_Model_OrderTotal();
        $orderTotal->setCurrencyCode($this->_currencyCode);
        $orderTotal->setAmount($this->_orderTotalAmount);
        
        $setOrderReferenceDetailsRequest 
            = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest();
        $setOrderReferenceDetailsRequest->setSellerId($this->_sellerId);
        $setOrderReferenceDetailsRequest
            ->setAmazonOrderReferenceId($this->_amazonOrderReferenceId);
        $setOrderReferenceDetailsRequest
            ->setOrderReferenceAttributes(
                new OffAmazonPaymentsService_Model_OrderReferenceAttributes()
            );
        $setOrderReferenceDetailsRequest
            ->getOrderReferenceAttributes()->setOrderTotal($orderTotal);
        
        return $this->_service->setOrderReferenceDetails(
            $setOrderReferenceDetailsRequest
        );
    }
public function setupOrderReference()
    {
        $orderTotal = new OffAmazonPaymentsService_Model_OrderTotal();
        $orderTotal->setCurrencyCode($this->_currencyCode);
        $orderTotal->setAmount($this->_orderTotalAmount);
        
        $setOrderReferenceDetailsRequest 
            = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest();
        $setOrderReferenceDetailsRequest->setSellerId($this->_sellerId);
        $setOrderReferenceDetailsRequest
            ->setAmazonOrderReferenceId($this->_amazonOrderReferenceId);
        $setOrderReferenceDetailsRequest
            ->setOrderReferenceAttributes(
                new OffAmazonPaymentsService_Model_OrderReferenceAttributes()
            );
        $setOrderReferenceDetailsRequest
            ->getOrderReferenceAttributes()->setOrderTotal($orderTotal);
        
        return $this->_service->setOrderReferenceDetails(
            $setOrderReferenceDetailsRequest
        );
    }
public function setupOrderReference ( ) { $ orderTotal = new OffAmazonPaymentsService_Model_OrderTotal ( ) ; $ orderTotal -> setCurrencyCode ( $ this -> _currencyCode ) ; $ orderTotal -> setAmount ( $ this -> _orderTotalAmount ) ; $ setOrderReferenceDetailsRequest = new OffAmazonPaymentsService_Model_SetOrderReferenceDetailsRequest ( ) ; $ setOrderReferenceDetailsRequest -> setSellerId ( $ this -> _sellerId ) ; $ setOrderReferenceDetailsRequest -> setAmazonOrderReferenceId ( $ this -> _amazonOrderReferenceId ) ; $ setOrderReferenceDetailsRequest -> setOrderReferenceAttributes ( new OffAmazonPaymentsService_Model_OrderReferenceAttributes ( ) ) ; $ setOrderReferenceDetailsRequest -> getOrderReferenceAttributes ( ) -> setOrderTotal ( $ orderTotal ) ; return $ this -> _service -> setOrderReferenceDetails ( $ setOrderReferenceDetailsRequest ) ; }
Add information to the payment contract so that it can be confirmed
in a later step
Simulates a merchant adding the order details to the payment contract

@return OffAmazonPaymentsService_Model_SetOrderReferenceDetailsResponse
response
Add information to the payment contract so that it can be confirmed in a later step Simulates a merchant adding the order details to the payment contract