A custom attribute is a field that your organisation defines, for example a campaign id.
Repejo stores its value on the payers, subscriptions, receivables and transactions that a
checkout creates, and sends it in their metadata.
campaign_id.
You cannot change the key later.
metadata-*
attributes, select Public
(Publik). The checkout form in Repejo then shows the field
as read-only. See "Public attributes in embedded checkout" below.
You can give a value to an attribute that is not public. The checkout form shows a public attribute as read-only.
Repejo then sends the value in
metadata
for the payers, subscriptions, receivables and transactions that the checkout creates.
label
is the name that users see in Repejo (Label).
value
is the key in metadata
and in webhook payloads (Key).
public
decides whether the embed code on a web page can set the value (Public).
value
is unique and can only contain a-z, 0-9, and _.
Repejo removes spaces at the ends and makes it lowercase.
value
after you created the attribute.
1000
characters.
metadata
gets every
defined custom attribute. An attribute without a value is an empty string "",
so the records and the webhook payloads always have the same keys.
public.
It ignores unknown keys, private keys and values that are too long.
The embed code can set a public attribute with one HTML attribute for each key. The
attribute name starts with metadata-.
<repejo-checkout
short_code="my_checkout"
host="https://app.repejo.se"
metadata-member_id="12345"
></repejo-checkout>
<repejo-checkout-button
short_code="my_checkout"
host="https://app.repejo.se"
metadata-member_id="12345"
></repejo-checkout-button>
<repejo-sticky-checkout
short_code="my_checkout"
host="https://app.repejo.se"
metadata-member_id="12345"
></repejo-sticky-checkout>
checkout.metadata
have a value for the same key, the value from the page wins for that session.
checkout.metadata
gives the default values for the metadata of everything that the checkout creates.
public
attribute as read-only.
payer.metadata, subscription.metadata, receivable.metadata, and
transaction.metadata
hold the values from the time Repejo created the record. They contain every
defined custom attribute, with an empty string
""
for attributes that had no value.
The repejo:completed
browser event has a metadata
object in its detail.
type RepejoCompletedEventDetail = {
checkout_short_code: string;
type: "recurring" | "onetime" | "gift_card";
payer: {
name: string | null;
phone_number: string | null;
email: string | null;
};
metadata: Record<string, string>;
};
detail.metadata.