Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 869 Bytes

metadata-property-editor.md

File metadata and controls

33 lines (26 loc) · 869 Bytes

MetaData Property Editor

The MetaData property editor allows you to add metadata to your product, this is passed over to the Payment Provider.

The returned type is: Dictionary<string, string>

{% hint style="info" %} The node key gets added in the Stripe Session service in a key called "nodeKey" {% endhint %}

Programmatically add metadata

You can programmatically add metadata by creating an IEnumerable<UmbCheckoutMetaData>() object

{% code title="Create object example" %}

var metaData = new List<UmbCheckoutMetaData>
{
    new()
    {
        Name = "Dictionary Key 1",
        Value = "Dictionary Value 1"
    },
    new()
    {
        Name = "Dictionary Key 2",
        Value = "Dictionary Value 2"
    }
}

{% endcode %}