/**
  * Supply gift card fields
  *
  * @param IOrderItem
  * @param Mage_Sales_Model_Order_Item
  * @return $payload
  */
 protected function addGiftCardDataToPayload(IOrderItem $payload, Mage_Sales_Model_Order_Item $item)
 {
     if ($item->getProductType() === 'giftcard') {
         // Gift card fields are XML escaped by the SDK, so they do not need
         // to be escaped here.
         $buyRequest = $item->getBuyRequest();
         $from = $this->formatGiftCardName($buyRequest->getGiftcardSenderName(), $buyRequest->getGiftcardSenderEmail());
         $to = $this->formatGiftCardName($buyRequest->getGiftcardRecipientName(), $buyRequest->getGiftcardRecipientEmail());
         $message = $buyRequest->getGiftcardMessage();
         $payload->setGiftCardFrom($from)->setGiftCardTo($to)->setGiftCardMessage($message);
     }
     return $payload;
 }