Purchase Type Card
The PurchaseTypeCard
component allows users to select whether the shipping rates are applied to one time purchases or recurring purchases.
This component is used when creating a shipping discount.
Example code
Anchor link to section titled "Example code"
Name | Type | Description | Required |
---|---|---|---|
purchaseType | Field<PurchaseType> |
The selected purchase type. | Yes |
PurchaseType
Anchor link to section titled "PurchaseType"Name | Value | Description |
---|---|---|
OneTimePurchase |
ONE_TIME_PURCHASE |
For one time purchases only. |
Subscription |
SUBSCRIPTION |
For subscription purchases only. |
Both |
BOTH |
Eligible for both one time purchase and subscription purchases. |