Usage Limits Card
The component UsageLimitsCard
enables users to limit how many times a discount can be used.
Example code
Anchor link to section titled "Example code"The following example sets usage limits for a shop without selling plans:
The following example sets usage limits for a shop with selling plans:
Name | Type | Description | Required |
---|---|---|---|
totalUsageLimit | Field<PositiveNumericString> |
The total number of times that the discount can be used. | Yes |
oncePerCustomer | Field<boolean> |
Whether a discount can only be used once per customer. | Yes |
isRecurring | boolean |
Whether the Recurring payments section is displayed. | No |
recurringPaymentType | Field<RecurringPaymentType> |
The recurring payment type (FIRST_PAYMENT , MULTIPLE_PAYMENTS , or ALL_PAYMENTS ). |
No |
recurringPaymentLimit | Field<PositiveNumericString> |
The number of times that the discount can be used for a recurring payment. | No |