PayWithAmazon\Client::createOrderReferenceForId PHP Method

createOrderReferenceForId() public method

* CreateOrderReferenceForId API Call - Creates an order reference for the given object
See also: http://docs.developer.amazonservices.com/en_US/off_amazon_payments/OffAmazonPayments_CreateOrderReferenceForId.html
public createOrderReferenceForId ( $requestParameters = [] )
    public function createOrderReferenceForId($requestParameters = array())
    {
        $parameters = array();
        $parameters['Action'] = 'CreateOrderReferenceForId';
        $requestParameters = array_change_key_case($requestParameters, CASE_LOWER);
        $fieldMappings = array('merchant_id' => 'SellerId', 'id' => 'Id', 'id_type' => 'IdType', 'inherit_shipping_address' => 'InheritShippingAddress', 'confirm_now' => 'ConfirmNow', 'amount' => 'OrderReferenceAttributes.OrderTotal.Amount', 'currency_code' => 'OrderReferenceAttributes.OrderTotal.CurrencyCode', 'platform_id' => 'OrderReferenceAttributes.PlatformId', 'seller_note' => 'OrderReferenceAttributes.SellerNote', 'seller_order_id' => 'OrderReferenceAttributes.SellerOrderAttributes.SellerOrderId', 'store_name' => 'OrderReferenceAttributes.SellerOrderAttributes.StoreName', 'custom_information' => 'OrderReferenceAttributes.SellerOrderAttributes.CustomInformation', 'mws_auth_token' => 'MWSAuthToken');
        $responseObject = $this->setParametersAndPost($parameters, $fieldMappings, $requestParameters);
        return $responseObject;
    }