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.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- Click the Provide Payment step.
- In the Messaging Framework properties for the step, make sure the Window postMessage, Pub/Sub, and Session Storage boxes are checked.
-
Add the following Message Key/Value pairs:
Key
Value
eventName
checkout
currencyCode
USD
eventAction
checkout
category
Ecommerce
action
Checkout
checkoutStep
3
transactionId
T-%DeviceName%
couponCode
JUNE_SALE
quantity
1
shipping
19.9
tax
17.35
revenue
736.25
productDetails
(leave blank)
-
Open the JSON Editor and replace the
nullvalue or empty quotes after theproductDetailsnode 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 } ] - Exit the JSON Editor.
What’s next: Add Data to the Generate Receipt Step (Managed Package).