---
schema_version: "1"
id: 7392cd6e7f7ba797c5859f277244be54f962467383c00a26f3e84d6dc624fdf0
title: Add Data to the Generate Receipt Step (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_data_to_the_generate_receipt_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_generate_receipt_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: ae41eaf002a58adf2f0944378e418335601d1718078b72d189b9a350dff3b240
description: For the managed package runtime, the Messaging Framework of the Generate Receipt step stores the data format for the selected device. For the example, only the DeviceName is a merge field. The remaining values are hard-coded.
products:
  - Omnistudio
release: "264"
---
# Add Data to the Generate Receipt Step (Managed Package)

For the managed package runtime, the Messaging Framework of the Generate Receipt step stores the data format for the selected device. For the example, only the DeviceName is a merge field. The remaining values are hard-coded.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Click the **Generate Receipt** step.
2. In the Messaging Framework properties for the step, make sure the **Window postMessage**, **Pub/Sub**, and **Session Storage** boxes are checked.
3. Add the following Message Key/Value pairs:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d218004e79">
                  <p style="margin-bottom:0;">Key</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d218004e85">
                  <p style="margin-bottom:0;">Value</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">eventName</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">purchase</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">currencyCode</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">USD</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">eventAction</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">purchase</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">category</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">Ecommerce</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">action</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">Purchase</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">transactionId</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">T-%DeviceName%</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">couponCode</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">JUNE_SALE</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">quantity</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">1</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">shipping</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">19.9</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">tax</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">17.35</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">revenue</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">736.25</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Key" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e79 ">
                  <p style="margin-bottom:0;">productDetails</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d218004e85 ">
                  <p style="margin-bottom:0;">(leave blank)</p>
                </td>

              </tr>
            </tbody>
          </table>
4. Open the JSON Editor and replace the `null` value or empty quotes after the `productDetails` node with the following JSON array:
    
    ```
    [
      {
        "name": "%DeviceName%",
        "price": 699,
        "brand": "Apple",
        "category": "Mobile",
        "variant": "Black",
        "list": "Search Results",
        "quantity": 1,
        "shipping": 19.9,
        "tax": 17.35,
        "revenue": 736.25
      }
    ]
    ```
5. Exit the JSON Editor.
6. Click **Activate Version**.

What’s next: [Add a Business Event to the Example Card (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_business_event_to_the_example_card.htm&release=264.0.0&type=5 "For the managed package runtime, you can't define complex JSON structures in a Flexcard. However, you can specify key/value pairs in Setup in the Custom Fields section. After creating the tracking configuration and adding event types, you can use merge fields to add the values to a complex JSON structure.").