PurseHeadlessCheckoutSecondaryMethod
type PurseHeadlessCheckoutSecondaryMethod = PurseHeadlessCheckoutMethod & PurseHeadlessCheckoutSecondaryTokenProvider & object & SecondarySpecificConfig;
Represents a secondary payment method in the Purse checkout system. Secondary methods are additional payment options like gift cards that can be combined with primary methods.
Type Declaration
| Name | Type | Description |
|---|---|---|
isSecondary | true | Always true for secondary payment methods |
limit? | number | Maximum instances of this secondary method that can be used in the split |
type | "method" | - |
getPaymentElement() | () => undefined | Secondary methods (gift cards, vouchers, loyalty) have no payment element — they are entered via getSecondaryToken() / take(), not a rendered form. Calling this warns (with a documentation link) and returns undefined so the integration degrades gracefully instead of throwing a TypeError. See https://docs.purse.tech/docs/integrate/purse-checkout/headless-checkout/advanced-guides/render-payment-methods#secondary-methods |