Skip to main content

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​

NameTypeDescription
isSecondarytrueAlways true for secondary payment methods
limit?numberMaximum instances of this secondary method that can be used in the split
type"method"-
getPaymentElement()() => undefinedSecondary 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