---
schema_version: "1"
id: 66ad0d349e966f3f505b42dbce3476083507d1eddb50a72bbc4bc02b1e7defa6
title: Add Data to the Provide Payment 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_provide_payment_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_provide_payment_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7861eff2d85fca8e1ca83d8daf62183028f1441f602ebd969ccb0e6c7325346d
description: For the managed package runtime, the Messaging Framework of the Provide Payment 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 Provide Payment Step (Managed Package)

For the managed package runtime, the Messaging Framework of the Provide Payment 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 **Provide Payment** 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="d293214e79">
                  <p style="margin-bottom:0;">Key</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d293214e85">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">eventName</p>
                </td>

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

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

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

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

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

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

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

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

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

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

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

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

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">couponCode</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">quantity</p>
                </td>

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

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

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">tax</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">revenue</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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="d293214e79 ">
                  <p style="margin-bottom:0;">productDetails</p>
                </td>

                <td data-label="Value" class="slds-cell-wrap" style="vertical-align:top;" headers="d293214e85 ">
                  <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.

What’s next: [Add Data to the Generate Receipt Step (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_add_data_to_the_generate_receipt_step.htm&release=264.0.0&type=5 "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.").