Class ECommerceSpaceComponent

Inheritance Relationships

Base Types

Class Documentation

class ECommerceSpaceComponent : public csp::multiplayer::ComponentBase, public csp::multiplayer::IPositionComponent

Can be used alongside CSP’s Stripe integration to add e-commerce to your space.

This component is used to represent physical objects that can be purchased as virtual items in the environment.

Public Functions

ECommerceSpaceComponent(SpaceEntity *Parent)

Constructs the ECommerce space component, and associates it with the specified Parent space entity.

Parameters

Parent – The Space entity that owns this component.

csp::common::String GetProductId() const

Gets the product ID associated with the ECommerce component.

Returns

The product ID associated with the ECommerce component.

void SetProductId(csp::common::String Value)

Sets the new product ID for the ECommerce component.

Parameters

Value – The product ID to set for the ECommerce component.