Button generator

If you have previously created your services and plans in Uelz, you can select the service and plan you want from the list, and a small HTML code will be automatically generated for you to copy and paste into your website or system where you want to place the button.



Button with plans and services created previously in Uelz


If you have already created your services and plans in Uelz, you can select the service and plan you want from the list, and a small HTML code will be automatically generated for you to copy and paste into your website or system where you want to place the button.



Button with plans and services created from your website


With just one button, you can set up unique payment plans or subscriptions with the desired charge amount.

The script gathers the user's ID and service data through various attributes. Explore the attribute information for more details. Next, you'll need to fill in all the attributes to generate the plan according to the parameters you want.



Attributes for services and plans

The following attributes correspond to the creation of services and plans, which involves defining features, pricing, subscription terms, and customization options for each offering, whether it's subscription-based or one-time payment.


AttributesDescripciónExample
data-service-name
string
Service nameEx: Conferencias
data-plan-name -
string
Plan NameEx: Regional
data-plan-description - stringAdd a description to the planEx: Description of the service
data-plan-amount-
string
Value associated with the planEx: 55.50 In variable subscriptions, this value indicates the unit price.
data-plan-currency-
string
Currency of chargeEx: EUR (Only euros can be sent)
data-plan-type-
string
Specify whether the plan is unique or subscription-based.Choose betweenUnique or Subscription

Fixed One-Time Plan

This is an example of attributes for a one-time payment service and plan created.

<button class="uelz-button uelz-button-styles"
id="uelz-button"
data-service-name="Mentorias"
data-plan-name="Sabado"
data-plan-description="Descripción del servicio"
data-plan-amount="20.0"
data-plan-currency="EUR"
data-plan-type="Unique"

>Comprar</button>



Attributes only for subscription plans

The following attributes are related to customizing the billing cycle for recurring payments, allowing for the adjustment of payment schedules according to preferences and needs.


AttributesDescriptionExample
data-plan-frequency
string
Frequency with which the payment is madeChoose betweenday, week, month, quarterly, semiannually, year
data-plan-billing-cycles
string
Number of billing cyclesMinimum 2. If not added, it will be an infinite cycle.
data-plan-payment-day
string
Day on which the payment is madeAdd a day between 1 and 31 (last day of the month)


Fixed Subscription Plan

This is an example of attributes for a recurring payment where the attributes of type data-plan-type have been modified by adding the "Subscription" label, and variables of frequency, cycles, and payment day have been added.


<button class="uelz-button uelz-button-styles"
id="uelz-button"

data-service-name="Conferencias"
data-plan-name="Regional"
data-plan-description="Descripción del servicio"
data-plan-amount="55.50"
data-plan-currency="EUR"
data-plan-type="Subscription"
data-type-subscription="fixed"

data-plan-frequency="month"
data-plan-billing-cycles="2"
data-plan-payment-day="25"

>Comprar</button>



Attributes for variable subscription

These attributes refer to subscription plans that offer dynamic pricing structures, which may vary throughout the billing period based on consumption.


AttributesDescriptionExample
data-type-subscription
string
It is where we indicate if the price will vary in different periods or notOptions variable or fixed
data-future-charge-action
string
It tells us if we don't charge for that period if consumption units are not passed to us, or if we charge for the previous month's usageOptions no_charge or last_charge
data-consume-units
string
Customers who have consumed the plan during that period of timeEx: 6
data-external-usage-id
string
ID that relates your database with the data you send usEx: abc2sr5tgd



Variable Subscription Plan

This is an example of attributes for a recurring payment where the attributes of type data-plan-type have been modified by adding the "Subscription" label, and variables of frequency, cycles, and payment day have been added.


<button class="uelz-button uelz-button-styles"
id="uelz-button"

data-service-name="Conferencias"
data-plan-name="Regional"
data-plan-description="Descripción del servicio"
data-plan-amount="55.50"
data-plan-currency="EUR"
data-plan-type="Subscription"
data-type-subscription="fixed"

data-plan-frequency="month"
data-plan-billing-cycles="2"
data-plan-payment-day="25"

data-type-subscription="variable"
data-future-charge-action="last_charge"
data-consume-units="6"
data-external-usage-id="abc2sr5tgd"

>Comprar</button>



Optional attributes

Additionally, to recognize customers who have registered accounts on your website. This will allow you to provide them with an even smoother and personalized shopping experience.


AttributesDescriptionExample
data-customer-email
string
Customer EmailEx: [email protected]
data-customer-cif
string
ID Number - Passport - CIF of the customerEx: 50130508Z
data-customer-type
string
Customer TypeOptions COMPANY or PERSON (Default is PERSON)
data-name
string
Customer NameEx: María Only for PERSON type customers.
data-surname
string
Customer SurnameEx: Luke Only for PERSON type customers
data-company-name
string
Company NameEx: Uelz Company Only for COMPANY type customers.
data-prefix
string
Phone Number Prefix with the '+' symbolEx: +34
data-phone
string
Customer Phone NumberEx: 623039754
data-country
string
Customer Country in ISO 3166-1 alpha 2 codeEx: ES
data-city
string
Customer CityEx: Valencia
data-postal-code
string
Customer Postal CodeEx: 46024
data-address
string
Customer AddressEx: Edificio Angels, Sc Puerto, 13
data-customer-not-editable
string
If you add this attribute, customers will not be able to edit their dataThis attribute is boolean. If added, it means it is True.
data-external-product-id
string
Product ID purchased by the customer in your databaseEx: 0012-ABC
data-external-customer-id
string
Customer identification number in your database (BBDD)Ex: xtrjko98
data-external-order-id
string
Order identification number in your database (BBDD)Ex: prder-JDE-003