Create a Platform Event for Checkout Notifications
Create a platform event to notify users that an intermediate checkout stage is complete.
-
From Setup, in the Quick Find Box, enter
Platform Events
, and select Platform Events. -
Create a platform event.
-
Fill in the New Platform Event form.
-
For Label, enter
Checkout Intermediate Notification
. -
For Plural Label, enter
Checkout Intermediate Notifications
. -
For Object Name, select Checkout_Intermediate_Notification.
-
For Publish Behavior, select Publish After Commit.
-
Click Save.
-
-
Create a field with a Text data type.
-
In the Custom Fields and Relationships section, click New.
-
For Data Type, select Text, and click Next.
-
For Field Label, enter
Cart Session ID
-
For Length, enter
255
. -
For Field Name, enter
Cart_Session_ID
-
Click Save.
-
-
Create two more custom text fields, and label them
Next State
andState
.