Skip to main content

Primary vs. Secondary Payment Methods

The SDK supports multiple payment sources. You can distinguish between primary methods (credit cards, wallet...) and secondary ones (used to cover remaining balances, like giftcards).

Use the checkout.paymentMethods variable to access all payment methods.

  • Primary methods: Used for initial payment and only one can be selected.
  • Secondary methods: Supplementary payments (e.g. gift cards).

You can explicitly mark a method as the primary one:

selectedMethod.setAsPrimarySource()

By default, the last selected primary method is used for the main payment.

Conversely, you can remove the primary method from the primary split using checkout.clearPrimarySplit().

checkout.clearPrimarySplit();